comparison configure @ 30078:58ce7aad3fff

* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set LIBSOUND accordingly.
author Ken Raeburn <raeburn@raeburn.org>
date Wed, 05 Jul 2000 19:18:52 +0000
parents 7c51ac7c415f
children fbb3614484f9
comparison
equal deleted inserted replaced
30077:f797982fdee0 30078:58ce7aad3fff
2248 rm -f conftest* 2248 rm -f conftest*
2249 2249
2250 2250
2251 2251
2252 # Sound support for GNU/Linux and the free BSDs. 2252 # Sound support for GNU/Linux and the free BSDs.
2253 for ac_hdr in machine/soundcard.h sys/soundcard.h 2253 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
2254 do 2254 do
2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_hdr" >&5 2257 echo "configure:2258: checking for $ac_hdr" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2287 2287
2288 else 2288 else
2289 echo "$ac_t""no" 1>&6 2289 echo "$ac_t""no" 1>&6
2290 fi 2290 fi
2291 done 2291 done
2292
2293 # Emulation library used on NetBSD.
2294 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2295 echo "configure:2296: checking for _oss_ioctl in -lossaudio" >&5
2296 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 ac_save_LIBS="$LIBS"
2301 LIBS="-lossaudio $LIBS"
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 /* Override any gcc2 internal prototype to avoid an error. */
2306 /* We use char because int might match the return type of a gcc2
2307 builtin and then its argument prototype would still apply. */
2308 char _oss_ioctl();
2309
2310 int main() {
2311 _oss_ioctl()
2312 ; return 0; }
2313 EOF
2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2315 rm -rf conftest*
2316 eval "ac_cv_lib_$ac_lib_var=yes"
2317 else
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2320 rm -rf conftest*
2321 eval "ac_cv_lib_$ac_lib_var=no"
2322 fi
2323 rm -f conftest*
2324 LIBS="$ac_save_LIBS"
2325
2326 fi
2327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 LIBSOUND=-lossaudio
2330 else
2331 echo "$ac_t""no" 1>&6
2332 LIBSOUND=
2333 fi
2334
2292 2335
2293 2336
2294 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 2337 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2295 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2338 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2296 termcap.h stdio_ext.h fcntl.h term.h 2339 termcap.h stdio_ext.h fcntl.h term.h
2297 do 2340 do
2298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_hdr" >&5 2343 echo "configure:2344: checking for $ac_hdr" >&5
2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6 2345 echo $ac_n "(cached) $ac_c" 1>&6
2303 else 2346 else
2304 cat > conftest.$ac_ext <<EOF 2347 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure" 2348 #line 2349 "configure"
2306 #include "confdefs.h" 2349 #include "confdefs.h"
2307 #include <$ac_hdr> 2350 #include <$ac_hdr>
2308 EOF 2351 EOF
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2353 { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then 2355 if test -z "$ac_err"; then
2313 rm -rf conftest* 2356 rm -rf conftest*
2314 eval "ac_cv_header_$ac_safe=yes" 2357 eval "ac_cv_header_$ac_safe=yes"
2315 else 2358 else
2332 echo "$ac_t""no" 1>&6 2375 echo "$ac_t""no" 1>&6
2333 fi 2376 fi
2334 done 2377 done
2335 2378
2336 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2379 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2337 echo "configure:2338: checking for ANSI C header files" >&5 2380 echo "configure:2381: checking for ANSI C header files" >&5
2338 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2381 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6 2382 echo $ac_n "(cached) $ac_c" 1>&6
2340 else 2383 else
2341 cat > conftest.$ac_ext <<EOF 2384 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure" 2385 #line 2386 "configure"
2343 #include "confdefs.h" 2386 #include "confdefs.h"
2344 #include <stdlib.h> 2387 #include <stdlib.h>
2345 #include <stdarg.h> 2388 #include <stdarg.h>
2346 #include <string.h> 2389 #include <string.h>
2347 #include <float.h> 2390 #include <float.h>
2348 EOF 2391 EOF
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2352 if test -z "$ac_err"; then 2395 if test -z "$ac_err"; then
2353 rm -rf conftest* 2396 rm -rf conftest*
2354 ac_cv_header_stdc=yes 2397 ac_cv_header_stdc=yes
2355 else 2398 else
2362 rm -f conftest* 2405 rm -f conftest*
2363 2406
2364 if test $ac_cv_header_stdc = yes; then 2407 if test $ac_cv_header_stdc = yes; then
2365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2366 cat > conftest.$ac_ext <<EOF 2409 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure" 2410 #line 2411 "configure"
2368 #include "confdefs.h" 2411 #include "confdefs.h"
2369 #include <string.h> 2412 #include <string.h>
2370 EOF 2413 EOF
2371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2372 egrep "memchr" >/dev/null 2>&1; then 2415 egrep "memchr" >/dev/null 2>&1; then
2380 fi 2423 fi
2381 2424
2382 if test $ac_cv_header_stdc = yes; then 2425 if test $ac_cv_header_stdc = yes; then
2383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2384 cat > conftest.$ac_ext <<EOF 2427 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure" 2428 #line 2429 "configure"
2386 #include "confdefs.h" 2429 #include "confdefs.h"
2387 #include <stdlib.h> 2430 #include <stdlib.h>
2388 EOF 2431 EOF
2389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2390 egrep "free" >/dev/null 2>&1; then 2433 egrep "free" >/dev/null 2>&1; then
2401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2402 if test "$cross_compiling" = yes; then 2445 if test "$cross_compiling" = yes; then
2403 : 2446 :
2404 else 2447 else
2405 cat > conftest.$ac_ext <<EOF 2448 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure" 2449 #line 2450 "configure"
2407 #include "confdefs.h" 2450 #include "confdefs.h"
2408 #include <ctype.h> 2451 #include <ctype.h>
2409 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2452 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2410 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2453 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2412 int main () { int i; for (i = 0; i < 256; i++) 2455 int main () { int i; for (i = 0; i < 256; i++)
2413 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2456 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2414 exit (0); } 2457 exit (0); }
2415 2458
2416 EOF 2459 EOF
2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 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
2418 then 2461 then
2419 : 2462 :
2420 else 2463 else
2421 echo "configure: failed program was:" >&5 2464 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5 2465 cat conftest.$ac_ext >&5
2436 EOF 2479 EOF
2437 2480
2438 fi 2481 fi
2439 2482
2440 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2483 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether time.h and sys/time.h may both be included" >&5 2484 echo "configure:2485: checking whether time.h and sys/time.h may both be included" >&5
2442 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2485 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6 2486 echo $ac_n "(cached) $ac_c" 1>&6
2444 else 2487 else
2445 cat > conftest.$ac_ext <<EOF 2488 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure" 2489 #line 2490 "configure"
2447 #include "confdefs.h" 2490 #include "confdefs.h"
2448 #include <sys/types.h> 2491 #include <sys/types.h>
2449 #include <sys/time.h> 2492 #include <sys/time.h>
2450 #include <time.h> 2493 #include <time.h>
2451 int main() { 2494 int main() {
2452 struct tm *tp; 2495 struct tm *tp;
2453 ; return 0; } 2496 ; return 0; }
2454 EOF 2497 EOF
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2498 if { (eval echo configure:2499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456 rm -rf conftest* 2499 rm -rf conftest*
2457 ac_cv_header_time=yes 2500 ac_cv_header_time=yes
2458 else 2501 else
2459 echo "configure: failed program was:" >&5 2502 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5 2503 cat conftest.$ac_ext >&5
2471 EOF 2514 EOF
2472 2515
2473 fi 2516 fi
2474 2517
2475 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2518 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2476 echo "configure:2477: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2519 echo "configure:2520: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2477 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2520 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6 2521 echo $ac_n "(cached) $ac_c" 1>&6
2479 else 2522 else
2480 cat > conftest.$ac_ext <<EOF 2523 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure" 2524 #line 2525 "configure"
2482 #include "confdefs.h" 2525 #include "confdefs.h"
2483 #include <sys/types.h> 2526 #include <sys/types.h>
2484 #include <signal.h> 2527 #include <signal.h>
2485 /* NetBSD declares sys_siglist in unistd.h. */ 2528 /* NetBSD declares sys_siglist in unistd.h. */
2486 #ifdef HAVE_UNISTD_H 2529 #ifdef HAVE_UNISTD_H
2488 #endif 2531 #endif
2489 int main() { 2532 int main() {
2490 char *msg = *(sys_siglist + 1); 2533 char *msg = *(sys_siglist + 1);
2491 ; return 0; } 2534 ; return 0; }
2492 EOF 2535 EOF
2493 if { (eval echo configure:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 rm -rf conftest* 2537 rm -rf conftest*
2495 ac_cv_decl_sys_siglist=yes 2538 ac_cv_decl_sys_siglist=yes
2496 else 2539 else
2497 echo "configure: failed program was:" >&5 2540 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5 2541 cat conftest.$ac_ext >&5
2509 EOF 2552 EOF
2510 2553
2511 fi 2554 fi
2512 2555
2513 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2556 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2514 echo "configure:2515: checking for sys/wait.h that is POSIX.1 compatible" >&5 2557 echo "configure:2558: checking for sys/wait.h that is POSIX.1 compatible" >&5
2515 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2558 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6 2559 echo $ac_n "(cached) $ac_c" 1>&6
2517 else 2560 else
2518 cat > conftest.$ac_ext <<EOF 2561 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure" 2562 #line 2563 "configure"
2520 #include "confdefs.h" 2563 #include "confdefs.h"
2521 #include <sys/types.h> 2564 #include <sys/types.h>
2522 #include <sys/wait.h> 2565 #include <sys/wait.h>
2523 #ifndef WEXITSTATUS 2566 #ifndef WEXITSTATUS
2524 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2567 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2530 int s; 2573 int s;
2531 wait (&s); 2574 wait (&s);
2532 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2575 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2533 ; return 0; } 2576 ; return 0; }
2534 EOF 2577 EOF
2535 if { (eval echo configure:2536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2578 if { (eval echo configure:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2536 rm -rf conftest* 2579 rm -rf conftest*
2537 ac_cv_header_sys_wait_h=yes 2580 ac_cv_header_sys_wait_h=yes
2538 else 2581 else
2539 echo "configure: failed program was:" >&5 2582 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5 2583 cat conftest.$ac_ext >&5
2552 2595
2553 fi 2596 fi
2554 2597
2555 2598
2556 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2599 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2557 echo "configure:2558: checking for struct utimbuf" >&5 2600 echo "configure:2601: checking for struct utimbuf" >&5
2558 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2601 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6 2602 echo $ac_n "(cached) $ac_c" 1>&6
2560 else 2603 else
2561 cat > conftest.$ac_ext <<EOF 2604 cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure" 2605 #line 2606 "configure"
2563 #include "confdefs.h" 2606 #include "confdefs.h"
2564 #ifdef TIME_WITH_SYS_TIME 2607 #ifdef TIME_WITH_SYS_TIME
2565 #include <sys/time.h> 2608 #include <sys/time.h>
2566 #include <time.h> 2609 #include <time.h>
2567 #else 2610 #else
2576 #endif 2619 #endif
2577 int main() { 2620 int main() {
2578 static struct utimbuf x; x.actime = x.modtime; 2621 static struct utimbuf x; x.actime = x.modtime;
2579 ; return 0; } 2622 ; return 0; }
2580 EOF 2623 EOF
2581 if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2582 rm -rf conftest* 2625 rm -rf conftest*
2583 emacs_cv_struct_utimbuf=yes 2626 emacs_cv_struct_utimbuf=yes
2584 else 2627 else
2585 echo "configure: failed program was:" >&5 2628 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5 2629 cat conftest.$ac_ext >&5
2597 EOF 2640 EOF
2598 2641
2599 fi 2642 fi
2600 2643
2601 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2644 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2602 echo "configure:2603: checking return type of signal handlers" >&5 2645 echo "configure:2646: checking return type of signal handlers" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2646 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6 2647 echo $ac_n "(cached) $ac_c" 1>&6
2605 else 2648 else
2606 cat > conftest.$ac_ext <<EOF 2649 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure" 2650 #line 2651 "configure"
2608 #include "confdefs.h" 2651 #include "confdefs.h"
2609 #include <sys/types.h> 2652 #include <sys/types.h>
2610 #include <signal.h> 2653 #include <signal.h>
2611 #ifdef signal 2654 #ifdef signal
2612 #undef signal 2655 #undef signal
2619 2662
2620 int main() { 2663 int main() {
2621 int i; 2664 int i;
2622 ; return 0; } 2665 ; return 0; }
2623 EOF 2666 EOF
2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2667 if { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2625 rm -rf conftest* 2668 rm -rf conftest*
2626 ac_cv_type_signal=void 2669 ac_cv_type_signal=void
2627 else 2670 else
2628 echo "configure: failed program was:" >&5 2671 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5 2672 cat conftest.$ac_ext >&5
2639 EOF 2682 EOF
2640 2683
2641 2684
2642 2685
2643 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 2686 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
2644 echo "configure:2645: checking for speed_t" >&5 2687 echo "configure:2688: checking for speed_t" >&5
2645 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then 2688 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6 2689 echo $ac_n "(cached) $ac_c" 1>&6
2647 else 2690 else
2648 cat > conftest.$ac_ext <<EOF 2691 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure" 2692 #line 2693 "configure"
2650 #include "confdefs.h" 2693 #include "confdefs.h"
2651 #include <termios.h> 2694 #include <termios.h>
2652 int main() { 2695 int main() {
2653 speed_t x = 1; 2696 speed_t x = 1;
2654 ; return 0; } 2697 ; return 0; }
2655 EOF 2698 EOF
2656 if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2699 if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2657 rm -rf conftest* 2700 rm -rf conftest*
2658 emacs_cv_speed_t=yes 2701 emacs_cv_speed_t=yes
2659 else 2702 else
2660 echo "configure: failed program was:" >&5 2703 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5 2704 cat conftest.$ac_ext >&5
2670 EOF 2713 EOF
2671 2714
2672 fi 2715 fi
2673 2716
2674 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2717 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2675 echo "configure:2676: checking for struct timeval" >&5 2718 echo "configure:2719: checking for struct timeval" >&5
2676 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2719 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6 2720 echo $ac_n "(cached) $ac_c" 1>&6
2678 else 2721 else
2679 cat > conftest.$ac_ext <<EOF 2722 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure" 2723 #line 2724 "configure"
2681 #include "confdefs.h" 2724 #include "confdefs.h"
2682 #ifdef TIME_WITH_SYS_TIME 2725 #ifdef TIME_WITH_SYS_TIME
2683 #include <sys/time.h> 2726 #include <sys/time.h>
2684 #include <time.h> 2727 #include <time.h>
2685 #else 2728 #else
2691 #endif 2734 #endif
2692 int main() { 2735 int main() {
2693 static struct timeval x; x.tv_sec = x.tv_usec; 2736 static struct timeval x; x.tv_sec = x.tv_usec;
2694 ; return 0; } 2737 ; return 0; }
2695 EOF 2738 EOF
2696 if { (eval echo configure:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2739 if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 rm -rf conftest* 2740 rm -rf conftest*
2698 emacs_cv_struct_timeval=yes 2741 emacs_cv_struct_timeval=yes
2699 else 2742 else
2700 echo "configure: failed program was:" >&5 2743 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5 2744 cat conftest.$ac_ext >&5
2713 EOF 2756 EOF
2714 2757
2715 fi 2758 fi
2716 2759
2717 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 2760 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
2718 echo "configure:2719: checking for struct exception" >&5 2761 echo "configure:2762: checking for struct exception" >&5
2719 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 2762 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6 2763 echo $ac_n "(cached) $ac_c" 1>&6
2721 else 2764 else
2722 cat > conftest.$ac_ext <<EOF 2765 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure" 2766 #line 2767 "configure"
2724 #include "confdefs.h" 2767 #include "confdefs.h"
2725 #include <math.h> 2768 #include <math.h>
2726 int main() { 2769 int main() {
2727 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 2770 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
2728 ; return 0; } 2771 ; return 0; }
2729 EOF 2772 EOF
2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2773 if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2731 rm -rf conftest* 2774 rm -rf conftest*
2732 emacs_cv_struct_exception=yes 2775 emacs_cv_struct_exception=yes
2733 else 2776 else
2734 echo "configure: failed program was:" >&5 2777 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5 2778 cat conftest.$ac_ext >&5
2747 EOF 2790 EOF
2748 2791
2749 fi 2792 fi
2750 2793
2751 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2794 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether struct tm is in sys/time.h or time.h" >&5 2795 echo "configure:2796: checking whether struct tm is in sys/time.h or time.h" >&5
2753 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2796 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6 2797 echo $ac_n "(cached) $ac_c" 1>&6
2755 else 2798 else
2756 cat > conftest.$ac_ext <<EOF 2799 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure" 2800 #line 2801 "configure"
2758 #include "confdefs.h" 2801 #include "confdefs.h"
2759 #include <sys/types.h> 2802 #include <sys/types.h>
2760 #include <time.h> 2803 #include <time.h>
2761 int main() { 2804 int main() {
2762 struct tm *tp; tp->tm_sec; 2805 struct tm *tp; tp->tm_sec;
2763 ; return 0; } 2806 ; return 0; }
2764 EOF 2807 EOF
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2808 if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766 rm -rf conftest* 2809 rm -rf conftest*
2767 ac_cv_struct_tm=time.h 2810 ac_cv_struct_tm=time.h
2768 else 2811 else
2769 echo "configure: failed program was:" >&5 2812 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5 2813 cat conftest.$ac_ext >&5
2781 EOF 2824 EOF
2782 2825
2783 fi 2826 fi
2784 2827
2785 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2828 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2786 echo "configure:2787: checking for tm_zone in struct tm" >&5 2829 echo "configure:2830: checking for tm_zone in struct tm" >&5
2787 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2830 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6 2831 echo $ac_n "(cached) $ac_c" 1>&6
2789 else 2832 else
2790 cat > conftest.$ac_ext <<EOF 2833 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure" 2834 #line 2835 "configure"
2792 #include "confdefs.h" 2835 #include "confdefs.h"
2793 #include <sys/types.h> 2836 #include <sys/types.h>
2794 #include <$ac_cv_struct_tm> 2837 #include <$ac_cv_struct_tm>
2795 int main() { 2838 int main() {
2796 struct tm tm; tm.tm_zone; 2839 struct tm tm; tm.tm_zone;
2797 ; return 0; } 2840 ; return 0; }
2798 EOF 2841 EOF
2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2842 if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2800 rm -rf conftest* 2843 rm -rf conftest*
2801 ac_cv_struct_tm_zone=yes 2844 ac_cv_struct_tm_zone=yes
2802 else 2845 else
2803 echo "configure: failed program was:" >&5 2846 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5 2847 cat conftest.$ac_ext >&5
2814 #define HAVE_TM_ZONE 1 2857 #define HAVE_TM_ZONE 1
2815 EOF 2858 EOF
2816 2859
2817 else 2860 else
2818 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2861 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2819 echo "configure:2820: checking for tzname" >&5 2862 echo "configure:2863: checking for tzname" >&5
2820 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2863 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6 2864 echo $ac_n "(cached) $ac_c" 1>&6
2822 else 2865 else
2823 cat > conftest.$ac_ext <<EOF 2866 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure" 2867 #line 2868 "configure"
2825 #include "confdefs.h" 2868 #include "confdefs.h"
2826 #include <time.h> 2869 #include <time.h>
2827 #ifndef tzname /* For SGI. */ 2870 #ifndef tzname /* For SGI. */
2828 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2871 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2829 #endif 2872 #endif
2830 int main() { 2873 int main() {
2831 atoi(*tzname); 2874 atoi(*tzname);
2832 ; return 0; } 2875 ; return 0; }
2833 EOF 2876 EOF
2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2877 if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2835 rm -rf conftest* 2878 rm -rf conftest*
2836 ac_cv_var_tzname=yes 2879 ac_cv_var_tzname=yes
2837 else 2880 else
2838 echo "configure: failed program was:" >&5 2881 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5 2882 cat conftest.$ac_ext >&5
2851 2894
2852 fi 2895 fi
2853 fi 2896 fi
2854 2897
2855 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2898 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2856 echo "configure:2857: checking for tm_gmtoff in struct tm" >&5 2899 echo "configure:2900: checking for tm_gmtoff in struct tm" >&5
2857 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2900 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6 2901 echo $ac_n "(cached) $ac_c" 1>&6
2859 else 2902 else
2860 cat > conftest.$ac_ext <<EOF 2903 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure" 2904 #line 2905 "configure"
2862 #include "confdefs.h" 2905 #include "confdefs.h"
2863 #include <time.h> 2906 #include <time.h>
2864 int main() { 2907 int main() {
2865 struct tm t; t.tm_gmtoff = 0 2908 struct tm t; t.tm_gmtoff = 0
2866 ; return 0; } 2909 ; return 0; }
2867 EOF 2910 EOF
2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2869 rm -rf conftest* 2912 rm -rf conftest*
2870 emacs_cv_tm_gmtoff=yes 2913 emacs_cv_tm_gmtoff=yes
2871 else 2914 else
2872 echo "configure: failed program was:" >&5 2915 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5 2916 cat conftest.$ac_ext >&5
2885 2928
2886 fi 2929 fi
2887 2930
2888 2931
2889 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 2932 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2890 echo "configure:2891: checking for ${CC-cc} option to accept ANSI C" >&5 2933 echo "configure:2934: checking for ${CC-cc} option to accept ANSI C" >&5
2891 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 2934 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6 2935 echo $ac_n "(cached) $ac_c" 1>&6
2893 else 2936 else
2894 ac_cv_prog_cc_stdc=no 2937 ac_cv_prog_cc_stdc=no
2895 ac_save_CC="$CC" 2938 ac_save_CC="$CC"
2902 # SVR4 -Xc -D__EXTENSIONS__ 2945 # SVR4 -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2946 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904 do 2947 do
2905 CC="$ac_save_CC $ac_arg" 2948 CC="$ac_save_CC $ac_arg"
2906 cat > conftest.$ac_ext <<EOF 2949 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure" 2950 #line 2951 "configure"
2908 #include "confdefs.h" 2951 #include "confdefs.h"
2909 #include <stdarg.h> 2952 #include <stdarg.h>
2910 #include <stdio.h> 2953 #include <stdio.h>
2911 #include <sys/types.h> 2954 #include <sys/types.h>
2912 #include <sys/stat.h> 2955 #include <sys/stat.h>
2936 char **argv; 2979 char **argv;
2937 int main() { 2980 int main() {
2938 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2939 ; return 0; } 2982 ; return 0; }
2940 EOF 2983 EOF
2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2984 if { (eval echo configure:2985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2942 rm -rf conftest* 2985 rm -rf conftest*
2943 ac_cv_prog_cc_stdc="$ac_arg"; break 2986 ac_cv_prog_cc_stdc="$ac_arg"; break
2944 else 2987 else
2945 echo "configure: failed program was:" >&5 2988 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5 2989 cat conftest.$ac_ext >&5
2958 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 3001 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
2959 CC="$CC $ac_cv_prog_cc_stdc" ;; 3002 CC="$CC $ac_cv_prog_cc_stdc" ;;
2960 esac 3003 esac
2961 3004
2962 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 3005 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2963 echo "configure:2964: checking for function prototypes" >&5 3006 echo "configure:3007: checking for function prototypes" >&5
2964 if test "$ac_cv_prog_cc_stdc" != no; then 3007 if test "$ac_cv_prog_cc_stdc" != no; then
2965 echo "$ac_t""yes" 1>&6 3008 echo "$ac_t""yes" 1>&6
2966 cat >> confdefs.h <<\EOF 3009 cat >> confdefs.h <<\EOF
2967 #define PROTOTYPES 1 3010 #define PROTOTYPES 1
2968 EOF 3011 EOF
2970 else 3013 else
2971 echo "$ac_t""no" 1>&6 3014 echo "$ac_t""no" 1>&6
2972 fi 3015 fi
2973 3016
2974 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 3017 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2975 echo "configure:2976: checking for working volatile" >&5 3018 echo "configure:3019: checking for working volatile" >&5
2976 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 3019 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6 3020 echo $ac_n "(cached) $ac_c" 1>&6
2978 else 3021 else
2979 cat > conftest.$ac_ext <<EOF 3022 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure" 3023 #line 3024 "configure"
2981 #include "confdefs.h" 3024 #include "confdefs.h"
2982 3025
2983 int main() { 3026 int main() {
2984 3027
2985 volatile int x; 3028 volatile int x;
2986 int * volatile y; 3029 int * volatile y;
2987 ; return 0; } 3030 ; return 0; }
2988 EOF 3031 EOF
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3032 if { (eval echo configure:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 rm -rf conftest* 3033 rm -rf conftest*
2991 ac_cv_c_volatile=yes 3034 ac_cv_c_volatile=yes
2992 else 3035 else
2993 echo "configure: failed program was:" >&5 3036 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5 3037 cat conftest.$ac_ext >&5
3005 EOF 3048 EOF
3006 3049
3007 fi 3050 fi
3008 3051
3009 echo $ac_n "checking for working const""... $ac_c" 1>&6 3052 echo $ac_n "checking for working const""... $ac_c" 1>&6
3010 echo "configure:3011: checking for working const" >&5 3053 echo "configure:3054: checking for working const" >&5
3011 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3054 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6 3055 echo $ac_n "(cached) $ac_c" 1>&6
3013 else 3056 else
3014 cat > conftest.$ac_ext <<EOF 3057 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure" 3058 #line 3059 "configure"
3016 #include "confdefs.h" 3059 #include "confdefs.h"
3017 3060
3018 int main() { 3061 int main() {
3019 3062
3020 /* Ultrix mips cc rejects this. */ 3063 /* Ultrix mips cc rejects this. */
3021 typedef int charset[2]; const charset x = {0,0}; 3064 typedef int charset[2]; const charset x;
3022 /* SunOS 4.1.1 cc rejects this. */ 3065 /* SunOS 4.1.1 cc rejects this. */
3023 char const *const *ccp; 3066 char const *const *ccp;
3024 char **p; 3067 char **p;
3025 /* NEC SVR4.0.2 mips cc rejects this. */ 3068 /* NEC SVR4.0.2 mips cc rejects this. */
3026 struct point {int x, y;}; 3069 struct point {int x, y;};
3059 const int foo = 10; 3102 const int foo = 10;
3060 } 3103 }
3061 3104
3062 ; return 0; } 3105 ; return 0; }
3063 EOF 3106 EOF
3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3107 if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065 rm -rf conftest* 3108 rm -rf conftest*
3066 ac_cv_c_const=yes 3109 ac_cv_c_const=yes
3067 else 3110 else
3068 echo "configure: failed program was:" >&5 3111 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5 3112 cat conftest.$ac_ext >&5
3080 EOF 3123 EOF
3081 3124
3082 fi 3125 fi
3083 3126
3084 echo $ac_n "checking for void * support""... $ac_c" 1>&6 3127 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3085 echo "configure:3086: checking for void * support" >&5 3128 echo "configure:3129: checking for void * support" >&5
3086 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 3129 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6 3130 echo $ac_n "(cached) $ac_c" 1>&6
3088 else 3131 else
3089 cat > conftest.$ac_ext <<EOF 3132 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure" 3133 #line 3134 "configure"
3091 #include "confdefs.h" 3134 #include "confdefs.h"
3092 3135
3093 int main() { 3136 int main() {
3094 void * foo; 3137 void * foo;
3095 ; return 0; } 3138 ; return 0; }
3096 EOF 3139 EOF
3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3140 if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 rm -rf conftest* 3141 rm -rf conftest*
3099 emacs_cv_void_star=yes 3142 emacs_cv_void_star=yes
3100 else 3143 else
3101 echo "configure: failed program was:" >&5 3144 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5 3145 cat conftest.$ac_ext >&5
3118 EOF 3161 EOF
3119 3162
3120 fi 3163 fi
3121 3164
3122 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3165 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3123 echo "configure:3124: checking whether ${MAKE-make} sets \${MAKE}" >&5 3166 echo "configure:3167: checking whether ${MAKE-make} sets \${MAKE}" >&5
3124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3167 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3125 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3168 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6 3169 echo $ac_n "(cached) $ac_c" 1>&6
3127 else 3170 else
3128 cat > conftestmake <<\EOF 3171 cat > conftestmake <<\EOF
3146 SET_MAKE="MAKE=${MAKE-make}" 3189 SET_MAKE="MAKE=${MAKE-make}"
3147 fi 3190 fi
3148 3191
3149 3192
3150 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3193 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3151 echo "configure:3152: checking for long file names" >&5 3194 echo "configure:3195: checking for long file names" >&5
3152 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3195 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6 3196 echo $ac_n "(cached) $ac_c" 1>&6
3154 else 3197 else
3155 ac_cv_sys_long_file_names=yes 3198 ac_cv_sys_long_file_names=yes
3156 # Test for long file names in all the places we know might matter: 3199 # Test for long file names in all the places we know might matter:
3197 # If we find X, set shell vars x_includes and x_libraries to the 3240 # If we find X, set shell vars x_includes and x_libraries to the
3198 # paths, otherwise set no_x=yes. 3241 # paths, otherwise set no_x=yes.
3199 # Uses ac_ vars as temps to allow command line to override cache and checks. 3242 # Uses ac_ vars as temps to allow command line to override cache and checks.
3200 # --without-x overrides everything else, but does not touch the cache. 3243 # --without-x overrides everything else, but does not touch the cache.
3201 echo $ac_n "checking for X""... $ac_c" 1>&6 3244 echo $ac_n "checking for X""... $ac_c" 1>&6
3202 echo "configure:3203: checking for X" >&5 3245 echo "configure:3246: checking for X" >&5
3203 3246
3204 # Check whether --with-x or --without-x was given. 3247 # Check whether --with-x or --without-x was given.
3205 if test "${with_x+set}" = set; then 3248 if test "${with_x+set}" = set; then
3206 withval="$with_x" 3249 withval="$with_x"
3207 : 3250 :
3259 # Guess where to find include files, by looking for this one X11 .h file. 3302 # Guess where to find include files, by looking for this one X11 .h file.
3260 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3303 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3261 3304
3262 # First, try using that file with no special directory specified. 3305 # First, try using that file with no special directory specified.
3263 cat > conftest.$ac_ext <<EOF 3306 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure" 3307 #line 3308 "configure"
3265 #include "confdefs.h" 3308 #include "confdefs.h"
3266 #include <$x_direct_test_include> 3309 #include <$x_direct_test_include>
3267 EOF 3310 EOF
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3312 { (eval echo configure:3313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3271 if test -z "$ac_err"; then 3314 if test -z "$ac_err"; then
3272 rm -rf conftest* 3315 rm -rf conftest*
3273 # We can compile using X headers with no special include directory. 3316 # We can compile using X headers with no special include directory.
3274 ac_x_includes= 3317 ac_x_includes=
3333 # See if we find them without any special options. 3376 # See if we find them without any special options.
3334 # Don't add to $LIBS permanently. 3377 # Don't add to $LIBS permanently.
3335 ac_save_LIBS="$LIBS" 3378 ac_save_LIBS="$LIBS"
3336 LIBS="-l$x_direct_test_library $LIBS" 3379 LIBS="-l$x_direct_test_library $LIBS"
3337 cat > conftest.$ac_ext <<EOF 3380 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure" 3381 #line 3382 "configure"
3339 #include "confdefs.h" 3382 #include "confdefs.h"
3340 3383
3341 int main() { 3384 int main() {
3342 ${x_direct_test_function}() 3385 ${x_direct_test_function}()
3343 ; return 0; } 3386 ; return 0; }
3344 EOF 3387 EOF
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 rm -rf conftest* 3389 rm -rf conftest*
3347 LIBS="$ac_save_LIBS" 3390 LIBS="$ac_save_LIBS"
3348 # We can link X programs with no special library path. 3391 # We can link X programs with no special library path.
3349 ac_x_libraries= 3392 ac_x_libraries=
3350 else 3393 else
3515 #### Extract some information from the operating system and machine files. 3558 #### Extract some information from the operating system and machine files.
3516 3559
3517 echo "checking the machine- and system-dependent files to find out 3560 echo "checking the machine- and system-dependent files to find out
3518 - which libraries the lib-src programs will want, and 3561 - which libraries the lib-src programs will want, and
3519 - whether the GNU malloc routines are usable" 1>&6 3562 - whether the GNU malloc routines are usable" 1>&6
3520 echo "configure:3521: checking the machine- and system-dependent files to find out 3563 echo "configure:3564: checking the machine- and system-dependent files to find out
3521 - which libraries the lib-src programs will want, and 3564 - which libraries the lib-src programs will want, and
3522 - whether the GNU malloc routines are usable" >&5 3565 - whether the GNU malloc routines are usable" >&5
3523 3566
3524 ### First figure out CFLAGS (which we use for running the compiler here) 3567 ### First figure out CFLAGS (which we use for running the compiler here)
3525 ### and REAL_CFLAGS (which we use for real compilation). 3568 ### and REAL_CFLAGS (which we use for real compilation).
3649 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3692 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3650 # Assume not, until told otherwise. 3693 # Assume not, until told otherwise.
3651 GNU_MALLOC=yes 3694 GNU_MALLOC=yes
3652 doug_lea_malloc=yes 3695 doug_lea_malloc=yes
3653 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3696 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3654 echo "configure:3655: checking for malloc_get_state" >&5 3697 echo "configure:3698: checking for malloc_get_state" >&5
3655 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3698 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6 3699 echo $ac_n "(cached) $ac_c" 1>&6
3657 else 3700 else
3658 cat > conftest.$ac_ext <<EOF 3701 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure" 3702 #line 3703 "configure"
3660 #include "confdefs.h" 3703 #include "confdefs.h"
3661 /* System header to define __stub macros and hopefully few prototypes, 3704 /* System header to define __stub macros and hopefully few prototypes,
3662 which can conflict with char malloc_get_state(); below. */ 3705 which can conflict with char malloc_get_state(); below. */
3663 #include <assert.h> 3706 #include <assert.h>
3664 /* Override any gcc2 internal prototype to avoid an error. */ 3707 /* Override any gcc2 internal prototype to avoid an error. */
3677 malloc_get_state(); 3720 malloc_get_state();
3678 #endif 3721 #endif
3679 3722
3680 ; return 0; } 3723 ; return 0; }
3681 EOF 3724 EOF
3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 rm -rf conftest* 3726 rm -rf conftest*
3684 eval "ac_cv_func_malloc_get_state=yes" 3727 eval "ac_cv_func_malloc_get_state=yes"
3685 else 3728 else
3686 echo "configure: failed program was:" >&5 3729 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5 3730 cat conftest.$ac_ext >&5
3698 echo "$ac_t""no" 1>&6 3741 echo "$ac_t""no" 1>&6
3699 doug_lea_malloc=no 3742 doug_lea_malloc=no
3700 fi 3743 fi
3701 3744
3702 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3745 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3703 echo "configure:3704: checking for malloc_set_state" >&5 3746 echo "configure:3747: checking for malloc_set_state" >&5
3704 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3747 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6 3748 echo $ac_n "(cached) $ac_c" 1>&6
3706 else 3749 else
3707 cat > conftest.$ac_ext <<EOF 3750 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure" 3751 #line 3752 "configure"
3709 #include "confdefs.h" 3752 #include "confdefs.h"
3710 /* System header to define __stub macros and hopefully few prototypes, 3753 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char malloc_set_state(); below. */ 3754 which can conflict with char malloc_set_state(); below. */
3712 #include <assert.h> 3755 #include <assert.h>
3713 /* Override any gcc2 internal prototype to avoid an error. */ 3756 /* Override any gcc2 internal prototype to avoid an error. */
3726 malloc_set_state(); 3769 malloc_set_state();
3727 #endif 3770 #endif
3728 3771
3729 ; return 0; } 3772 ; return 0; }
3730 EOF 3773 EOF
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3732 rm -rf conftest* 3775 rm -rf conftest*
3733 eval "ac_cv_func_malloc_set_state=yes" 3776 eval "ac_cv_func_malloc_set_state=yes"
3734 else 3777 else
3735 echo "configure: failed program was:" >&5 3778 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5 3779 cat conftest.$ac_ext >&5
3747 echo "$ac_t""no" 1>&6 3790 echo "$ac_t""no" 1>&6
3748 doug_lea_malloc=no 3791 doug_lea_malloc=no
3749 fi 3792 fi
3750 3793
3751 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3794 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3752 echo "configure:3753: checking whether __after_morecore_hook exists" >&5 3795 echo "configure:3796: checking whether __after_morecore_hook exists" >&5
3753 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3796 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6 3797 echo $ac_n "(cached) $ac_c" 1>&6
3755 else 3798 else
3756 cat > conftest.$ac_ext <<EOF 3799 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure" 3800 #line 3801 "configure"
3758 #include "confdefs.h" 3801 #include "confdefs.h"
3759 extern void (* __after_morecore_hook)(); 3802 extern void (* __after_morecore_hook)();
3760 int main() { 3803 int main() {
3761 __after_morecore_hook = 0 3804 __after_morecore_hook = 0
3762 ; return 0; } 3805 ; return 0; }
3763 EOF 3806 EOF
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3765 rm -rf conftest* 3808 rm -rf conftest*
3766 emacs_cv_var___after_morecore_hook=yes 3809 emacs_cv_var___after_morecore_hook=yes
3767 else 3810 else
3768 echo "configure: failed program was:" >&5 3811 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5 3812 cat conftest.$ac_ext >&5
3806 fi 3849 fi
3807 3850
3808 LIBS="$libsrc_libs $LIBS" 3851 LIBS="$libsrc_libs $LIBS"
3809 3852
3810 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
3811 echo "configure:3812: checking for dnet_ntoa in -ldnet" >&5 3854 echo "configure:3855: checking for dnet_ntoa in -ldnet" >&5
3812 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3855 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6 3857 echo $ac_n "(cached) $ac_c" 1>&6
3815 else 3858 else
3816 ac_save_LIBS="$LIBS" 3859 ac_save_LIBS="$LIBS"
3817 LIBS="-ldnet $LIBS" 3860 LIBS="-ldnet $LIBS"
3818 cat > conftest.$ac_ext <<EOF 3861 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure" 3862 #line 3863 "configure"
3820 #include "confdefs.h" 3863 #include "confdefs.h"
3821 /* Override any gcc2 internal prototype to avoid an error. */ 3864 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2 3865 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */ 3866 builtin and then its argument prototype would still apply. */
3824 char dnet_ntoa(); 3867 char dnet_ntoa();
3825 3868
3826 int main() { 3869 int main() {
3827 dnet_ntoa() 3870 dnet_ntoa()
3828 ; return 0; } 3871 ; return 0; }
3829 EOF 3872 EOF
3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3831 rm -rf conftest* 3874 rm -rf conftest*
3832 eval "ac_cv_lib_$ac_lib_var=yes" 3875 eval "ac_cv_lib_$ac_lib_var=yes"
3833 else 3876 else
3834 echo "configure: failed program was:" >&5 3877 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5 3878 cat conftest.$ac_ext >&5
3854 echo "$ac_t""no" 1>&6 3897 echo "$ac_t""no" 1>&6
3855 fi 3898 fi
3856 3899
3857 3900
3858 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3901 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3859 echo "configure:3860: checking for main in -lXbsd" >&5 3902 echo "configure:3903: checking for main in -lXbsd" >&5
3860 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3903 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6 3905 echo $ac_n "(cached) $ac_c" 1>&6
3863 else 3906 else
3864 ac_save_LIBS="$LIBS" 3907 ac_save_LIBS="$LIBS"
3865 LIBS="-lXbsd $LIBS" 3908 LIBS="-lXbsd $LIBS"
3866 cat > conftest.$ac_ext <<EOF 3909 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure" 3910 #line 3911 "configure"
3868 #include "confdefs.h" 3911 #include "confdefs.h"
3869 3912
3870 int main() { 3913 int main() {
3871 main() 3914 main()
3872 ; return 0; } 3915 ; return 0; }
3873 EOF 3916 EOF
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3875 rm -rf conftest* 3918 rm -rf conftest*
3876 eval "ac_cv_lib_$ac_lib_var=yes" 3919 eval "ac_cv_lib_$ac_lib_var=yes"
3877 else 3920 else
3878 echo "configure: failed program was:" >&5 3921 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5 3922 cat conftest.$ac_ext >&5
3891 echo "$ac_t""no" 1>&6 3934 echo "$ac_t""no" 1>&6
3892 fi 3935 fi
3893 3936
3894 3937
3895 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3938 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3896 echo "configure:3897: checking for cma_open in -lpthreads" >&5 3939 echo "configure:3940: checking for cma_open in -lpthreads" >&5
3897 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3940 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6 3942 echo $ac_n "(cached) $ac_c" 1>&6
3900 else 3943 else
3901 ac_save_LIBS="$LIBS" 3944 ac_save_LIBS="$LIBS"
3902 LIBS="-lpthreads $LIBS" 3945 LIBS="-lpthreads $LIBS"
3903 cat > conftest.$ac_ext <<EOF 3946 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure" 3947 #line 3948 "configure"
3905 #include "confdefs.h" 3948 #include "confdefs.h"
3906 /* Override any gcc2 internal prototype to avoid an error. */ 3949 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2 3950 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */ 3951 builtin and then its argument prototype would still apply. */
3909 char cma_open(); 3952 char cma_open();
3910 3953
3911 int main() { 3954 int main() {
3912 cma_open() 3955 cma_open()
3913 ; return 0; } 3956 ; return 0; }
3914 EOF 3957 EOF
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3916 rm -rf conftest* 3959 rm -rf conftest*
3917 eval "ac_cv_lib_$ac_lib_var=yes" 3960 eval "ac_cv_lib_$ac_lib_var=yes"
3918 else 3961 else
3919 echo "configure: failed program was:" >&5 3962 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5 3963 cat conftest.$ac_ext >&5
3939 echo "$ac_t""no" 1>&6 3982 echo "$ac_t""no" 1>&6
3940 fi 3983 fi
3941 3984
3942 3985
3943 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3986 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3944 echo "configure:3945: checking for XFree86 in /usr/X386" >&5 3987 echo "configure:3988: checking for XFree86 in /usr/X386" >&5
3945 if test -d /usr/X386/include; then 3988 if test -d /usr/X386/include; then
3946 HAVE_XFREE386=yes 3989 HAVE_XFREE386=yes
3947 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3990 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3948 else 3991 else
3949 HAVE_XFREE386=no 3992 HAVE_XFREE386=no
3971 export LD_RUN_PATH 4014 export LD_RUN_PATH
3972 fi 4015 fi
3973 4016
3974 if test "${opsys}" = "gnu-linux"; then 4017 if test "${opsys}" = "gnu-linux"; then
3975 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 4018 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3976 echo "configure:3977: checking whether X on GNU/Linux needs -b to link" >&5 4019 echo "configure:4020: checking whether X on GNU/Linux needs -b to link" >&5
3977 cat > conftest.$ac_ext <<EOF 4020 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure" 4021 #line 4022 "configure"
3979 #include "confdefs.h" 4022 #include "confdefs.h"
3980 4023
3981 int main() { 4024 int main() {
3982 XOpenDisplay ("foo"); 4025 XOpenDisplay ("foo");
3983 ; return 0; } 4026 ; return 0; }
3984 EOF 4027 EOF
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 rm -rf conftest* 4029 rm -rf conftest*
3987 xlinux_first_failure=no 4030 xlinux_first_failure=no
3988 else 4031 else
3989 echo "configure: failed program was:" >&5 4032 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5 4033 cat conftest.$ac_ext >&5
4000 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 4043 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
4001 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 4044 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
4002 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 4045 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4003 LIBS="$LIBS -b i486-linuxaout" 4046 LIBS="$LIBS -b i486-linuxaout"
4004 cat > conftest.$ac_ext <<EOF 4047 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure" 4048 #line 4049 "configure"
4006 #include "confdefs.h" 4049 #include "confdefs.h"
4007 4050
4008 int main() { 4051 int main() {
4009 XOpenDisplay ("foo"); 4052 XOpenDisplay ("foo");
4010 ; return 0; } 4053 ; return 0; }
4011 EOF 4054 EOF
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4013 rm -rf conftest* 4056 rm -rf conftest*
4014 xlinux_second_failure=no 4057 xlinux_second_failure=no
4015 else 4058 else
4016 echo "configure: failed program was:" >&5 4059 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5 4060 cat conftest.$ac_ext >&5
4037 4080
4038 for ac_func in XrmSetDatabase XScreenResourceString \ 4081 for ac_func in XrmSetDatabase XScreenResourceString \
4039 XScreenNumberOfScreen XSetWMProtocols 4082 XScreenNumberOfScreen XSetWMProtocols
4040 do 4083 do
4041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4042 echo "configure:4043: checking for $ac_func" >&5 4085 echo "configure:4086: checking for $ac_func" >&5
4043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6 4087 echo $ac_n "(cached) $ac_c" 1>&6
4045 else 4088 else
4046 cat > conftest.$ac_ext <<EOF 4089 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure" 4090 #line 4091 "configure"
4048 #include "confdefs.h" 4091 #include "confdefs.h"
4049 /* System header to define __stub macros and hopefully few prototypes, 4092 /* System header to define __stub macros and hopefully few prototypes,
4050 which can conflict with char $ac_func(); below. */ 4093 which can conflict with char $ac_func(); below. */
4051 #include <assert.h> 4094 #include <assert.h>
4052 /* Override any gcc2 internal prototype to avoid an error. */ 4095 /* Override any gcc2 internal prototype to avoid an error. */
4065 $ac_func(); 4108 $ac_func();
4066 #endif 4109 #endif
4067 4110
4068 ; return 0; } 4111 ; return 0; }
4069 EOF 4112 EOF
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4071 rm -rf conftest* 4114 rm -rf conftest*
4072 eval "ac_cv_func_$ac_func=yes" 4115 eval "ac_cv_func_$ac_func=yes"
4073 else 4116 else
4074 echo "configure: failed program was:" >&5 4117 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5 4118 cat conftest.$ac_ext >&5
4093 4136
4094 fi 4137 fi
4095 4138
4096 if test "${window_system}" = "x11"; then 4139 if test "${window_system}" = "x11"; then
4097 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4140 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4098 echo "configure:4099: checking X11 version 6" >&5 4141 echo "configure:4142: checking X11 version 6" >&5
4099 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4142 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6 4143 echo $ac_n "(cached) $ac_c" 1>&6
4101 else 4144 else
4102 cat > conftest.$ac_ext <<EOF 4145 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure" 4146 #line 4147 "configure"
4104 #include "confdefs.h" 4147 #include "confdefs.h"
4105 #include <X11/Xlib.h> 4148 #include <X11/Xlib.h>
4106 int main() { 4149 int main() {
4107 #if XlibSpecificationRelease < 6 4150 #if XlibSpecificationRelease < 6
4108 fail; 4151 fail;
4109 #endif 4152 #endif
4110 4153
4111 ; return 0; } 4154 ; return 0; }
4112 EOF 4155 EOF
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 rm -rf conftest* 4157 rm -rf conftest*
4115 emacs_cv_x11_version_6=yes 4158 emacs_cv_x11_version_6=yes
4116 else 4159 else
4117 echo "configure: failed program was:" >&5 4160 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5 4161 cat conftest.$ac_ext >&5
4133 fi 4176 fi
4134 fi 4177 fi
4135 4178
4136 if test "${window_system}" = "x11"; then 4179 if test "${window_system}" = "x11"; then
4137 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4180 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4138 echo "configure:4139: checking X11 version 5" >&5 4181 echo "configure:4182: checking X11 version 5" >&5
4139 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4182 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6 4183 echo $ac_n "(cached) $ac_c" 1>&6
4141 else 4184 else
4142 cat > conftest.$ac_ext <<EOF 4185 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure" 4186 #line 4187 "configure"
4144 #include "confdefs.h" 4187 #include "confdefs.h"
4145 #include <X11/Xlib.h> 4188 #include <X11/Xlib.h>
4146 int main() { 4189 int main() {
4147 #if XlibSpecificationRelease < 5 4190 #if XlibSpecificationRelease < 5
4148 fail; 4191 fail;
4149 #endif 4192 #endif
4150 4193
4151 ; return 0; } 4194 ; return 0; }
4152 EOF 4195 EOF
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4154 rm -rf conftest* 4197 rm -rf conftest*
4155 emacs_cv_x11_version_5=yes 4198 emacs_cv_x11_version_5=yes
4156 else 4199 else
4157 echo "configure: failed program was:" >&5 4200 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5 4201 cat conftest.$ac_ext >&5
4176 fi 4219 fi
4177 4220
4178 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4221 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4179 if test x"${HAVE_X11R5}" = xyes; then 4222 if test x"${HAVE_X11R5}" = xyes; then
4180 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4223 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4181 echo "configure:4182: checking X11 version 5 with Xaw" >&5 4224 echo "configure:4225: checking X11 version 5 with Xaw" >&5
4182 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4225 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6 4226 echo $ac_n "(cached) $ac_c" 1>&6
4184 else 4227 else
4185 cat > conftest.$ac_ext <<EOF 4228 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure" 4229 #line 4230 "configure"
4187 #include "confdefs.h" 4230 #include "confdefs.h"
4188 4231
4189 #include <X11/Intrinsic.h> 4232 #include <X11/Intrinsic.h>
4190 #include <X11/Xaw/Simple.h> 4233 #include <X11/Xaw/Simple.h>
4191 int main() { 4234 int main() {
4192 4235
4193 ; return 0; } 4236 ; return 0; }
4194 EOF 4237 EOF
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 rm -rf conftest* 4239 rm -rf conftest*
4197 emacs_cv_x11_version_5_with_xaw=yes 4240 emacs_cv_x11_version_5_with_xaw=yes
4198 else 4241 else
4199 echo "configure: failed program was:" >&5 4242 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5 4243 cat conftest.$ac_ext >&5
4218 4261
4219 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4262 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4220 4263
4221 if test "${USE_X_TOOLKIT}" != "none"; then 4264 if test "${USE_X_TOOLKIT}" != "none"; then
4222 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4265 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4223 echo "configure:4224: checking X11 toolkit version" >&5 4266 echo "configure:4267: checking X11 toolkit version" >&5
4224 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4267 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6 4268 echo $ac_n "(cached) $ac_c" 1>&6
4226 else 4269 else
4227 cat > conftest.$ac_ext <<EOF 4270 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure" 4271 #line 4272 "configure"
4229 #include "confdefs.h" 4272 #include "confdefs.h"
4230 #include <X11/Intrinsic.h> 4273 #include <X11/Intrinsic.h>
4231 int main() { 4274 int main() {
4232 #if XtSpecificationRelease < 6 4275 #if XtSpecificationRelease < 6
4233 fail; 4276 fail;
4234 #endif 4277 #endif
4235 4278
4236 ; return 0; } 4279 ; return 0; }
4237 EOF 4280 EOF
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 rm -rf conftest* 4282 rm -rf conftest*
4240 emacs_cv_x11_toolkit_version_6=yes 4283 emacs_cv_x11_toolkit_version_6=yes
4241 else 4284 else
4242 echo "configure: failed program was:" >&5 4285 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5 4286 cat conftest.$ac_ext >&5
4263 LIBS="-lXt -lSM -lICE $LIBS" 4306 LIBS="-lXt -lSM -lICE $LIBS"
4264 else 4307 else
4265 LIBS="-lXt $LIBS" 4308 LIBS="-lXt $LIBS"
4266 fi 4309 fi
4267 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4310 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4268 echo "configure:4269: checking for XmuConvertStandardSelection in -lXmu" >&5 4311 echo "configure:4312: checking for XmuConvertStandardSelection in -lXmu" >&5
4269 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4312 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6 4314 echo $ac_n "(cached) $ac_c" 1>&6
4272 else 4315 else
4273 ac_save_LIBS="$LIBS" 4316 ac_save_LIBS="$LIBS"
4274 LIBS="-lXmu $LIBS" 4317 LIBS="-lXmu $LIBS"
4275 cat > conftest.$ac_ext <<EOF 4318 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure" 4319 #line 4320 "configure"
4277 #include "confdefs.h" 4320 #include "confdefs.h"
4278 /* Override any gcc2 internal prototype to avoid an error. */ 4321 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2 4322 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */ 4323 builtin and then its argument prototype would still apply. */
4281 char XmuConvertStandardSelection(); 4324 char XmuConvertStandardSelection();
4282 4325
4283 int main() { 4326 int main() {
4284 XmuConvertStandardSelection() 4327 XmuConvertStandardSelection()
4285 ; return 0; } 4328 ; return 0; }
4286 EOF 4329 EOF
4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4288 rm -rf conftest* 4331 rm -rf conftest*
4289 eval "ac_cv_lib_$ac_lib_var=yes" 4332 eval "ac_cv_lib_$ac_lib_var=yes"
4290 else 4333 else
4291 echo "configure: failed program was:" >&5 4334 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5 4335 cat conftest.$ac_ext >&5
4314 LIBS="$OLDLIBS" 4357 LIBS="$OLDLIBS"
4315 fi 4358 fi
4316 4359
4317 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4360 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4318 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4361 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4319 echo "configure:4320: checking for Motif version 2.1" >&5 4362 echo "configure:4363: checking for Motif version 2.1" >&5
4320 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4363 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6 4364 echo $ac_n "(cached) $ac_c" 1>&6
4322 else 4365 else
4323 cat > conftest.$ac_ext <<EOF 4366 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure" 4367 #line 4368 "configure"
4325 #include "confdefs.h" 4368 #include "confdefs.h"
4326 #include <Xm/Xm.h> 4369 #include <Xm/Xm.h>
4327 int main() { 4370 int main() {
4328 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4371 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4329 int x = 5; 4372 int x = 5;
4330 #else 4373 #else
4331 Motif version prior to 2.1. 4374 Motif version prior to 2.1.
4332 #endif 4375 #endif
4333 ; return 0; } 4376 ; return 0; }
4334 EOF 4377 EOF
4335 if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4378 if { (eval echo configure:4379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 rm -rf conftest* 4379 rm -rf conftest*
4337 emacs_cv_motif_version_2_1=yes 4380 emacs_cv_motif_version_2_1=yes
4338 else 4381 else
4339 echo "configure: failed program was:" >&5 4382 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5 4383 cat conftest.$ac_ext >&5
4350 cat >> confdefs.h <<\EOF 4393 cat >> confdefs.h <<\EOF
4351 #define HAVE_MOTIF_2_1 1 4394 #define HAVE_MOTIF_2_1 1
4352 EOF 4395 EOF
4353 4396
4354 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4397 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4355 echo "configure:4356: checking for XpCreateContext in -lXp" >&5 4398 echo "configure:4399: checking for XpCreateContext in -lXp" >&5
4356 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4399 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6 4401 echo $ac_n "(cached) $ac_c" 1>&6
4359 else 4402 else
4360 ac_save_LIBS="$LIBS" 4403 ac_save_LIBS="$LIBS"
4361 LIBS="-lXp -lXext $LIBS" 4404 LIBS="-lXp -lXext $LIBS"
4362 cat > conftest.$ac_ext <<EOF 4405 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure" 4406 #line 4407 "configure"
4364 #include "confdefs.h" 4407 #include "confdefs.h"
4365 /* Override any gcc2 internal prototype to avoid an error. */ 4408 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2 4409 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */ 4410 builtin and then its argument prototype would still apply. */
4368 char XpCreateContext(); 4411 char XpCreateContext();
4369 4412
4370 int main() { 4413 int main() {
4371 XpCreateContext() 4414 XpCreateContext()
4372 ; return 0; } 4415 ; return 0; }
4373 EOF 4416 EOF
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4375 rm -rf conftest* 4418 rm -rf conftest*
4376 eval "ac_cv_lib_$ac_lib_var=yes" 4419 eval "ac_cv_lib_$ac_lib_var=yes"
4377 else 4420 else
4378 echo "configure: failed program was:" >&5 4421 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5 4422 cat conftest.$ac_ext >&5
4406 if test "${USE_X_TOOLKIT}" != "none"; then 4449 if test "${USE_X_TOOLKIT}" != "none"; then
4407 old_c_flags="${CFLAGS}" 4450 old_c_flags="${CFLAGS}"
4408 CFLAGS="${LD_SWITCH_X_SITE}" 4451 CFLAGS="${LD_SWITCH_X_SITE}"
4409 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4452 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4410 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4453 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4411 echo "configure:4412: checking for X11/Xaw3d/Scrollbar.h" >&5 4454 echo "configure:4455: checking for X11/Xaw3d/Scrollbar.h" >&5
4412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6 4456 echo $ac_n "(cached) $ac_c" 1>&6
4414 else 4457 else
4415 cat > conftest.$ac_ext <<EOF 4458 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure" 4459 #line 4460 "configure"
4417 #include "confdefs.h" 4460 #include "confdefs.h"
4418 #include <X11/Xaw3d/Scrollbar.h> 4461 #include <X11/Xaw3d/Scrollbar.h>
4419 EOF 4462 EOF
4420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4421 { (eval echo configure:4422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4423 if test -z "$ac_err"; then 4466 if test -z "$ac_err"; then
4424 rm -rf conftest* 4467 rm -rf conftest*
4425 eval "ac_cv_header_$ac_safe=yes" 4468 eval "ac_cv_header_$ac_safe=yes"
4426 else 4469 else
4433 rm -f conftest* 4476 rm -f conftest*
4434 fi 4477 fi
4435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6 4479 echo "$ac_t""yes" 1>&6
4437 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4480 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4438 echo "configure:4439: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4481 echo "configure:4482: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4439 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4482 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6 4484 echo $ac_n "(cached) $ac_c" 1>&6
4442 else 4485 else
4443 ac_save_LIBS="$LIBS" 4486 ac_save_LIBS="$LIBS"
4444 LIBS="-lXaw3d -lX11 $LIBS" 4487 LIBS="-lXaw3d -lX11 $LIBS"
4445 cat > conftest.$ac_ext <<EOF 4488 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure" 4489 #line 4490 "configure"
4447 #include "confdefs.h" 4490 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */ 4491 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2 4492 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */ 4493 builtin and then its argument prototype would still apply. */
4451 char XawScrollbarSetThumb(); 4494 char XawScrollbarSetThumb();
4452 4495
4453 int main() { 4496 int main() {
4454 XawScrollbarSetThumb() 4497 XawScrollbarSetThumb()
4455 ; return 0; } 4498 ; return 0; }
4456 EOF 4499 EOF
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 rm -rf conftest* 4501 rm -rf conftest*
4459 eval "ac_cv_lib_$ac_lib_var=yes" 4502 eval "ac_cv_lib_$ac_lib_var=yes"
4460 else 4503 else
4461 echo "configure: failed program was:" >&5 4504 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5 4505 cat conftest.$ac_ext >&5
4524 if test "${with_xpm}" != "no"; then 4567 if test "${with_xpm}" != "no"; then
4525 old_c_flags="${CFLAGS}" 4568 old_c_flags="${CFLAGS}"
4526 CFLAGS="${LD_SWITCH_X_SITE}" 4569 CFLAGS="${LD_SWITCH_X_SITE}"
4527 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4570 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4528 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4571 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4529 echo "configure:4530: checking for X11/xpm.h" >&5 4572 echo "configure:4573: checking for X11/xpm.h" >&5
4530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6 4574 echo $ac_n "(cached) $ac_c" 1>&6
4532 else 4575 else
4533 cat > conftest.$ac_ext <<EOF 4576 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure" 4577 #line 4578 "configure"
4535 #include "confdefs.h" 4578 #include "confdefs.h"
4536 #include <X11/xpm.h> 4579 #include <X11/xpm.h>
4537 EOF 4580 EOF
4538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4539 { (eval echo configure:4540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4582 { (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4541 if test -z "$ac_err"; then 4584 if test -z "$ac_err"; then
4542 rm -rf conftest* 4585 rm -rf conftest*
4543 eval "ac_cv_header_$ac_safe=yes" 4586 eval "ac_cv_header_$ac_safe=yes"
4544 else 4587 else
4551 rm -f conftest* 4594 rm -f conftest*
4552 fi 4595 fi
4553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6 4597 echo "$ac_t""yes" 1>&6
4555 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4598 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4556 echo "configure:4557: checking for XpmReadFileToPixmap in -lXpm" >&5 4599 echo "configure:4600: checking for XpmReadFileToPixmap in -lXpm" >&5
4557 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4600 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6 4602 echo $ac_n "(cached) $ac_c" 1>&6
4560 else 4603 else
4561 ac_save_LIBS="$LIBS" 4604 ac_save_LIBS="$LIBS"
4562 LIBS="-lXpm -lX11 $LIBS" 4605 LIBS="-lXpm -lX11 $LIBS"
4563 cat > conftest.$ac_ext <<EOF 4606 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure" 4607 #line 4608 "configure"
4565 #include "confdefs.h" 4608 #include "confdefs.h"
4566 /* Override any gcc2 internal prototype to avoid an error. */ 4609 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2 4610 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */ 4611 builtin and then its argument prototype would still apply. */
4569 char XpmReadFileToPixmap(); 4612 char XpmReadFileToPixmap();
4570 4613
4571 int main() { 4614 int main() {
4572 XpmReadFileToPixmap() 4615 XpmReadFileToPixmap()
4573 ; return 0; } 4616 ; return 0; }
4574 EOF 4617 EOF
4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 rm -rf conftest* 4619 rm -rf conftest*
4577 eval "ac_cv_lib_$ac_lib_var=yes" 4620 eval "ac_cv_lib_$ac_lib_var=yes"
4578 else 4621 else
4579 echo "configure: failed program was:" >&5 4622 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5 4623 cat conftest.$ac_ext >&5
4613 if test "${with_jpeg}" != "no"; then 4656 if test "${with_jpeg}" != "no"; then
4614 old_c_flags="${CFLAGS}" 4657 old_c_flags="${CFLAGS}"
4615 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4658 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4616 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 4659 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4617 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 4660 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4618 echo "configure:4619: checking for jerror.h" >&5 4661 echo "configure:4662: checking for jerror.h" >&5
4619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6 4663 echo $ac_n "(cached) $ac_c" 1>&6
4621 else 4664 else
4622 cat > conftest.$ac_ext <<EOF 4665 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure" 4666 #line 4667 "configure"
4624 #include "confdefs.h" 4667 #include "confdefs.h"
4625 #include <jerror.h> 4668 #include <jerror.h>
4626 EOF 4669 EOF
4627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4628 { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4671 { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4630 if test -z "$ac_err"; then 4673 if test -z "$ac_err"; then
4631 rm -rf conftest* 4674 rm -rf conftest*
4632 eval "ac_cv_header_$ac_safe=yes" 4675 eval "ac_cv_header_$ac_safe=yes"
4633 else 4676 else
4640 rm -f conftest* 4683 rm -f conftest*
4641 fi 4684 fi
4642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6 4686 echo "$ac_t""yes" 1>&6
4644 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4687 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4645 echo "configure:4646: checking for jpeg_destroy_compress in -ljpeg" >&5 4688 echo "configure:4689: checking for jpeg_destroy_compress in -ljpeg" >&5
4646 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4689 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6 4691 echo $ac_n "(cached) $ac_c" 1>&6
4649 else 4692 else
4650 ac_save_LIBS="$LIBS" 4693 ac_save_LIBS="$LIBS"
4651 LIBS="-ljpeg -lX11 $LIBS" 4694 LIBS="-ljpeg -lX11 $LIBS"
4652 cat > conftest.$ac_ext <<EOF 4695 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure" 4696 #line 4697 "configure"
4654 #include "confdefs.h" 4697 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */ 4698 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2 4699 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */ 4700 builtin and then its argument prototype would still apply. */
4658 char jpeg_destroy_compress(); 4701 char jpeg_destroy_compress();
4659 4702
4660 int main() { 4703 int main() {
4661 jpeg_destroy_compress() 4704 jpeg_destroy_compress()
4662 ; return 0; } 4705 ; return 0; }
4663 EOF 4706 EOF
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4665 rm -rf conftest* 4708 rm -rf conftest*
4666 eval "ac_cv_lib_$ac_lib_var=yes" 4709 eval "ac_cv_lib_$ac_lib_var=yes"
4667 else 4710 else
4668 echo "configure: failed program was:" >&5 4711 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5 4712 cat conftest.$ac_ext >&5
4702 if test "${with_png}" != "no"; then 4745 if test "${with_png}" != "no"; then
4703 old_c_flags="${CFLAGS}" 4746 old_c_flags="${CFLAGS}"
4704 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4747 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4705 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4748 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4706 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4749 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4707 echo "configure:4708: checking for png.h" >&5 4750 echo "configure:4751: checking for png.h" >&5
4708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6 4752 echo $ac_n "(cached) $ac_c" 1>&6
4710 else 4753 else
4711 cat > conftest.$ac_ext <<EOF 4754 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure" 4755 #line 4756 "configure"
4713 #include "confdefs.h" 4756 #include "confdefs.h"
4714 #include <png.h> 4757 #include <png.h>
4715 EOF 4758 EOF
4716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4717 { (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4760 { (eval echo configure:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4719 if test -z "$ac_err"; then 4762 if test -z "$ac_err"; then
4720 rm -rf conftest* 4763 rm -rf conftest*
4721 eval "ac_cv_header_$ac_safe=yes" 4764 eval "ac_cv_header_$ac_safe=yes"
4722 else 4765 else
4729 rm -f conftest* 4772 rm -f conftest*
4730 fi 4773 fi
4731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6 4775 echo "$ac_t""yes" 1>&6
4733 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4776 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4734 echo "configure:4735: checking for png_set_expand in -lpng" >&5 4777 echo "configure:4778: checking for png_set_expand in -lpng" >&5
4735 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4778 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6 4780 echo $ac_n "(cached) $ac_c" 1>&6
4738 else 4781 else
4739 ac_save_LIBS="$LIBS" 4782 ac_save_LIBS="$LIBS"
4740 LIBS="-lpng -lX11 -lz -lm $LIBS" 4783 LIBS="-lpng -lX11 -lz -lm $LIBS"
4741 cat > conftest.$ac_ext <<EOF 4784 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure" 4785 #line 4786 "configure"
4743 #include "confdefs.h" 4786 #include "confdefs.h"
4744 /* Override any gcc2 internal prototype to avoid an error. */ 4787 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2 4788 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */ 4789 builtin and then its argument prototype would still apply. */
4747 char png_set_expand(); 4790 char png_set_expand();
4748 4791
4749 int main() { 4792 int main() {
4750 png_set_expand() 4793 png_set_expand()
4751 ; return 0; } 4794 ; return 0; }
4752 EOF 4795 EOF
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754 rm -rf conftest* 4797 rm -rf conftest*
4755 eval "ac_cv_lib_$ac_lib_var=yes" 4798 eval "ac_cv_lib_$ac_lib_var=yes"
4756 else 4799 else
4757 echo "configure: failed program was:" >&5 4800 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5 4801 cat conftest.$ac_ext >&5
4791 if test "${with_tiff}" != "no"; then 4834 if test "${with_tiff}" != "no"; then
4792 old_c_flags="${CFLAGS}" 4835 old_c_flags="${CFLAGS}"
4793 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4836 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4794 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4837 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4795 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4838 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4796 echo "configure:4797: checking for tiffio.h" >&5 4839 echo "configure:4840: checking for tiffio.h" >&5
4797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6 4841 echo $ac_n "(cached) $ac_c" 1>&6
4799 else 4842 else
4800 cat > conftest.$ac_ext <<EOF 4843 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure" 4844 #line 4845 "configure"
4802 #include "confdefs.h" 4845 #include "confdefs.h"
4803 #include <tiffio.h> 4846 #include <tiffio.h>
4804 EOF 4847 EOF
4805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4806 { (eval echo configure:4807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4849 { (eval echo configure:4850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4808 if test -z "$ac_err"; then 4851 if test -z "$ac_err"; then
4809 rm -rf conftest* 4852 rm -rf conftest*
4810 eval "ac_cv_header_$ac_safe=yes" 4853 eval "ac_cv_header_$ac_safe=yes"
4811 else 4854 else
4821 echo "$ac_t""yes" 1>&6 4864 echo "$ac_t""yes" 1>&6
4822 tifflibs="-lX11 -lz -lm" 4865 tifflibs="-lX11 -lz -lm"
4823 # At least one tiff package requires the jpeg library. 4866 # At least one tiff package requires the jpeg library.
4824 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 4867 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4825 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4868 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4826 echo "configure:4827: checking for TIFFGetVersion in -ltiff" >&5 4869 echo "configure:4870: checking for TIFFGetVersion in -ltiff" >&5
4827 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4870 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6 4872 echo $ac_n "(cached) $ac_c" 1>&6
4830 else 4873 else
4831 ac_save_LIBS="$LIBS" 4874 ac_save_LIBS="$LIBS"
4832 LIBS="-ltiff $tifflibs $LIBS" 4875 LIBS="-ltiff $tifflibs $LIBS"
4833 cat > conftest.$ac_ext <<EOF 4876 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure" 4877 #line 4878 "configure"
4835 #include "confdefs.h" 4878 #include "confdefs.h"
4836 /* Override any gcc2 internal prototype to avoid an error. */ 4879 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2 4880 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */ 4881 builtin and then its argument prototype would still apply. */
4839 char TIFFGetVersion(); 4882 char TIFFGetVersion();
4840 4883
4841 int main() { 4884 int main() {
4842 TIFFGetVersion() 4885 TIFFGetVersion()
4843 ; return 0; } 4886 ; return 0; }
4844 EOF 4887 EOF
4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4846 rm -rf conftest* 4889 rm -rf conftest*
4847 eval "ac_cv_lib_$ac_lib_var=yes" 4890 eval "ac_cv_lib_$ac_lib_var=yes"
4848 else 4891 else
4849 echo "configure: failed program was:" >&5 4892 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5 4893 cat conftest.$ac_ext >&5
4883 if test "${with_gif}" != "no"; then 4926 if test "${with_gif}" != "no"; then
4884 old_c_flags="${CFLAGS}" 4927 old_c_flags="${CFLAGS}"
4885 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4928 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4886 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4929 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4887 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4930 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4888 echo "configure:4889: checking for gif_lib.h" >&5 4931 echo "configure:4932: checking for gif_lib.h" >&5
4889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6 4933 echo $ac_n "(cached) $ac_c" 1>&6
4891 else 4934 else
4892 cat > conftest.$ac_ext <<EOF 4935 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure" 4936 #line 4937 "configure"
4894 #include "confdefs.h" 4937 #include "confdefs.h"
4895 #include <gif_lib.h> 4938 #include <gif_lib.h>
4896 EOF 4939 EOF
4897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4898 { (eval echo configure:4899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4941 { (eval echo configure:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4900 if test -z "$ac_err"; then 4943 if test -z "$ac_err"; then
4901 rm -rf conftest* 4944 rm -rf conftest*
4902 eval "ac_cv_header_$ac_safe=yes" 4945 eval "ac_cv_header_$ac_safe=yes"
4903 else 4946 else
4910 rm -f conftest* 4953 rm -f conftest*
4911 fi 4954 fi
4912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6 4956 echo "$ac_t""yes" 1>&6
4914 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 4957 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4915 echo "configure:4916: checking for DGifOpen in -lungif" >&5 4958 echo "configure:4959: checking for DGifOpen in -lungif" >&5
4916 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 4959 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6 4961 echo $ac_n "(cached) $ac_c" 1>&6
4919 else 4962 else
4920 ac_save_LIBS="$LIBS" 4963 ac_save_LIBS="$LIBS"
4921 LIBS="-lungif -lX11 $LIBS" 4964 LIBS="-lungif -lX11 $LIBS"
4922 cat > conftest.$ac_ext <<EOF 4965 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure" 4966 #line 4967 "configure"
4924 #include "confdefs.h" 4967 #include "confdefs.h"
4925 /* Override any gcc2 internal prototype to avoid an error. */ 4968 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2 4969 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */ 4970 builtin and then its argument prototype would still apply. */
4928 char DGifOpen(); 4971 char DGifOpen();
4929 4972
4930 int main() { 4973 int main() {
4931 DGifOpen() 4974 DGifOpen()
4932 ; return 0; } 4975 ; return 0; }
4933 EOF 4976 EOF
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4935 rm -rf conftest* 4978 rm -rf conftest*
4936 eval "ac_cv_lib_$ac_lib_var=yes" 4979 eval "ac_cv_lib_$ac_lib_var=yes"
4937 else 4980 else
4938 echo "configure: failed program was:" >&5 4981 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5 4982 cat conftest.$ac_ext >&5
4966 fi 5009 fi
4967 fi 5010 fi
4968 5011
4969 # If netdb.h doesn't declare h_errno, we must declare it by hand. 5012 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4970 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 5013 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4971 echo "configure:4972: checking whether netdb declares h_errno" >&5 5014 echo "configure:5015: checking whether netdb declares h_errno" >&5
4972 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 5015 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6 5016 echo $ac_n "(cached) $ac_c" 1>&6
4974 else 5017 else
4975 cat > conftest.$ac_ext <<EOF 5018 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure" 5019 #line 5020 "configure"
4977 #include "confdefs.h" 5020 #include "confdefs.h"
4978 #include <netdb.h> 5021 #include <netdb.h>
4979 int main() { 5022 int main() {
4980 return h_errno; 5023 return h_errno;
4981 ; return 0; } 5024 ; return 0; }
4982 EOF 5025 EOF
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4984 rm -rf conftest* 5027 rm -rf conftest*
4985 emacs_cv_netdb_declares_h_errno=yes 5028 emacs_cv_netdb_declares_h_errno=yes
4986 else 5029 else
4987 echo "configure: failed program was:" >&5 5030 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5 5031 cat conftest.$ac_ext >&5
5001 fi 5044 fi
5002 5045
5003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5046 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5004 # for constant arguments. Useless! 5047 # for constant arguments. Useless!
5005 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 5048 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5006 echo "configure:5007: checking for working alloca.h" >&5 5049 echo "configure:5050: checking for working alloca.h" >&5
5007 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 5050 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6 5051 echo $ac_n "(cached) $ac_c" 1>&6
5009 else 5052 else
5010 cat > conftest.$ac_ext <<EOF 5053 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure" 5054 #line 5055 "configure"
5012 #include "confdefs.h" 5055 #include "confdefs.h"
5013 #include <alloca.h> 5056 #include <alloca.h>
5014 int main() { 5057 int main() {
5015 void *p = alloca(2 * sizeof(int)); 5058 char *p = alloca(2 * sizeof(int));
5016 ; return 0; } 5059 ; return 0; }
5017 EOF 5060 EOF
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5061 if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 rm -rf conftest* 5062 rm -rf conftest*
5020 ac_cv_header_alloca_h=yes 5063 ac_cv_header_alloca_h=yes
5021 else 5064 else
5022 echo "configure: failed program was:" >&5 5065 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5 5066 cat conftest.$ac_ext >&5
5034 EOF 5077 EOF
5035 5078
5036 fi 5079 fi
5037 5080
5038 echo $ac_n "checking for alloca""... $ac_c" 1>&6 5081 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5039 echo "configure:5040: checking for alloca" >&5 5082 echo "configure:5083: checking for alloca" >&5
5040 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 5083 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6 5084 echo $ac_n "(cached) $ac_c" 1>&6
5042 else 5085 else
5043 cat > conftest.$ac_ext <<EOF 5086 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure" 5087 #line 5088 "configure"
5045 #include "confdefs.h" 5088 #include "confdefs.h"
5046 5089
5047 #ifdef __GNUC__ 5090 #ifdef __GNUC__
5048 # define alloca __builtin_alloca 5091 # define alloca __builtin_alloca
5049 #else 5092 #else
5067 5110
5068 int main() { 5111 int main() {
5069 char *p = (char *) alloca(1); 5112 char *p = (char *) alloca(1);
5070 ; return 0; } 5113 ; return 0; }
5071 EOF 5114 EOF
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5073 rm -rf conftest* 5116 rm -rf conftest*
5074 ac_cv_func_alloca_works=yes 5117 ac_cv_func_alloca_works=yes
5075 else 5118 else
5076 echo "configure: failed program was:" >&5 5119 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5 5120 cat conftest.$ac_ext >&5
5099 #define C_ALLOCA 1 5142 #define C_ALLOCA 1
5100 EOF 5143 EOF
5101 5144
5102 5145
5103 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5146 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5104 echo "configure:5105: checking whether alloca needs Cray hooks" >&5 5147 echo "configure:5148: checking whether alloca needs Cray hooks" >&5
5105 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5148 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6 5149 echo $ac_n "(cached) $ac_c" 1>&6
5107 else 5150 else
5108 cat > conftest.$ac_ext <<EOF 5151 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure" 5152 #line 5153 "configure"
5110 #include "confdefs.h" 5153 #include "confdefs.h"
5111 #if defined(CRAY) && ! defined(CRAY2) 5154 #if defined(CRAY) && ! defined(CRAY2)
5112 webecray 5155 webecray
5113 #else 5156 #else
5114 wenotbecray 5157 wenotbecray
5129 5172
5130 echo "$ac_t""$ac_cv_os_cray" 1>&6 5173 echo "$ac_t""$ac_cv_os_cray" 1>&6
5131 if test $ac_cv_os_cray = yes; then 5174 if test $ac_cv_os_cray = yes; then
5132 for ac_func in _getb67 GETB67 getb67; do 5175 for ac_func in _getb67 GETB67 getb67; do
5133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5134 echo "configure:5135: checking for $ac_func" >&5 5177 echo "configure:5178: checking for $ac_func" >&5
5135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6 5179 echo $ac_n "(cached) $ac_c" 1>&6
5137 else 5180 else
5138 cat > conftest.$ac_ext <<EOF 5181 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure" 5182 #line 5183 "configure"
5140 #include "confdefs.h" 5183 #include "confdefs.h"
5141 /* System header to define __stub macros and hopefully few prototypes, 5184 /* System header to define __stub macros and hopefully few prototypes,
5142 which can conflict with char $ac_func(); below. */ 5185 which can conflict with char $ac_func(); below. */
5143 #include <assert.h> 5186 #include <assert.h>
5144 /* Override any gcc2 internal prototype to avoid an error. */ 5187 /* Override any gcc2 internal prototype to avoid an error. */
5157 $ac_func(); 5200 $ac_func();
5158 #endif 5201 #endif
5159 5202
5160 ; return 0; } 5203 ; return 0; }
5161 EOF 5204 EOF
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 rm -rf conftest* 5206 rm -rf conftest*
5164 eval "ac_cv_func_$ac_func=yes" 5207 eval "ac_cv_func_$ac_func=yes"
5165 else 5208 else
5166 echo "configure: failed program was:" >&5 5209 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5 5210 cat conftest.$ac_ext >&5
5184 5227
5185 done 5228 done
5186 fi 5229 fi
5187 5230
5188 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5231 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5189 echo "configure:5190: checking stack direction for C alloca" >&5 5232 echo "configure:5233: checking stack direction for C alloca" >&5
5190 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5233 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6 5234 echo $ac_n "(cached) $ac_c" 1>&6
5192 else 5235 else
5193 if test "$cross_compiling" = yes; then 5236 if test "$cross_compiling" = yes; then
5194 ac_cv_c_stack_direction=0 5237 ac_cv_c_stack_direction=0
5195 else 5238 else
5196 cat > conftest.$ac_ext <<EOF 5239 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure" 5240 #line 5241 "configure"
5198 #include "confdefs.h" 5241 #include "confdefs.h"
5199 find_stack_direction () 5242 find_stack_direction ()
5200 { 5243 {
5201 static char *addr = 0; 5244 static char *addr = 0;
5202 auto char dummy; 5245 auto char dummy;
5211 main () 5254 main ()
5212 { 5255 {
5213 exit (find_stack_direction() < 0); 5256 exit (find_stack_direction() < 0);
5214 } 5257 }
5215 EOF 5258 EOF
5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5217 then 5260 then
5218 ac_cv_c_stack_direction=1 5261 ac_cv_c_stack_direction=1
5219 else 5262 else
5220 echo "configure: failed program was:" >&5 5263 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5 5264 cat conftest.$ac_ext >&5
5236 5279
5237 5280
5238 # fmod, logb, and frexp are found in -lm on most systems. 5281 # fmod, logb, and frexp are found in -lm on most systems.
5239 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5282 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5240 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5283 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5241 echo "configure:5242: checking for sqrt in -lm" >&5 5284 echo "configure:5285: checking for sqrt in -lm" >&5
5242 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5285 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6 5287 echo $ac_n "(cached) $ac_c" 1>&6
5245 else 5288 else
5246 ac_save_LIBS="$LIBS" 5289 ac_save_LIBS="$LIBS"
5247 LIBS="-lm $LIBS" 5290 LIBS="-lm $LIBS"
5248 cat > conftest.$ac_ext <<EOF 5291 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure" 5292 #line 5293 "configure"
5250 #include "confdefs.h" 5293 #include "confdefs.h"
5251 /* Override any gcc2 internal prototype to avoid an error. */ 5294 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2 5295 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */ 5296 builtin and then its argument prototype would still apply. */
5254 char sqrt(); 5297 char sqrt();
5255 5298
5256 int main() { 5299 int main() {
5257 sqrt() 5300 sqrt()
5258 ; return 0; } 5301 ; return 0; }
5259 EOF 5302 EOF
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 rm -rf conftest* 5304 rm -rf conftest*
5262 eval "ac_cv_lib_$ac_lib_var=yes" 5305 eval "ac_cv_lib_$ac_lib_var=yes"
5263 else 5306 else
5264 echo "configure: failed program was:" >&5 5307 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5 5308 cat conftest.$ac_ext >&5
5285 fi 5328 fi
5286 5329
5287 5330
5288 # Check for mail-locking functions in a "mail" library 5331 # Check for mail-locking functions in a "mail" library
5289 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5332 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5290 echo "configure:5291: checking for maillock in -lmail" >&5 5333 echo "configure:5334: checking for maillock in -lmail" >&5
5291 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5334 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6 5336 echo $ac_n "(cached) $ac_c" 1>&6
5294 else 5337 else
5295 ac_save_LIBS="$LIBS" 5338 ac_save_LIBS="$LIBS"
5296 LIBS="-lmail $LIBS" 5339 LIBS="-lmail $LIBS"
5297 cat > conftest.$ac_ext <<EOF 5340 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure" 5341 #line 5342 "configure"
5299 #include "confdefs.h" 5342 #include "confdefs.h"
5300 /* Override any gcc2 internal prototype to avoid an error. */ 5343 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2 5344 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */ 5345 builtin and then its argument prototype would still apply. */
5303 char maillock(); 5346 char maillock();
5304 5347
5305 int main() { 5348 int main() {
5306 maillock() 5349 maillock()
5307 ; return 0; } 5350 ; return 0; }
5308 EOF 5351 EOF
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5352 if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 rm -rf conftest* 5353 rm -rf conftest*
5311 eval "ac_cv_lib_$ac_lib_var=yes" 5354 eval "ac_cv_lib_$ac_lib_var=yes"
5312 else 5355 else
5313 echo "configure: failed program was:" >&5 5356 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5 5357 cat conftest.$ac_ext >&5
5332 else 5375 else
5333 echo "$ac_t""no" 1>&6 5376 echo "$ac_t""no" 1>&6
5334 fi 5377 fi
5335 5378
5336 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5379 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5337 echo "configure:5338: checking for maillock in -llockfile" >&5 5380 echo "configure:5381: checking for maillock in -llockfile" >&5
5338 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5381 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6 5383 echo $ac_n "(cached) $ac_c" 1>&6
5341 else 5384 else
5342 ac_save_LIBS="$LIBS" 5385 ac_save_LIBS="$LIBS"
5343 LIBS="-llockfile $LIBS" 5386 LIBS="-llockfile $LIBS"
5344 cat > conftest.$ac_ext <<EOF 5387 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure" 5388 #line 5389 "configure"
5346 #include "confdefs.h" 5389 #include "confdefs.h"
5347 /* Override any gcc2 internal prototype to avoid an error. */ 5390 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2 5391 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */ 5392 builtin and then its argument prototype would still apply. */
5350 char maillock(); 5393 char maillock();
5351 5394
5352 int main() { 5395 int main() {
5353 maillock() 5396 maillock()
5354 ; return 0; } 5397 ; return 0; }
5355 EOF 5398 EOF
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 rm -rf conftest* 5400 rm -rf conftest*
5358 eval "ac_cv_lib_$ac_lib_var=yes" 5401 eval "ac_cv_lib_$ac_lib_var=yes"
5359 else 5402 else
5360 echo "configure: failed program was:" >&5 5403 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5 5404 cat conftest.$ac_ext >&5
5385 # (no liblockfile.a installed), ensure that we don't need to. 5428 # (no liblockfile.a installed), ensure that we don't need to.
5386 if test "$ac_cv_lib_lockfile_maillock" = no; then 5429 if test "$ac_cv_lib_lockfile_maillock" = no; then
5387 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5430 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5388 set dummy liblockfile.so; ac_word=$2 5431 set dummy liblockfile.so; ac_word=$2
5389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_word" >&5 5433 echo "configure:5434: checking for $ac_word" >&5
5391 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5434 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6 5435 echo $ac_n "(cached) $ac_c" 1>&6
5393 else 5436 else
5394 if test -n "$liblockfile"; then 5437 if test -n "$liblockfile"; then
5395 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5438 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5426 else : 5469 else :
5427 fi 5470 fi
5428 for ac_func in touchlock 5471 for ac_func in touchlock
5429 do 5472 do
5430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5431 echo "configure:5432: checking for $ac_func" >&5 5474 echo "configure:5475: checking for $ac_func" >&5
5432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6 5476 echo $ac_n "(cached) $ac_c" 1>&6
5434 else 5477 else
5435 cat > conftest.$ac_ext <<EOF 5478 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure" 5479 #line 5480 "configure"
5437 #include "confdefs.h" 5480 #include "confdefs.h"
5438 /* System header to define __stub macros and hopefully few prototypes, 5481 /* System header to define __stub macros and hopefully few prototypes,
5439 which can conflict with char $ac_func(); below. */ 5482 which can conflict with char $ac_func(); below. */
5440 #include <assert.h> 5483 #include <assert.h>
5441 /* Override any gcc2 internal prototype to avoid an error. */ 5484 /* Override any gcc2 internal prototype to avoid an error. */
5454 $ac_func(); 5497 $ac_func();
5455 #endif 5498 #endif
5456 5499
5457 ; return 0; } 5500 ; return 0; }
5458 EOF 5501 EOF
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5502 if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 rm -rf conftest* 5503 rm -rf conftest*
5461 eval "ac_cv_func_$ac_func=yes" 5504 eval "ac_cv_func_$ac_func=yes"
5462 else 5505 else
5463 echo "configure: failed program was:" >&5 5506 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5 5507 cat conftest.$ac_ext >&5
5482 5525
5483 for ac_hdr in maillock.h 5526 for ac_hdr in maillock.h
5484 do 5527 do
5485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5487 echo "configure:5488: checking for $ac_hdr" >&5 5530 echo "configure:5531: checking for $ac_hdr" >&5
5488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6 5532 echo $ac_n "(cached) $ac_c" 1>&6
5490 else 5533 else
5491 cat > conftest.$ac_ext <<EOF 5534 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure" 5535 #line 5536 "configure"
5493 #include "confdefs.h" 5536 #include "confdefs.h"
5494 #include <$ac_hdr> 5537 #include <$ac_hdr>
5495 EOF 5538 EOF
5496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5497 { (eval echo configure:5498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5540 { (eval echo configure:5541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5499 if test -z "$ac_err"; then 5542 if test -z "$ac_err"; then
5500 rm -rf conftest* 5543 rm -rf conftest*
5501 eval "ac_cv_header_$ac_safe=yes" 5544 eval "ac_cv_header_$ac_safe=yes"
5502 else 5545 else
5527 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5570 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5528 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 5571 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
5529 __fpending mblen mbrlen strsignal setitimer ualarm 5572 __fpending mblen mbrlen strsignal setitimer ualarm
5530 do 5573 do
5531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5532 echo "configure:5533: checking for $ac_func" >&5 5575 echo "configure:5576: checking for $ac_func" >&5
5533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6 5577 echo $ac_n "(cached) $ac_c" 1>&6
5535 else 5578 else
5536 cat > conftest.$ac_ext <<EOF 5579 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure" 5580 #line 5581 "configure"
5538 #include "confdefs.h" 5581 #include "confdefs.h"
5539 /* System header to define __stub macros and hopefully few prototypes, 5582 /* System header to define __stub macros and hopefully few prototypes,
5540 which can conflict with char $ac_func(); below. */ 5583 which can conflict with char $ac_func(); below. */
5541 #include <assert.h> 5584 #include <assert.h>
5542 /* Override any gcc2 internal prototype to avoid an error. */ 5585 /* Override any gcc2 internal prototype to avoid an error. */
5555 $ac_func(); 5598 $ac_func();
5556 #endif 5599 #endif
5557 5600
5558 ; return 0; } 5601 ; return 0; }
5559 EOF 5602 EOF
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5561 rm -rf conftest* 5604 rm -rf conftest*
5562 eval "ac_cv_func_$ac_func=yes" 5605 eval "ac_cv_func_$ac_func=yes"
5563 else 5606 else
5564 echo "configure: failed program was:" >&5 5607 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5 5608 cat conftest.$ac_ext >&5
5584 5627
5585 for ac_hdr in sys/time.h unistd.h 5628 for ac_hdr in sys/time.h unistd.h
5586 do 5629 do
5587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5589 echo "configure:5590: checking for $ac_hdr" >&5 5632 echo "configure:5633: checking for $ac_hdr" >&5
5590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6 5634 echo $ac_n "(cached) $ac_c" 1>&6
5592 else 5635 else
5593 cat > conftest.$ac_ext <<EOF 5636 cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure" 5637 #line 5638 "configure"
5595 #include "confdefs.h" 5638 #include "confdefs.h"
5596 #include <$ac_hdr> 5639 #include <$ac_hdr>
5597 EOF 5640 EOF
5598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5599 { (eval echo configure:5600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5642 { (eval echo configure:5643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5601 if test -z "$ac_err"; then 5644 if test -z "$ac_err"; then
5602 rm -rf conftest* 5645 rm -rf conftest*
5603 eval "ac_cv_header_$ac_safe=yes" 5646 eval "ac_cv_header_$ac_safe=yes"
5604 else 5647 else
5623 done 5666 done
5624 5667
5625 for ac_func in alarm 5668 for ac_func in alarm
5626 do 5669 do
5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5628 echo "configure:5629: checking for $ac_func" >&5 5671 echo "configure:5672: checking for $ac_func" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6 5673 echo $ac_n "(cached) $ac_c" 1>&6
5631 else 5674 else
5632 cat > conftest.$ac_ext <<EOF 5675 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure" 5676 #line 5677 "configure"
5634 #include "confdefs.h" 5677 #include "confdefs.h"
5635 /* System header to define __stub macros and hopefully few prototypes, 5678 /* System header to define __stub macros and hopefully few prototypes,
5636 which can conflict with char $ac_func(); below. */ 5679 which can conflict with char $ac_func(); below. */
5637 #include <assert.h> 5680 #include <assert.h>
5638 /* Override any gcc2 internal prototype to avoid an error. */ 5681 /* Override any gcc2 internal prototype to avoid an error. */
5651 $ac_func(); 5694 $ac_func();
5652 #endif 5695 #endif
5653 5696
5654 ; return 0; } 5697 ; return 0; }
5655 EOF 5698 EOF
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5657 rm -rf conftest* 5700 rm -rf conftest*
5658 eval "ac_cv_func_$ac_func=yes" 5701 eval "ac_cv_func_$ac_func=yes"
5659 else 5702 else
5660 echo "configure: failed program was:" >&5 5703 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5 5704 cat conftest.$ac_ext >&5
5676 echo "$ac_t""no" 1>&6 5719 echo "$ac_t""no" 1>&6
5677 fi 5720 fi
5678 done 5721 done
5679 5722
5680 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 5723 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
5681 echo "configure:5682: checking for working mktime" >&5 5724 echo "configure:5725: checking for working mktime" >&5
5682 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 5725 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6 5726 echo $ac_n "(cached) $ac_c" 1>&6
5684 else 5727 else
5685 if test "$cross_compiling" = yes; then 5728 if test "$cross_compiling" = yes; then
5686 ac_cv_func_working_mktime=no 5729 ac_cv_func_working_mktime=no
5687 else 5730 else
5688 cat > conftest.$ac_ext <<EOF 5731 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure" 5732 #line 5733 "configure"
5690 #include "confdefs.h" 5733 #include "confdefs.h"
5691 /* Test program from Paul Eggert (eggert@twinsun.com) 5734 /* Test program from Paul Eggert (eggert@twinsun.com)
5692 and Tony Leneis (tony@plaza.ds.adp.com). */ 5735 and Tony Leneis (tony@plaza.ds.adp.com). */
5693 #if TIME_WITH_SYS_TIME 5736 #if TIME_WITH_SYS_TIME
5694 # include <sys/time.h> 5737 # include <sys/time.h>
5833 irix_6_4_bug (); 5876 irix_6_4_bug ();
5834 spring_forward_gap (); 5877 spring_forward_gap ();
5835 exit (0); 5878 exit (0);
5836 } 5879 }
5837 EOF 5880 EOF
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5881 if { (eval echo configure:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5839 then 5882 then
5840 ac_cv_func_working_mktime=yes 5883 ac_cv_func_working_mktime=yes
5841 else 5884 else
5842 echo "configure: failed program was:" >&5 5885 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5 5886 cat conftest.$ac_ext >&5
5865 5908
5866 # Some systems with -lutil have (and need) -lkvm as well, some do not. 5909 # Some systems with -lutil have (and need) -lkvm as well, some do not.
5867 # On Solaris, -lkvm requires nlist from -lelf, so check that first 5910 # On Solaris, -lkvm requires nlist from -lelf, so check that first
5868 # to get the right answer into the cache. 5911 # to get the right answer into the cache.
5869 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 5912 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
5870 echo "configure:5871: checking for elf_begin in -lelf" >&5 5913 echo "configure:5914: checking for elf_begin in -lelf" >&5
5871 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 5914 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
5872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6 5916 echo $ac_n "(cached) $ac_c" 1>&6
5874 else 5917 else
5875 ac_save_LIBS="$LIBS" 5918 ac_save_LIBS="$LIBS"
5876 LIBS="-lelf $LIBS" 5919 LIBS="-lelf $LIBS"
5877 cat > conftest.$ac_ext <<EOF 5920 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure" 5921 #line 5922 "configure"
5879 #include "confdefs.h" 5922 #include "confdefs.h"
5880 /* Override any gcc2 internal prototype to avoid an error. */ 5923 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2 5924 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */ 5925 builtin and then its argument prototype would still apply. */
5883 char elf_begin(); 5926 char elf_begin();
5884 5927
5885 int main() { 5928 int main() {
5886 elf_begin() 5929 elf_begin()
5887 ; return 0; } 5930 ; return 0; }
5888 EOF 5931 EOF
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 rm -rf conftest* 5933 rm -rf conftest*
5891 eval "ac_cv_lib_$ac_lib_var=yes" 5934 eval "ac_cv_lib_$ac_lib_var=yes"
5892 else 5935 else
5893 echo "configure: failed program was:" >&5 5936 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5 5937 cat conftest.$ac_ext >&5
5905 else 5948 else
5906 echo "$ac_t""no" 1>&6 5949 echo "$ac_t""no" 1>&6
5907 fi 5950 fi
5908 5951
5909 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 5952 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
5910 echo "configure:5911: checking for kvm_open in -lkvm" >&5 5953 echo "configure:5954: checking for kvm_open in -lkvm" >&5
5911 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 5954 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
5912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6 5956 echo $ac_n "(cached) $ac_c" 1>&6
5914 else 5957 else
5915 ac_save_LIBS="$LIBS" 5958 ac_save_LIBS="$LIBS"
5916 LIBS="-lkvm $LIBS" 5959 LIBS="-lkvm $LIBS"
5917 cat > conftest.$ac_ext <<EOF 5960 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure" 5961 #line 5962 "configure"
5919 #include "confdefs.h" 5962 #include "confdefs.h"
5920 /* Override any gcc2 internal prototype to avoid an error. */ 5963 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2 5964 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */ 5965 builtin and then its argument prototype would still apply. */
5923 char kvm_open(); 5966 char kvm_open();
5924 5967
5925 int main() { 5968 int main() {
5926 kvm_open() 5969 kvm_open()
5927 ; return 0; } 5970 ; return 0; }
5928 EOF 5971 EOF
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5930 rm -rf conftest* 5973 rm -rf conftest*
5931 eval "ac_cv_lib_$ac_lib_var=yes" 5974 eval "ac_cv_lib_$ac_lib_var=yes"
5932 else 5975 else
5933 echo "configure: failed program was:" >&5 5976 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5 5977 cat conftest.$ac_ext >&5
5946 echo "$ac_t""no" 1>&6 5989 echo "$ac_t""no" 1>&6
5947 fi 5990 fi
5948 5991
5949 # Check for the 4.4BSD definition of getloadavg. 5992 # Check for the 4.4BSD definition of getloadavg.
5950 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 5993 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
5951 echo "configure:5952: checking for getloadavg in -lutil" >&5 5994 echo "configure:5995: checking for getloadavg in -lutil" >&5
5952 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 5995 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
5953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6 5997 echo $ac_n "(cached) $ac_c" 1>&6
5955 else 5998 else
5956 ac_save_LIBS="$LIBS" 5999 ac_save_LIBS="$LIBS"
5957 LIBS="-lutil $LIBS" 6000 LIBS="-lutil $LIBS"
5958 cat > conftest.$ac_ext <<EOF 6001 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure" 6002 #line 6003 "configure"
5960 #include "confdefs.h" 6003 #include "confdefs.h"
5961 /* Override any gcc2 internal prototype to avoid an error. */ 6004 /* Override any gcc2 internal prototype to avoid an error. */
5962 /* We use char because int might match the return type of a gcc2 6005 /* We use char because int might match the return type of a gcc2
5963 builtin and then its argument prototype would still apply. */ 6006 builtin and then its argument prototype would still apply. */
5964 char getloadavg(); 6007 char getloadavg();
5965 6008
5966 int main() { 6009 int main() {
5967 getloadavg() 6010 getloadavg()
5968 ; return 0; } 6011 ; return 0; }
5969 EOF 6012 EOF
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 rm -rf conftest* 6014 rm -rf conftest*
5972 eval "ac_cv_lib_$ac_lib_var=yes" 6015 eval "ac_cv_lib_$ac_lib_var=yes"
5973 else 6016 else
5974 echo "configure: failed program was:" >&5 6017 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5 6018 cat conftest.$ac_ext >&5
5991 if test $ac_have_func = no; then 6034 if test $ac_have_func = no; then
5992 # There is a commonly available library for RS/6000 AIX. 6035 # There is a commonly available library for RS/6000 AIX.
5993 # Since it is not a standard part of AIX, it might be installed locally. 6036 # Since it is not a standard part of AIX, it might be installed locally.
5994 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 6037 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
5995 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 6038 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
5996 echo "configure:5997: checking for getloadavg in -lgetloadavg" >&5 6039 echo "configure:6040: checking for getloadavg in -lgetloadavg" >&5
5997 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 6040 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
5998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6 6042 echo $ac_n "(cached) $ac_c" 1>&6
6000 else 6043 else
6001 ac_save_LIBS="$LIBS" 6044 ac_save_LIBS="$LIBS"
6002 LIBS="-lgetloadavg $LIBS" 6045 LIBS="-lgetloadavg $LIBS"
6003 cat > conftest.$ac_ext <<EOF 6046 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure" 6047 #line 6048 "configure"
6005 #include "confdefs.h" 6048 #include "confdefs.h"
6006 /* Override any gcc2 internal prototype to avoid an error. */ 6049 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2 6050 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */ 6051 builtin and then its argument prototype would still apply. */
6009 char getloadavg(); 6052 char getloadavg();
6010 6053
6011 int main() { 6054 int main() {
6012 getloadavg() 6055 getloadavg()
6013 ; return 0; } 6056 ; return 0; }
6014 EOF 6057 EOF
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 rm -rf conftest* 6059 rm -rf conftest*
6017 eval "ac_cv_lib_$ac_lib_var=yes" 6060 eval "ac_cv_lib_$ac_lib_var=yes"
6018 else 6061 else
6019 echo "configure: failed program was:" >&5 6062 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 6063 cat conftest.$ac_ext >&5
6037 6080
6038 # Make sure it is really in the library, if we think we found it. 6081 # Make sure it is really in the library, if we think we found it.
6039 for ac_func in getloadavg 6082 for ac_func in getloadavg
6040 do 6083 do
6041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6042 echo "configure:6043: checking for $ac_func" >&5 6085 echo "configure:6086: checking for $ac_func" >&5
6043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6 6087 echo $ac_n "(cached) $ac_c" 1>&6
6045 else 6088 else
6046 cat > conftest.$ac_ext <<EOF 6089 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure" 6090 #line 6091 "configure"
6048 #include "confdefs.h" 6091 #include "confdefs.h"
6049 /* System header to define __stub macros and hopefully few prototypes, 6092 /* System header to define __stub macros and hopefully few prototypes,
6050 which can conflict with char $ac_func(); below. */ 6093 which can conflict with char $ac_func(); below. */
6051 #include <assert.h> 6094 #include <assert.h>
6052 /* Override any gcc2 internal prototype to avoid an error. */ 6095 /* Override any gcc2 internal prototype to avoid an error. */
6065 $ac_func(); 6108 $ac_func();
6066 #endif 6109 #endif
6067 6110
6068 ; return 0; } 6111 ; return 0; }
6069 EOF 6112 EOF
6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6071 rm -rf conftest* 6114 rm -rf conftest*
6072 eval "ac_cv_func_$ac_func=yes" 6115 eval "ac_cv_func_$ac_func=yes"
6073 else 6116 else
6074 echo "configure: failed program was:" >&5 6117 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5 6118 cat conftest.$ac_ext >&5
6103 else 6146 else
6104 # Figure out what our getloadavg.c needs. 6147 # Figure out what our getloadavg.c needs.
6105 ac_have_func=no 6148 ac_have_func=no
6106 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6149 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6150 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6108 echo "configure:6109: checking for sys/dg_sys_info.h" >&5 6151 echo "configure:6152: checking for sys/dg_sys_info.h" >&5
6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6 6153 echo $ac_n "(cached) $ac_c" 1>&6
6111 else 6154 else
6112 cat > conftest.$ac_ext <<EOF 6155 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure" 6156 #line 6157 "configure"
6114 #include "confdefs.h" 6157 #include "confdefs.h"
6115 #include <sys/dg_sys_info.h> 6158 #include <sys/dg_sys_info.h>
6116 EOF 6159 EOF
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6161 { (eval echo configure:6162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6120 if test -z "$ac_err"; then 6163 if test -z "$ac_err"; then
6121 rm -rf conftest* 6164 rm -rf conftest*
6122 eval "ac_cv_header_$ac_safe=yes" 6165 eval "ac_cv_header_$ac_safe=yes"
6123 else 6166 else
6134 ac_have_func=yes; cat >> confdefs.h <<\EOF 6177 ac_have_func=yes; cat >> confdefs.h <<\EOF
6135 #define DGUX 1 6178 #define DGUX 1
6136 EOF 6179 EOF
6137 6180
6138 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6181 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6139 echo "configure:6140: checking for dg_sys_info in -ldgc" >&5 6182 echo "configure:6183: checking for dg_sys_info in -ldgc" >&5
6140 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6183 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6 6185 echo $ac_n "(cached) $ac_c" 1>&6
6143 else 6186 else
6144 ac_save_LIBS="$LIBS" 6187 ac_save_LIBS="$LIBS"
6145 LIBS="-ldgc $LIBS" 6188 LIBS="-ldgc $LIBS"
6146 cat > conftest.$ac_ext <<EOF 6189 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure" 6190 #line 6191 "configure"
6148 #include "confdefs.h" 6191 #include "confdefs.h"
6149 /* Override any gcc2 internal prototype to avoid an error. */ 6192 /* Override any gcc2 internal prototype to avoid an error. */
6150 /* We use char because int might match the return type of a gcc2 6193 /* We use char because int might match the return type of a gcc2
6151 builtin and then its argument prototype would still apply. */ 6194 builtin and then its argument prototype would still apply. */
6152 char dg_sys_info(); 6195 char dg_sys_info();
6153 6196
6154 int main() { 6197 int main() {
6155 dg_sys_info() 6198 dg_sys_info()
6156 ; return 0; } 6199 ; return 0; }
6157 EOF 6200 EOF
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 rm -rf conftest* 6202 rm -rf conftest*
6160 eval "ac_cv_lib_$ac_lib_var=yes" 6203 eval "ac_cv_lib_$ac_lib_var=yes"
6161 else 6204 else
6162 echo "configure: failed program was:" >&5 6205 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5 6206 cat conftest.$ac_ext >&5
6198 fi 6241 fi
6199 6242
6200 if test $ac_have_func = no; then 6243 if test $ac_have_func = no; then
6201 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6244 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6202 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6245 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6203 echo "configure:6204: checking for inq_stats/cpustats.h" >&5 6246 echo "configure:6247: checking for inq_stats/cpustats.h" >&5
6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6 6248 echo $ac_n "(cached) $ac_c" 1>&6
6206 else 6249 else
6207 cat > conftest.$ac_ext <<EOF 6250 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure" 6251 #line 6252 "configure"
6209 #include "confdefs.h" 6252 #include "confdefs.h"
6210 #include <inq_stats/cpustats.h> 6253 #include <inq_stats/cpustats.h>
6211 EOF 6254 EOF
6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6256 { (eval echo configure:6257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6215 if test -z "$ac_err"; then 6258 if test -z "$ac_err"; then
6216 rm -rf conftest* 6259 rm -rf conftest*
6217 eval "ac_cv_header_$ac_safe=yes" 6260 eval "ac_cv_header_$ac_safe=yes"
6218 else 6261 else
6241 fi 6284 fi
6242 6285
6243 if test $ac_have_func = no; then 6286 if test $ac_have_func = no; then
6244 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6287 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6245 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6288 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6246 echo "configure:6247: checking for sys/cpustats.h" >&5 6289 echo "configure:6290: checking for sys/cpustats.h" >&5
6247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6 6291 echo $ac_n "(cached) $ac_c" 1>&6
6249 else 6292 else
6250 cat > conftest.$ac_ext <<EOF 6293 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure" 6294 #line 6295 "configure"
6252 #include "confdefs.h" 6295 #include "confdefs.h"
6253 #include <sys/cpustats.h> 6296 #include <sys/cpustats.h>
6254 EOF 6297 EOF
6255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6256 { (eval echo configure:6257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6299 { (eval echo configure:6300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6258 if test -z "$ac_err"; then 6301 if test -z "$ac_err"; then
6259 rm -rf conftest* 6302 rm -rf conftest*
6260 eval "ac_cv_header_$ac_safe=yes" 6303 eval "ac_cv_header_$ac_safe=yes"
6261 else 6304 else
6282 if test $ac_have_func = no; then 6325 if test $ac_have_func = no; then
6283 for ac_hdr in mach/mach.h 6326 for ac_hdr in mach/mach.h
6284 do 6327 do
6285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6287 echo "configure:6288: checking for $ac_hdr" >&5 6330 echo "configure:6331: checking for $ac_hdr" >&5
6288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6 6332 echo $ac_n "(cached) $ac_c" 1>&6
6290 else 6333 else
6291 cat > conftest.$ac_ext <<EOF 6334 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure" 6335 #line 6336 "configure"
6293 #include "confdefs.h" 6336 #include "confdefs.h"
6294 #include <$ac_hdr> 6337 #include <$ac_hdr>
6295 EOF 6338 EOF
6296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6297 { (eval echo configure:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6340 { (eval echo configure:6341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6299 if test -z "$ac_err"; then 6342 if test -z "$ac_err"; then
6300 rm -rf conftest* 6343 rm -rf conftest*
6301 eval "ac_cv_header_$ac_safe=yes" 6344 eval "ac_cv_header_$ac_safe=yes"
6302 else 6345 else
6322 6365
6323 fi 6366 fi
6324 6367
6325 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6368 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6326 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6369 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6327 echo "configure:6328: checking for nlist.h" >&5 6370 echo "configure:6371: checking for nlist.h" >&5
6328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6 6372 echo $ac_n "(cached) $ac_c" 1>&6
6330 else 6373 else
6331 cat > conftest.$ac_ext <<EOF 6374 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure" 6375 #line 6376 "configure"
6333 #include "confdefs.h" 6376 #include "confdefs.h"
6334 #include <nlist.h> 6377 #include <nlist.h>
6335 EOF 6378 EOF
6336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6337 { (eval echo configure:6338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6380 { (eval echo configure:6381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6339 if test -z "$ac_err"; then 6382 if test -z "$ac_err"; then
6340 rm -rf conftest* 6383 rm -rf conftest*
6341 eval "ac_cv_header_$ac_safe=yes" 6384 eval "ac_cv_header_$ac_safe=yes"
6342 else 6385 else
6353 cat >> confdefs.h <<\EOF 6396 cat >> confdefs.h <<\EOF
6354 #define NLIST_STRUCT 1 6397 #define NLIST_STRUCT 1
6355 EOF 6398 EOF
6356 6399
6357 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 6400 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6358 echo "configure:6359: checking for n_un in struct nlist" >&5 6401 echo "configure:6402: checking for n_un in struct nlist" >&5
6359 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 6402 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6 6403 echo $ac_n "(cached) $ac_c" 1>&6
6361 else 6404 else
6362 cat > conftest.$ac_ext <<EOF 6405 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure" 6406 #line 6407 "configure"
6364 #include "confdefs.h" 6407 #include "confdefs.h"
6365 #include <nlist.h> 6408 #include <nlist.h>
6366 int main() { 6409 int main() {
6367 struct nlist n; n.n_un.n_name = 0; 6410 struct nlist n; n.n_un.n_name = 0;
6368 ; return 0; } 6411 ; return 0; }
6369 EOF 6412 EOF
6370 if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6413 if { (eval echo configure:6414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6371 rm -rf conftest* 6414 rm -rf conftest*
6372 ac_cv_struct_nlist_n_un=yes 6415 ac_cv_struct_nlist_n_un=yes
6373 else 6416 else
6374 echo "configure: failed program was:" >&5 6417 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5 6418 cat conftest.$ac_ext >&5
6392 fi 6435 fi
6393 fi # Do not have getloadavg in system libraries. 6436 fi # Do not have getloadavg in system libraries.
6394 6437
6395 # Some definitions of getloadavg require that the program be installed setgid. 6438 # Some definitions of getloadavg require that the program be installed setgid.
6396 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 6439 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
6397 echo "configure:6398: checking whether getloadavg requires setgid" >&5 6440 echo "configure:6441: checking whether getloadavg requires setgid" >&5
6398 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 6441 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6 6442 echo $ac_n "(cached) $ac_c" 1>&6
6400 else 6443 else
6401 cat > conftest.$ac_ext <<EOF 6444 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure" 6445 #line 6446 "configure"
6403 #include "confdefs.h" 6446 #include "confdefs.h"
6404 #include "$srcdir/getloadavg.c" 6447 #include "$srcdir/getloadavg.c"
6405 #ifdef LDAV_PRIVILEGED 6448 #ifdef LDAV_PRIVILEGED
6406 Yowza Am I SETGID yet 6449 Yowza Am I SETGID yet
6407 #endif 6450 #endif
6428 NEED_SETGID=false 6471 NEED_SETGID=false
6429 fi 6472 fi
6430 6473
6431 if test $ac_cv_func_getloadavg_setgid = yes; then 6474 if test $ac_cv_func_getloadavg_setgid = yes; then
6432 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 6475 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
6433 echo "configure:6434: checking group of /dev/kmem" >&5 6476 echo "configure:6477: checking group of /dev/kmem" >&5
6434 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 6477 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6 6478 echo $ac_n "(cached) $ac_c" 1>&6
6436 else 6479 else
6437 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 6480 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
6438 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 6481 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
6457 fi 6500 fi
6458 6501
6459 if test "$enable_largefile" != no; then 6502 if test "$enable_largefile" != no; then
6460 6503
6461 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 6504 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
6462 echo "configure:6463: checking for special C compiler options needed for large files" >&5 6505 echo "configure:6506: checking for special C compiler options needed for large files" >&5
6463 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 6506 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6 6507 echo $ac_n "(cached) $ac_c" 1>&6
6465 else 6508 else
6466 ac_cv_sys_largefile_CC=no 6509 ac_cv_sys_largefile_CC=no
6467 if test "$GCC" != yes; then 6510 if test "$GCC" != yes; then
6468 # IRIX 6.2 and later do not support large files by default, 6511 # IRIX 6.2 and later do not support large files by default,
6469 # so use the C compiler's -n32 option if that helps. 6512 # so use the C compiler's -n32 option if that helps.
6470 cat > conftest.$ac_ext <<EOF 6513 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure" 6514 #line 6515 "configure"
6472 #include "confdefs.h" 6515 #include "confdefs.h"
6473 #include <sys/types.h> 6516 #include <sys/types.h>
6474 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6517 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6475 6518
6476 int main() { 6519 int main() {
6477 6520
6478 ; return 0; } 6521 ; return 0; }
6479 EOF 6522 EOF
6480 if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6523 if { (eval echo configure:6524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6481 : 6524 :
6482 else 6525 else
6483 echo "configure: failed program was:" >&5 6526 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5 6527 cat conftest.$ac_ext >&5
6485 rm -rf conftest* 6528 rm -rf conftest*
6486 ac_save_CC="$CC" 6529 ac_save_CC="$CC"
6487 CC="$CC -n32" 6530 CC="$CC -n32"
6488 cat > conftest.$ac_ext <<EOF 6531 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure" 6532 #line 6533 "configure"
6490 #include "confdefs.h" 6533 #include "confdefs.h"
6491 #include <sys/types.h> 6534 #include <sys/types.h>
6492 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6535 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6493 6536
6494 int main() { 6537 int main() {
6495 6538
6496 ; return 0; } 6539 ; return 0; }
6497 EOF 6540 EOF
6498 if { (eval echo configure:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6541 if { (eval echo configure:6542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6499 rm -rf conftest* 6542 rm -rf conftest*
6500 ac_cv_sys_largefile_CC=' -n32' 6543 ac_cv_sys_largefile_CC=' -n32'
6501 else 6544 else
6502 echo "configure: failed program was:" >&5 6545 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5 6546 cat conftest.$ac_ext >&5
6513 if test "$ac_cv_sys_largefile_CC" != no; then 6556 if test "$ac_cv_sys_largefile_CC" != no; then
6514 CC="$CC$ac_cv_sys_largefile_CC" 6557 CC="$CC$ac_cv_sys_largefile_CC"
6515 fi 6558 fi
6516 6559
6517 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 6560 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
6518 echo "configure:6519: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6561 echo "configure:6562: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6519 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 6562 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
6520 echo $ac_n "(cached) $ac_c" 1>&6 6563 echo $ac_n "(cached) $ac_c" 1>&6
6521 else 6564 else
6522 ac_cv_sys_file_offset_bits=no 6565 ac_cv_sys_file_offset_bits=no
6523 cat > conftest.$ac_ext <<EOF 6566 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure" 6567 #line 6568 "configure"
6525 #include "confdefs.h" 6568 #include "confdefs.h"
6526 #include <sys/types.h> 6569 #include <sys/types.h>
6527 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6570 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6528 6571
6529 6572
6530 6573
6531 int main() { 6574 int main() {
6532 6575
6533 ; return 0; } 6576 ; return 0; }
6534 EOF 6577 EOF
6535 if { (eval echo configure:6536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6578 if { (eval echo configure:6579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6536 : 6579 :
6537 else 6580 else
6538 echo "configure: failed program was:" >&5 6581 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5 6582 cat conftest.$ac_ext >&5
6540 rm -rf conftest* 6583 rm -rf conftest*
6541 cat > conftest.$ac_ext <<EOF 6584 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure" 6585 #line 6586 "configure"
6543 #include "confdefs.h" 6586 #include "confdefs.h"
6544 #define _FILE_OFFSET_BITS 64 6587 #define _FILE_OFFSET_BITS 64
6545 #include <sys/types.h> 6588 #include <sys/types.h>
6546 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6589 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6547 6590
6549 6592
6550 int main() { 6593 int main() {
6551 6594
6552 ; return 0; } 6595 ; return 0; }
6553 EOF 6596 EOF
6554 if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6597 if { (eval echo configure:6598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6555 rm -rf conftest* 6598 rm -rf conftest*
6556 ac_cv_sys_file_offset_bits=64 6599 ac_cv_sys_file_offset_bits=64
6557 else 6600 else
6558 echo "configure: failed program was:" >&5 6601 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5 6602 cat conftest.$ac_ext >&5
6569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6612 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6570 EOF 6613 EOF
6571 6614
6572 fi 6615 fi
6573 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 6616 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
6574 echo "configure:6575: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6617 echo "configure:6618: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6575 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 6618 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6 6619 echo $ac_n "(cached) $ac_c" 1>&6
6577 else 6620 else
6578 ac_cv_sys_largefile_source=no 6621 ac_cv_sys_largefile_source=no
6579 cat > conftest.$ac_ext <<EOF 6622 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure" 6623 #line 6624 "configure"
6581 #include "confdefs.h" 6624 #include "confdefs.h"
6582 #include <sys/types.h> 6625 #include <sys/types.h>
6583 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6626 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6584 6627
6585 #include <stdio.h> 6628 #include <stdio.h>
6586 6629
6587 int main() { 6630 int main() {
6588 return !ftello; 6631 return !ftello;
6589 ; return 0; } 6632 ; return 0; }
6590 EOF 6633 EOF
6591 if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6634 if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6592 : 6635 :
6593 else 6636 else
6594 echo "configure: failed program was:" >&5 6637 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5 6638 cat conftest.$ac_ext >&5
6596 rm -rf conftest* 6639 rm -rf conftest*
6597 cat > conftest.$ac_ext <<EOF 6640 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure" 6641 #line 6642 "configure"
6599 #include "confdefs.h" 6642 #include "confdefs.h"
6600 #define _LARGEFILE_SOURCE 1 6643 #define _LARGEFILE_SOURCE 1
6601 #include <sys/types.h> 6644 #include <sys/types.h>
6602 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6645 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6603 6646
6605 6648
6606 int main() { 6649 int main() {
6607 return !ftello; 6650 return !ftello;
6608 ; return 0; } 6651 ; return 0; }
6609 EOF 6652 EOF
6610 if { (eval echo configure:6611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6653 if { (eval echo configure:6654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6611 rm -rf conftest* 6654 rm -rf conftest*
6612 ac_cv_sys_largefile_source=1 6655 ac_cv_sys_largefile_source=1
6613 else 6656 else
6614 echo "configure: failed program was:" >&5 6657 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5 6658 cat conftest.$ac_ext >&5
6625 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6668 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6626 EOF 6669 EOF
6627 6670
6628 fi 6671 fi
6629 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 6672 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
6630 echo "configure:6631: checking for _LARGE_FILES value needed for large files" >&5 6673 echo "configure:6674: checking for _LARGE_FILES value needed for large files" >&5
6631 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 6674 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6 6675 echo $ac_n "(cached) $ac_c" 1>&6
6633 else 6676 else
6634 ac_cv_sys_large_files=no 6677 ac_cv_sys_large_files=no
6635 cat > conftest.$ac_ext <<EOF 6678 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure" 6679 #line 6680 "configure"
6637 #include "confdefs.h" 6680 #include "confdefs.h"
6638 #include <sys/types.h> 6681 #include <sys/types.h>
6639 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6682 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6640 6683
6641 6684
6642 6685
6643 int main() { 6686 int main() {
6644 6687
6645 ; return 0; } 6688 ; return 0; }
6646 EOF 6689 EOF
6647 if { (eval echo configure:6648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6690 if { (eval echo configure:6691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6648 : 6691 :
6649 else 6692 else
6650 echo "configure: failed program was:" >&5 6693 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5 6694 cat conftest.$ac_ext >&5
6652 rm -rf conftest* 6695 rm -rf conftest*
6653 cat > conftest.$ac_ext <<EOF 6696 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure" 6697 #line 6698 "configure"
6655 #include "confdefs.h" 6698 #include "confdefs.h"
6656 #define _LARGE_FILES 1 6699 #define _LARGE_FILES 1
6657 #include <sys/types.h> 6700 #include <sys/types.h>
6658 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6701 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6659 6702
6661 6704
6662 int main() { 6705 int main() {
6663 6706
6664 ; return 0; } 6707 ; return 0; }
6665 EOF 6708 EOF
6666 if { (eval echo configure:6667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6709 if { (eval echo configure:6710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6667 rm -rf conftest* 6710 rm -rf conftest*
6668 ac_cv_sys_large_files=1 6711 ac_cv_sys_large_files=1
6669 else 6712 else
6670 echo "configure: failed program was:" >&5 6713 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5 6714 cat conftest.$ac_ext >&5
6681 #define _LARGE_FILES $ac_cv_sys_large_files 6724 #define _LARGE_FILES $ac_cv_sys_large_files
6682 EOF 6725 EOF
6683 6726
6684 fi 6727 fi
6685 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 6728 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
6686 echo "configure:6687: checking for _XOPEN_SOURCE value needed for large files" >&5 6729 echo "configure:6730: checking for _XOPEN_SOURCE value needed for large files" >&5
6687 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then 6730 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6 6731 echo $ac_n "(cached) $ac_c" 1>&6
6689 else 6732 else
6690 ac_cv_sys_xopen_source=no 6733 ac_cv_sys_xopen_source=no
6691 cat > conftest.$ac_ext <<EOF 6734 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure" 6735 #line 6736 "configure"
6693 #include "confdefs.h" 6736 #include "confdefs.h"
6694 #include <sys/types.h> 6737 #include <sys/types.h>
6695 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6738 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6696 6739
6697 #include <stdio.h> 6740 #include <stdio.h>
6698 6741
6699 int main() { 6742 int main() {
6700 return !ftello; 6743 return !ftello;
6701 ; return 0; } 6744 ; return 0; }
6702 EOF 6745 EOF
6703 if { (eval echo configure:6704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6746 if { (eval echo configure:6747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6704 : 6747 :
6705 else 6748 else
6706 echo "configure: failed program was:" >&5 6749 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5 6750 cat conftest.$ac_ext >&5
6708 rm -rf conftest* 6751 rm -rf conftest*
6709 cat > conftest.$ac_ext <<EOF 6752 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure" 6753 #line 6754 "configure"
6711 #include "confdefs.h" 6754 #include "confdefs.h"
6712 #define _XOPEN_SOURCE 500 6755 #define _XOPEN_SOURCE 500
6713 #include <sys/types.h> 6756 #include <sys/types.h>
6714 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6757 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6715 6758
6717 6760
6718 int main() { 6761 int main() {
6719 return !ftello; 6762 return !ftello;
6720 ; return 0; } 6763 ; return 0; }
6721 EOF 6764 EOF
6722 if { (eval echo configure:6723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6765 if { (eval echo configure:6766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6723 rm -rf conftest* 6766 rm -rf conftest*
6724 ac_cv_sys_xopen_source=500 6767 ac_cv_sys_xopen_source=500
6725 else 6768 else
6726 echo "configure: failed program was:" >&5 6769 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5 6770 cat conftest.$ac_ext >&5
6741 fi 6784 fi
6742 6785
6743 for ac_func in ftello 6786 for ac_func in ftello
6744 do 6787 do
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_func" >&5 6789 echo "configure:6790: checking for $ac_func" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6 6791 echo $ac_n "(cached) $ac_c" 1>&6
6749 else 6792 else
6750 cat > conftest.$ac_ext <<EOF 6793 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure" 6794 #line 6795 "configure"
6752 #include "confdefs.h" 6795 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes, 6796 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func(); below. */ 6797 which can conflict with char $ac_func(); below. */
6755 #include <assert.h> 6798 #include <assert.h>
6756 /* Override any gcc2 internal prototype to avoid an error. */ 6799 /* Override any gcc2 internal prototype to avoid an error. */
6769 $ac_func(); 6812 $ac_func();
6770 #endif 6813 #endif
6771 6814
6772 ; return 0; } 6815 ; return 0; }
6773 EOF 6816 EOF
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 rm -rf conftest* 6818 rm -rf conftest*
6776 eval "ac_cv_func_$ac_func=yes" 6819 eval "ac_cv_func_$ac_func=yes"
6777 else 6820 else
6778 echo "configure: failed program was:" >&5 6821 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5 6822 cat conftest.$ac_ext >&5
6799 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE 6842 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE
6800 # if we need it. 6843 # if we need it.
6801 for ac_func in grantpt 6844 for ac_func in grantpt
6802 do 6845 do
6803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6804 echo "configure:6805: checking for $ac_func" >&5 6847 echo "configure:6848: checking for $ac_func" >&5
6805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6 6849 echo $ac_n "(cached) $ac_c" 1>&6
6807 else 6850 else
6808 cat > conftest.$ac_ext <<EOF 6851 cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure" 6852 #line 6853 "configure"
6810 #include "confdefs.h" 6853 #include "confdefs.h"
6811 /* System header to define __stub macros and hopefully few prototypes, 6854 /* System header to define __stub macros and hopefully few prototypes,
6812 which can conflict with char $ac_func(); below. */ 6855 which can conflict with char $ac_func(); below. */
6813 #include <assert.h> 6856 #include <assert.h>
6814 /* Override any gcc2 internal prototype to avoid an error. */ 6857 /* Override any gcc2 internal prototype to avoid an error. */
6827 $ac_func(); 6870 $ac_func();
6828 #endif 6871 #endif
6829 6872
6830 ; return 0; } 6873 ; return 0; }
6831 EOF 6874 EOF
6832 if { (eval echo configure:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6833 rm -rf conftest* 6876 rm -rf conftest*
6834 eval "ac_cv_func_$ac_func=yes" 6877 eval "ac_cv_func_$ac_func=yes"
6835 else 6878 else
6836 echo "configure: failed program was:" >&5 6879 echo "configure: failed program was:" >&5
6837 cat conftest.$ac_ext >&5 6880 cat conftest.$ac_ext >&5
6856 6899
6857 # PTY-related GNU extensions. 6900 # PTY-related GNU extensions.
6858 for ac_func in getpt 6901 for ac_func in getpt
6859 do 6902 do
6860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6861 echo "configure:6862: checking for $ac_func" >&5 6904 echo "configure:6905: checking for $ac_func" >&5
6862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6 6906 echo $ac_n "(cached) $ac_c" 1>&6
6864 else 6907 else
6865 cat > conftest.$ac_ext <<EOF 6908 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure" 6909 #line 6910 "configure"
6867 #include "confdefs.h" 6910 #include "confdefs.h"
6868 /* System header to define __stub macros and hopefully few prototypes, 6911 /* System header to define __stub macros and hopefully few prototypes,
6869 which can conflict with char $ac_func(); below. */ 6912 which can conflict with char $ac_func(); below. */
6870 #include <assert.h> 6913 #include <assert.h>
6871 /* Override any gcc2 internal prototype to avoid an error. */ 6914 /* Override any gcc2 internal prototype to avoid an error. */
6884 $ac_func(); 6927 $ac_func();
6885 #endif 6928 #endif
6886 6929
6887 ; return 0; } 6930 ; return 0; }
6888 EOF 6931 EOF
6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6890 rm -rf conftest* 6933 rm -rf conftest*
6891 eval "ac_cv_func_$ac_func=yes" 6934 eval "ac_cv_func_$ac_func=yes"
6892 else 6935 else
6893 echo "configure: failed program was:" >&5 6936 echo "configure: failed program was:" >&5
6894 cat conftest.$ac_ext >&5 6937 cat conftest.$ac_ext >&5
6914 # Check this now, so that we will NOT find the above functions in ncurses. 6957 # Check this now, so that we will NOT find the above functions in ncurses.
6915 # That is because we have not set up to link ncurses in lib-src. 6958 # That is because we have not set up to link ncurses in lib-src.
6916 # It's better to believe a function is not available 6959 # It's better to believe a function is not available
6917 # than to expect to find it in ncurses. 6960 # than to expect to find it in ncurses.
6918 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 6961 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
6919 echo "configure:6920: checking for tparm in -lncurses" >&5 6962 echo "configure:6963: checking for tparm in -lncurses" >&5
6920 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 6963 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
6921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6 6965 echo $ac_n "(cached) $ac_c" 1>&6
6923 else 6966 else
6924 ac_save_LIBS="$LIBS" 6967 ac_save_LIBS="$LIBS"
6925 LIBS="-lncurses $LIBS" 6968 LIBS="-lncurses $LIBS"
6926 cat > conftest.$ac_ext <<EOF 6969 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure" 6970 #line 6971 "configure"
6928 #include "confdefs.h" 6971 #include "confdefs.h"
6929 /* Override any gcc2 internal prototype to avoid an error. */ 6972 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2 6973 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */ 6974 builtin and then its argument prototype would still apply. */
6932 char tparm(); 6975 char tparm();
6933 6976
6934 int main() { 6977 int main() {
6935 tparm() 6978 tparm()
6936 ; return 0; } 6979 ; return 0; }
6937 EOF 6980 EOF
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 rm -rf conftest* 6982 rm -rf conftest*
6940 eval "ac_cv_lib_$ac_lib_var=yes" 6983 eval "ac_cv_lib_$ac_lib_var=yes"
6941 else 6984 else
6942 echo "configure: failed program was:" >&5 6985 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5 6986 cat conftest.$ac_ext >&5
6964 7007
6965 7008
6966 # These tell us which Kerberos-related libraries to use. 7009 # These tell us which Kerberos-related libraries to use.
6967 if test "${with_kerberos+set}" = set; then 7010 if test "${with_kerberos+set}" = set; then
6968 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 7011 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
6969 echo "configure:6970: checking for com_err in -lcom_err" >&5 7012 echo "configure:7013: checking for com_err in -lcom_err" >&5
6970 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 7013 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
6971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6 7015 echo $ac_n "(cached) $ac_c" 1>&6
6973 else 7016 else
6974 ac_save_LIBS="$LIBS" 7017 ac_save_LIBS="$LIBS"
6975 LIBS="-lcom_err $LIBS" 7018 LIBS="-lcom_err $LIBS"
6976 cat > conftest.$ac_ext <<EOF 7019 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure" 7020 #line 7021 "configure"
6978 #include "confdefs.h" 7021 #include "confdefs.h"
6979 /* Override any gcc2 internal prototype to avoid an error. */ 7022 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2 7023 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */ 7024 builtin and then its argument prototype would still apply. */
6982 char com_err(); 7025 char com_err();
6983 7026
6984 int main() { 7027 int main() {
6985 com_err() 7028 com_err()
6986 ; return 0; } 7029 ; return 0; }
6987 EOF 7030 EOF
6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 rm -rf conftest* 7032 rm -rf conftest*
6990 eval "ac_cv_lib_$ac_lib_var=yes" 7033 eval "ac_cv_lib_$ac_lib_var=yes"
6991 else 7034 else
6992 echo "configure: failed program was:" >&5 7035 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5 7036 cat conftest.$ac_ext >&5
7011 else 7054 else
7012 echo "$ac_t""no" 1>&6 7055 echo "$ac_t""no" 1>&6
7013 fi 7056 fi
7014 7057
7015 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 7058 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7016 echo "configure:7017: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 7059 echo "configure:7060: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7017 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7060 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7019 echo $ac_n "(cached) $ac_c" 1>&6 7062 echo $ac_n "(cached) $ac_c" 1>&6
7020 else 7063 else
7021 ac_save_LIBS="$LIBS" 7064 ac_save_LIBS="$LIBS"
7022 LIBS="-lk5crypto $LIBS" 7065 LIBS="-lk5crypto $LIBS"
7023 cat > conftest.$ac_ext <<EOF 7066 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure" 7067 #line 7068 "configure"
7025 #include "confdefs.h" 7068 #include "confdefs.h"
7026 /* Override any gcc2 internal prototype to avoid an error. */ 7069 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2 7070 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */ 7071 builtin and then its argument prototype would still apply. */
7029 char mit_des_cbc_encrypt(); 7072 char mit_des_cbc_encrypt();
7030 7073
7031 int main() { 7074 int main() {
7032 mit_des_cbc_encrypt() 7075 mit_des_cbc_encrypt()
7033 ; return 0; } 7076 ; return 0; }
7034 EOF 7077 EOF
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7078 if { (eval echo configure:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7036 rm -rf conftest* 7079 rm -rf conftest*
7037 eval "ac_cv_lib_$ac_lib_var=yes" 7080 eval "ac_cv_lib_$ac_lib_var=yes"
7038 else 7081 else
7039 echo "configure: failed program was:" >&5 7082 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5 7083 cat conftest.$ac_ext >&5
7058 else 7101 else
7059 echo "$ac_t""no" 1>&6 7102 echo "$ac_t""no" 1>&6
7060 fi 7103 fi
7061 7104
7062 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7105 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7063 echo "configure:7064: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7106 echo "configure:7107: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7064 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7107 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7066 echo $ac_n "(cached) $ac_c" 1>&6 7109 echo $ac_n "(cached) $ac_c" 1>&6
7067 else 7110 else
7068 ac_save_LIBS="$LIBS" 7111 ac_save_LIBS="$LIBS"
7069 LIBS="-lcrypto $LIBS" 7112 LIBS="-lcrypto $LIBS"
7070 cat > conftest.$ac_ext <<EOF 7113 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure" 7114 #line 7115 "configure"
7072 #include "confdefs.h" 7115 #include "confdefs.h"
7073 /* Override any gcc2 internal prototype to avoid an error. */ 7116 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2 7117 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */ 7118 builtin and then its argument prototype would still apply. */
7076 char mit_des_cbc_encrypt(); 7119 char mit_des_cbc_encrypt();
7077 7120
7078 int main() { 7121 int main() {
7079 mit_des_cbc_encrypt() 7122 mit_des_cbc_encrypt()
7080 ; return 0; } 7123 ; return 0; }
7081 EOF 7124 EOF
7082 if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7083 rm -rf conftest* 7126 rm -rf conftest*
7084 eval "ac_cv_lib_$ac_lib_var=yes" 7127 eval "ac_cv_lib_$ac_lib_var=yes"
7085 else 7128 else
7086 echo "configure: failed program was:" >&5 7129 echo "configure: failed program was:" >&5
7087 cat conftest.$ac_ext >&5 7130 cat conftest.$ac_ext >&5
7105 else 7148 else
7106 echo "$ac_t""no" 1>&6 7149 echo "$ac_t""no" 1>&6
7107 fi 7150 fi
7108 7151
7109 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7152 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7110 echo "configure:7111: checking for krb5_init_context in -lkrb5" >&5 7153 echo "configure:7154: checking for krb5_init_context in -lkrb5" >&5
7111 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7154 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6 7156 echo $ac_n "(cached) $ac_c" 1>&6
7114 else 7157 else
7115 ac_save_LIBS="$LIBS" 7158 ac_save_LIBS="$LIBS"
7116 LIBS="-lkrb5 $LIBS" 7159 LIBS="-lkrb5 $LIBS"
7117 cat > conftest.$ac_ext <<EOF 7160 cat > conftest.$ac_ext <<EOF
7118 #line 7119 "configure" 7161 #line 7162 "configure"
7119 #include "confdefs.h" 7162 #include "confdefs.h"
7120 /* Override any gcc2 internal prototype to avoid an error. */ 7163 /* Override any gcc2 internal prototype to avoid an error. */
7121 /* We use char because int might match the return type of a gcc2 7164 /* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */ 7165 builtin and then its argument prototype would still apply. */
7123 char krb5_init_context(); 7166 char krb5_init_context();
7124 7167
7125 int main() { 7168 int main() {
7126 krb5_init_context() 7169 krb5_init_context()
7127 ; return 0; } 7170 ; return 0; }
7128 EOF 7171 EOF
7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7130 rm -rf conftest* 7173 rm -rf conftest*
7131 eval "ac_cv_lib_$ac_lib_var=yes" 7174 eval "ac_cv_lib_$ac_lib_var=yes"
7132 else 7175 else
7133 echo "configure: failed program was:" >&5 7176 echo "configure: failed program was:" >&5
7134 cat conftest.$ac_ext >&5 7177 cat conftest.$ac_ext >&5
7153 echo "$ac_t""no" 1>&6 7196 echo "$ac_t""no" 1>&6
7154 fi 7197 fi
7155 7198
7156 if test "${with_kerberos5+set}" != set; then 7199 if test "${with_kerberos5+set}" != set; then
7157 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7200 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7158 echo "configure:7159: checking for des_cbc_encrypt in -ldes425" >&5 7201 echo "configure:7202: checking for des_cbc_encrypt in -ldes425" >&5
7159 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7202 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6 7204 echo $ac_n "(cached) $ac_c" 1>&6
7162 else 7205 else
7163 ac_save_LIBS="$LIBS" 7206 ac_save_LIBS="$LIBS"
7164 LIBS="-ldes425 $LIBS" 7207 LIBS="-ldes425 $LIBS"
7165 cat > conftest.$ac_ext <<EOF 7208 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure" 7209 #line 7210 "configure"
7167 #include "confdefs.h" 7210 #include "confdefs.h"
7168 /* Override any gcc2 internal prototype to avoid an error. */ 7211 /* Override any gcc2 internal prototype to avoid an error. */
7169 /* We use char because int might match the return type of a gcc2 7212 /* We use char because int might match the return type of a gcc2
7170 builtin and then its argument prototype would still apply. */ 7213 builtin and then its argument prototype would still apply. */
7171 char des_cbc_encrypt(); 7214 char des_cbc_encrypt();
7172 7215
7173 int main() { 7216 int main() {
7174 des_cbc_encrypt() 7217 des_cbc_encrypt()
7175 ; return 0; } 7218 ; return 0; }
7176 EOF 7219 EOF
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7178 rm -rf conftest* 7221 rm -rf conftest*
7179 eval "ac_cv_lib_$ac_lib_var=yes" 7222 eval "ac_cv_lib_$ac_lib_var=yes"
7180 else 7223 else
7181 echo "configure: failed program was:" >&5 7224 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5 7225 cat conftest.$ac_ext >&5
7198 LIBS="-ldes425 $LIBS" 7241 LIBS="-ldes425 $LIBS"
7199 7242
7200 else 7243 else
7201 echo "$ac_t""no" 1>&6 7244 echo "$ac_t""no" 1>&6
7202 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7245 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7203 echo "configure:7204: checking for des_cbc_encrypt in -ldes" >&5 7246 echo "configure:7247: checking for des_cbc_encrypt in -ldes" >&5
7204 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7247 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6 7249 echo $ac_n "(cached) $ac_c" 1>&6
7207 else 7250 else
7208 ac_save_LIBS="$LIBS" 7251 ac_save_LIBS="$LIBS"
7209 LIBS="-ldes $LIBS" 7252 LIBS="-ldes $LIBS"
7210 cat > conftest.$ac_ext <<EOF 7253 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure" 7254 #line 7255 "configure"
7212 #include "confdefs.h" 7255 #include "confdefs.h"
7213 /* Override any gcc2 internal prototype to avoid an error. */ 7256 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2 7257 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */ 7258 builtin and then its argument prototype would still apply. */
7216 char des_cbc_encrypt(); 7259 char des_cbc_encrypt();
7217 7260
7218 int main() { 7261 int main() {
7219 des_cbc_encrypt() 7262 des_cbc_encrypt()
7220 ; return 0; } 7263 ; return 0; }
7221 EOF 7264 EOF
7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7223 rm -rf conftest* 7266 rm -rf conftest*
7224 eval "ac_cv_lib_$ac_lib_var=yes" 7267 eval "ac_cv_lib_$ac_lib_var=yes"
7225 else 7268 else
7226 echo "configure: failed program was:" >&5 7269 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5 7270 cat conftest.$ac_ext >&5
7247 fi 7290 fi
7248 7291
7249 fi 7292 fi
7250 7293
7251 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7294 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7252 echo "configure:7253: checking for krb_get_cred in -lkrb4" >&5 7295 echo "configure:7296: checking for krb_get_cred in -lkrb4" >&5
7253 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7296 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6 7298 echo $ac_n "(cached) $ac_c" 1>&6
7256 else 7299 else
7257 ac_save_LIBS="$LIBS" 7300 ac_save_LIBS="$LIBS"
7258 LIBS="-lkrb4 $LIBS" 7301 LIBS="-lkrb4 $LIBS"
7259 cat > conftest.$ac_ext <<EOF 7302 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure" 7303 #line 7304 "configure"
7261 #include "confdefs.h" 7304 #include "confdefs.h"
7262 /* Override any gcc2 internal prototype to avoid an error. */ 7305 /* Override any gcc2 internal prototype to avoid an error. */
7263 /* We use char because int might match the return type of a gcc2 7306 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */ 7307 builtin and then its argument prototype would still apply. */
7265 char krb_get_cred(); 7308 char krb_get_cred();
7266 7309
7267 int main() { 7310 int main() {
7268 krb_get_cred() 7311 krb_get_cred()
7269 ; return 0; } 7312 ; return 0; }
7270 EOF 7313 EOF
7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7272 rm -rf conftest* 7315 rm -rf conftest*
7273 eval "ac_cv_lib_$ac_lib_var=yes" 7316 eval "ac_cv_lib_$ac_lib_var=yes"
7274 else 7317 else
7275 echo "configure: failed program was:" >&5 7318 echo "configure: failed program was:" >&5
7276 cat conftest.$ac_ext >&5 7319 cat conftest.$ac_ext >&5
7292 LIBS="-lkrb4 $LIBS" 7335 LIBS="-lkrb4 $LIBS"
7293 7336
7294 else 7337 else
7295 echo "$ac_t""no" 1>&6 7338 echo "$ac_t""no" 1>&6
7296 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7339 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7297 echo "configure:7298: checking for krb_get_cred in -lkrb" >&5 7340 echo "configure:7341: checking for krb_get_cred in -lkrb" >&5
7298 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7341 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6 7343 echo $ac_n "(cached) $ac_c" 1>&6
7301 else 7344 else
7302 ac_save_LIBS="$LIBS" 7345 ac_save_LIBS="$LIBS"
7303 LIBS="-lkrb $LIBS" 7346 LIBS="-lkrb $LIBS"
7304 cat > conftest.$ac_ext <<EOF 7347 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure" 7348 #line 7349 "configure"
7306 #include "confdefs.h" 7349 #include "confdefs.h"
7307 /* Override any gcc2 internal prototype to avoid an error. */ 7350 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2 7351 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */ 7352 builtin and then its argument prototype would still apply. */
7310 char krb_get_cred(); 7353 char krb_get_cred();
7311 7354
7312 int main() { 7355 int main() {
7313 krb_get_cred() 7356 krb_get_cred()
7314 ; return 0; } 7357 ; return 0; }
7315 EOF 7358 EOF
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7317 rm -rf conftest* 7360 rm -rf conftest*
7318 eval "ac_cv_lib_$ac_lib_var=yes" 7361 eval "ac_cv_lib_$ac_lib_var=yes"
7319 else 7362 else
7320 echo "configure: failed program was:" >&5 7363 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5 7364 cat conftest.$ac_ext >&5
7347 if test "${with_kerberos5+set}" = set; then 7390 if test "${with_kerberos5+set}" = set; then
7348 for ac_hdr in krb5.h 7391 for ac_hdr in krb5.h
7349 do 7392 do
7350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7352 echo "configure:7353: checking for $ac_hdr" >&5 7395 echo "configure:7396: checking for $ac_hdr" >&5
7353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6 7397 echo $ac_n "(cached) $ac_c" 1>&6
7355 else 7398 else
7356 cat > conftest.$ac_ext <<EOF 7399 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure" 7400 #line 7401 "configure"
7358 #include "confdefs.h" 7401 #include "confdefs.h"
7359 #include <$ac_hdr> 7402 #include <$ac_hdr>
7360 EOF 7403 EOF
7361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7362 { (eval echo configure:7363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7405 { (eval echo configure:7406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7364 if test -z "$ac_err"; then 7407 if test -z "$ac_err"; then
7365 rm -rf conftest* 7408 rm -rf conftest*
7366 eval "ac_cv_header_$ac_safe=yes" 7409 eval "ac_cv_header_$ac_safe=yes"
7367 else 7410 else
7388 else 7431 else
7389 for ac_hdr in des.h 7432 for ac_hdr in des.h
7390 do 7433 do
7391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_hdr" >&5 7436 echo "configure:7437: checking for $ac_hdr" >&5
7394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6 7438 echo $ac_n "(cached) $ac_c" 1>&6
7396 else 7439 else
7397 cat > conftest.$ac_ext <<EOF 7440 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure" 7441 #line 7442 "configure"
7399 #include "confdefs.h" 7442 #include "confdefs.h"
7400 #include <$ac_hdr> 7443 #include <$ac_hdr>
7401 EOF 7444 EOF
7402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7403 { (eval echo configure:7404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7446 { (eval echo configure:7447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7405 if test -z "$ac_err"; then 7448 if test -z "$ac_err"; then
7406 rm -rf conftest* 7449 rm -rf conftest*
7407 eval "ac_cv_header_$ac_safe=yes" 7450 eval "ac_cv_header_$ac_safe=yes"
7408 else 7451 else
7425 echo "$ac_t""no" 1>&6 7468 echo "$ac_t""no" 1>&6
7426 for ac_hdr in kerberosIV/des.h 7469 for ac_hdr in kerberosIV/des.h
7427 do 7470 do
7428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7430 echo "configure:7431: checking for $ac_hdr" >&5 7473 echo "configure:7474: checking for $ac_hdr" >&5
7431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7432 echo $ac_n "(cached) $ac_c" 1>&6 7475 echo $ac_n "(cached) $ac_c" 1>&6
7433 else 7476 else
7434 cat > conftest.$ac_ext <<EOF 7477 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure" 7478 #line 7479 "configure"
7436 #include "confdefs.h" 7479 #include "confdefs.h"
7437 #include <$ac_hdr> 7480 #include <$ac_hdr>
7438 EOF 7481 EOF
7439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7440 { (eval echo configure:7441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7483 { (eval echo configure:7484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7442 if test -z "$ac_err"; then 7485 if test -z "$ac_err"; then
7443 rm -rf conftest* 7486 rm -rf conftest*
7444 eval "ac_cv_header_$ac_safe=yes" 7487 eval "ac_cv_header_$ac_safe=yes"
7445 else 7488 else
7462 echo "$ac_t""no" 1>&6 7505 echo "$ac_t""no" 1>&6
7463 for ac_hdr in kerberos/des.h 7506 for ac_hdr in kerberos/des.h
7464 do 7507 do
7465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_hdr" >&5 7510 echo "configure:7511: checking for $ac_hdr" >&5
7468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6 7512 echo $ac_n "(cached) $ac_c" 1>&6
7470 else 7513 else
7471 cat > conftest.$ac_ext <<EOF 7514 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure" 7515 #line 7516 "configure"
7473 #include "confdefs.h" 7516 #include "confdefs.h"
7474 #include <$ac_hdr> 7517 #include <$ac_hdr>
7475 EOF 7518 EOF
7476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7477 { (eval echo configure:7478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7520 { (eval echo configure:7521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7479 if test -z "$ac_err"; then 7522 if test -z "$ac_err"; then
7480 rm -rf conftest* 7523 rm -rf conftest*
7481 eval "ac_cv_header_$ac_safe=yes" 7524 eval "ac_cv_header_$ac_safe=yes"
7482 else 7525 else
7508 7551
7509 for ac_hdr in krb.h 7552 for ac_hdr in krb.h
7510 do 7553 do
7511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7513 echo "configure:7514: checking for $ac_hdr" >&5 7556 echo "configure:7557: checking for $ac_hdr" >&5
7514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6 7558 echo $ac_n "(cached) $ac_c" 1>&6
7516 else 7559 else
7517 cat > conftest.$ac_ext <<EOF 7560 cat > conftest.$ac_ext <<EOF
7518 #line 7519 "configure" 7561 #line 7562 "configure"
7519 #include "confdefs.h" 7562 #include "confdefs.h"
7520 #include <$ac_hdr> 7563 #include <$ac_hdr>
7521 EOF 7564 EOF
7522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7523 { (eval echo configure:7524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7566 { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7525 if test -z "$ac_err"; then 7568 if test -z "$ac_err"; then
7526 rm -rf conftest* 7569 rm -rf conftest*
7527 eval "ac_cv_header_$ac_safe=yes" 7570 eval "ac_cv_header_$ac_safe=yes"
7528 else 7571 else
7545 echo "$ac_t""no" 1>&6 7588 echo "$ac_t""no" 1>&6
7546 for ac_hdr in kerberosIV/krb.h 7589 for ac_hdr in kerberosIV/krb.h
7547 do 7590 do
7548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7550 echo "configure:7551: checking for $ac_hdr" >&5 7593 echo "configure:7594: checking for $ac_hdr" >&5
7551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7552 echo $ac_n "(cached) $ac_c" 1>&6 7595 echo $ac_n "(cached) $ac_c" 1>&6
7553 else 7596 else
7554 cat > conftest.$ac_ext <<EOF 7597 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure" 7598 #line 7599 "configure"
7556 #include "confdefs.h" 7599 #include "confdefs.h"
7557 #include <$ac_hdr> 7600 #include <$ac_hdr>
7558 EOF 7601 EOF
7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7603 { (eval echo configure:7604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7562 if test -z "$ac_err"; then 7605 if test -z "$ac_err"; then
7563 rm -rf conftest* 7606 rm -rf conftest*
7564 eval "ac_cv_header_$ac_safe=yes" 7607 eval "ac_cv_header_$ac_safe=yes"
7565 else 7608 else
7582 echo "$ac_t""no" 1>&6 7625 echo "$ac_t""no" 1>&6
7583 for ac_hdr in kerberos/krb.h 7626 for ac_hdr in kerberos/krb.h
7584 do 7627 do
7585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7587 echo "configure:7588: checking for $ac_hdr" >&5 7630 echo "configure:7631: checking for $ac_hdr" >&5
7588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7589 echo $ac_n "(cached) $ac_c" 1>&6 7632 echo $ac_n "(cached) $ac_c" 1>&6
7590 else 7633 else
7591 cat > conftest.$ac_ext <<EOF 7634 cat > conftest.$ac_ext <<EOF
7592 #line 7593 "configure" 7635 #line 7636 "configure"
7593 #include "confdefs.h" 7636 #include "confdefs.h"
7594 #include <$ac_hdr> 7637 #include <$ac_hdr>
7595 EOF 7638 EOF
7596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7597 { (eval echo configure:7598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7599 if test -z "$ac_err"; then 7642 if test -z "$ac_err"; then
7600 rm -rf conftest* 7643 rm -rf conftest*
7601 eval "ac_cv_header_$ac_safe=yes" 7644 eval "ac_cv_header_$ac_safe=yes"
7602 else 7645 else
7629 fi 7672 fi
7630 for ac_hdr in com_err.h 7673 for ac_hdr in com_err.h
7631 do 7674 do
7632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7634 echo "configure:7635: checking for $ac_hdr" >&5 7677 echo "configure:7678: checking for $ac_hdr" >&5
7635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6 7679 echo $ac_n "(cached) $ac_c" 1>&6
7637 else 7680 else
7638 cat > conftest.$ac_ext <<EOF 7681 cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure" 7682 #line 7683 "configure"
7640 #include "confdefs.h" 7683 #include "confdefs.h"
7641 #include <$ac_hdr> 7684 #include <$ac_hdr>
7642 EOF 7685 EOF
7643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7644 { (eval echo configure:7645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7687 { (eval echo configure:7688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7646 if test -z "$ac_err"; then 7689 if test -z "$ac_err"; then
7647 rm -rf conftest* 7690 rm -rf conftest*
7648 eval "ac_cv_header_$ac_safe=yes" 7691 eval "ac_cv_header_$ac_safe=yes"
7649 else 7692 else
7670 fi 7713 fi
7671 7714
7672 # Solaris requires -lintl if you want strerror (which calls dgettext) 7715 # Solaris requires -lintl if you want strerror (which calls dgettext)
7673 # to return localized messages. 7716 # to return localized messages.
7674 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 7717 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
7675 echo "configure:7676: checking for dgettext in -lintl" >&5 7718 echo "configure:7719: checking for dgettext in -lintl" >&5
7676 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 7719 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
7677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6 7721 echo $ac_n "(cached) $ac_c" 1>&6
7679 else 7722 else
7680 ac_save_LIBS="$LIBS" 7723 ac_save_LIBS="$LIBS"
7681 LIBS="-lintl $LIBS" 7724 LIBS="-lintl $LIBS"
7682 cat > conftest.$ac_ext <<EOF 7725 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure" 7726 #line 7727 "configure"
7684 #include "confdefs.h" 7727 #include "confdefs.h"
7685 /* Override any gcc2 internal prototype to avoid an error. */ 7728 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2 7729 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */ 7730 builtin and then its argument prototype would still apply. */
7688 char dgettext(); 7731 char dgettext();
7689 7732
7690 int main() { 7733 int main() {
7691 dgettext() 7734 dgettext()
7692 ; return 0; } 7735 ; return 0; }
7693 EOF 7736 EOF
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 rm -rf conftest* 7738 rm -rf conftest*
7696 eval "ac_cv_lib_$ac_lib_var=yes" 7739 eval "ac_cv_lib_$ac_lib_var=yes"
7697 else 7740 else
7698 echo "configure: failed program was:" >&5 7741 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5 7742 cat conftest.$ac_ext >&5
7718 echo "$ac_t""no" 1>&6 7761 echo "$ac_t""no" 1>&6
7719 fi 7762 fi
7720 7763
7721 7764
7722 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7765 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7723 echo "configure:7724: checking whether localtime caches TZ" >&5 7766 echo "configure:7767: checking whether localtime caches TZ" >&5
7724 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 7767 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6 7768 echo $ac_n "(cached) $ac_c" 1>&6
7726 else 7769 else
7727 if test x$ac_cv_func_tzset = xyes; then 7770 if test x$ac_cv_func_tzset = xyes; then
7728 if test "$cross_compiling" = yes; then 7771 if test "$cross_compiling" = yes; then
7729 # If we have tzset, assume the worst when cross-compiling. 7772 # If we have tzset, assume the worst when cross-compiling.
7730 emacs_cv_localtime_cache=yes 7773 emacs_cv_localtime_cache=yes
7731 else 7774 else
7732 cat > conftest.$ac_ext <<EOF 7775 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure" 7776 #line 7777 "configure"
7734 #include "confdefs.h" 7777 #include "confdefs.h"
7735 #include <time.h> 7778 #include <time.h>
7736 extern char **environ; 7779 extern char **environ;
7737 unset_TZ () 7780 unset_TZ ()
7738 { 7781 {
7760 if (localtime (&now)->tm_hour != hour_unset) 7803 if (localtime (&now)->tm_hour != hour_unset)
7761 exit (1); 7804 exit (1);
7762 exit (0); 7805 exit (0);
7763 } 7806 }
7764 EOF 7807 EOF
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7766 then 7809 then
7767 emacs_cv_localtime_cache=no 7810 emacs_cv_localtime_cache=no
7768 else 7811 else
7769 echo "configure: failed program was:" >&5 7812 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5 7813 cat conftest.$ac_ext >&5
7790 7833
7791 if test "x$HAVE_TIMEVAL" = xyes; then 7834 if test "x$HAVE_TIMEVAL" = xyes; then
7792 for ac_func in gettimeofday 7835 for ac_func in gettimeofday
7793 do 7836 do
7794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7795 echo "configure:7796: checking for $ac_func" >&5 7838 echo "configure:7839: checking for $ac_func" >&5
7796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6 7840 echo $ac_n "(cached) $ac_c" 1>&6
7798 else 7841 else
7799 cat > conftest.$ac_ext <<EOF 7842 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure" 7843 #line 7844 "configure"
7801 #include "confdefs.h" 7844 #include "confdefs.h"
7802 /* System header to define __stub macros and hopefully few prototypes, 7845 /* System header to define __stub macros and hopefully few prototypes,
7803 which can conflict with char $ac_func(); below. */ 7846 which can conflict with char $ac_func(); below. */
7804 #include <assert.h> 7847 #include <assert.h>
7805 /* Override any gcc2 internal prototype to avoid an error. */ 7848 /* Override any gcc2 internal prototype to avoid an error. */
7818 $ac_func(); 7861 $ac_func();
7819 #endif 7862 #endif
7820 7863
7821 ; return 0; } 7864 ; return 0; }
7822 EOF 7865 EOF
7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7824 rm -rf conftest* 7867 rm -rf conftest*
7825 eval "ac_cv_func_$ac_func=yes" 7868 eval "ac_cv_func_$ac_func=yes"
7826 else 7869 else
7827 echo "configure: failed program was:" >&5 7870 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5 7871 cat conftest.$ac_ext >&5
7843 echo "$ac_t""no" 1>&6 7886 echo "$ac_t""no" 1>&6
7844 fi 7887 fi
7845 done 7888 done
7846 7889
7847 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 7890 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
7848 echo "configure:7849: checking whether gettimeofday can accept two arguments" >&5 7891 echo "configure:7892: checking whether gettimeofday can accept two arguments" >&5
7849 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 7892 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6 7893 echo $ac_n "(cached) $ac_c" 1>&6
7851 else 7894 else
7852 cat > conftest.$ac_ext <<EOF 7895 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure" 7896 #line 7897 "configure"
7854 #include "confdefs.h" 7897 #include "confdefs.h"
7855 7898
7856 #ifdef TIME_WITH_SYS_TIME 7899 #ifdef TIME_WITH_SYS_TIME
7857 #include <sys/time.h> 7900 #include <sys/time.h>
7858 #include <time.h> 7901 #include <time.h>
7866 int main() { 7909 int main() {
7867 struct timeval time; 7910 struct timeval time;
7868 gettimeofday (&time, 0); 7911 gettimeofday (&time, 0);
7869 ; return 0; } 7912 ; return 0; }
7870 EOF 7913 EOF
7871 if { (eval echo configure:7872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7914 if { (eval echo configure:7915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7872 rm -rf conftest* 7915 rm -rf conftest*
7873 emacs_cv_gettimeofday_two_arguments=yes 7916 emacs_cv_gettimeofday_two_arguments=yes
7874 else 7917 else
7875 echo "configure: failed program was:" >&5 7918 echo "configure: failed program was:" >&5
7876 cat conftest.$ac_ext >&5 7919 cat conftest.$ac_ext >&5
7889 fi 7932 fi
7890 fi 7933 fi
7891 7934
7892 if test "$ac_cv_func_gettimeofday" = yes; then 7935 if test "$ac_cv_func_gettimeofday" = yes; then
7893 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 7936 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
7894 echo "configure:7895: checking for struct timezone" >&5 7937 echo "configure:7938: checking for struct timezone" >&5
7895 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 7938 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6 7939 echo $ac_n "(cached) $ac_c" 1>&6
7897 else 7940 else
7898 cat > conftest.$ac_ext <<EOF 7941 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure" 7942 #line 7943 "configure"
7900 #include "confdefs.h" 7943 #include "confdefs.h"
7901 #include <sys/time.h> 7944 #include <sys/time.h>
7902 int main() { 7945 int main() {
7903 struct timezone tz; 7946 struct timezone tz;
7904 ; return 0; } 7947 ; return 0; }
7905 EOF 7948 EOF
7906 if { (eval echo configure:7907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7949 if { (eval echo configure:7950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907 rm -rf conftest* 7950 rm -rf conftest*
7908 if test "$cross_compiling" = yes; then 7951 if test "$cross_compiling" = yes; then
7909 emacs_cv_struct_timezone=yes 7952 emacs_cv_struct_timezone=yes
7910 else 7953 else
7911 cat > conftest.$ac_ext <<EOF 7954 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure" 7955 #line 7956 "configure"
7913 #include "confdefs.h" 7956 #include "confdefs.h"
7914 7957
7915 #ifdef TIME_WITH_SYS_TIME 7958 #ifdef TIME_WITH_SYS_TIME
7916 #include <sys/time.h> 7959 #include <sys/time.h>
7917 #include <time.h> 7960 #include <time.h>
7926 struct timeval time; 7969 struct timeval time;
7927 struct timezone dummy; 7970 struct timezone dummy;
7928 exit (gettimeofday (&time, &dummy)); 7971 exit (gettimeofday (&time, &dummy));
7929 } 7972 }
7930 EOF 7973 EOF
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7932 then 7975 then
7933 emacs_cv_struct_timezone=yes 7976 emacs_cv_struct_timezone=yes
7934 else 7977 else
7935 echo "configure: failed program was:" >&5 7978 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5 7979 cat conftest.$ac_ext >&5
7952 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 7995 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
7953 fi 7996 fi
7954 7997
7955 ok_so_far=yes 7998 ok_so_far=yes
7956 echo $ac_n "checking for socket""... $ac_c" 1>&6 7999 echo $ac_n "checking for socket""... $ac_c" 1>&6
7957 echo "configure:7958: checking for socket" >&5 8000 echo "configure:8001: checking for socket" >&5
7958 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 8001 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6 8002 echo $ac_n "(cached) $ac_c" 1>&6
7960 else 8003 else
7961 cat > conftest.$ac_ext <<EOF 8004 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure" 8005 #line 8006 "configure"
7963 #include "confdefs.h" 8006 #include "confdefs.h"
7964 /* System header to define __stub macros and hopefully few prototypes, 8007 /* System header to define __stub macros and hopefully few prototypes,
7965 which can conflict with char socket(); below. */ 8008 which can conflict with char socket(); below. */
7966 #include <assert.h> 8009 #include <assert.h>
7967 /* Override any gcc2 internal prototype to avoid an error. */ 8010 /* Override any gcc2 internal prototype to avoid an error. */
7980 socket(); 8023 socket();
7981 #endif 8024 #endif
7982 8025
7983 ; return 0; } 8026 ; return 0; }
7984 EOF 8027 EOF
7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7986 rm -rf conftest* 8029 rm -rf conftest*
7987 eval "ac_cv_func_socket=yes" 8030 eval "ac_cv_func_socket=yes"
7988 else 8031 else
7989 echo "configure: failed program was:" >&5 8032 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5 8033 cat conftest.$ac_ext >&5
8003 fi 8046 fi
8004 8047
8005 if test $ok_so_far = yes; then 8048 if test $ok_so_far = yes; then
8006 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8049 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8007 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8050 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8008 echo "configure:8009: checking for netinet/in.h" >&5 8051 echo "configure:8052: checking for netinet/in.h" >&5
8009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6 8053 echo $ac_n "(cached) $ac_c" 1>&6
8011 else 8054 else
8012 cat > conftest.$ac_ext <<EOF 8055 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure" 8056 #line 8057 "configure"
8014 #include "confdefs.h" 8057 #include "confdefs.h"
8015 #include <netinet/in.h> 8058 #include <netinet/in.h>
8016 EOF 8059 EOF
8017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8018 { (eval echo configure:8019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8061 { (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8020 if test -z "$ac_err"; then 8063 if test -z "$ac_err"; then
8021 rm -rf conftest* 8064 rm -rf conftest*
8022 eval "ac_cv_header_$ac_safe=yes" 8065 eval "ac_cv_header_$ac_safe=yes"
8023 else 8066 else
8039 8082
8040 fi 8083 fi
8041 if test $ok_so_far = yes; then 8084 if test $ok_so_far = yes; then
8042 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8085 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8043 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8086 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8044 echo "configure:8045: checking for arpa/inet.h" >&5 8087 echo "configure:8088: checking for arpa/inet.h" >&5
8045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6 8089 echo $ac_n "(cached) $ac_c" 1>&6
8047 else 8090 else
8048 cat > conftest.$ac_ext <<EOF 8091 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure" 8092 #line 8093 "configure"
8050 #include "confdefs.h" 8093 #include "confdefs.h"
8051 #include <arpa/inet.h> 8094 #include <arpa/inet.h>
8052 EOF 8095 EOF
8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8056 if test -z "$ac_err"; then 8099 if test -z "$ac_err"; then
8057 rm -rf conftest* 8100 rm -rf conftest*
8058 eval "ac_cv_header_$ac_safe=yes" 8101 eval "ac_cv_header_$ac_safe=yes"
8059 else 8102 else
8087 EOF 8130 EOF
8088 8131
8089 fi 8132 fi
8090 8133
8091 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8134 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8092 echo "configure:8093: checking whether system supports dynamic ptys" >&5 8135 echo "configure:8136: checking whether system supports dynamic ptys" >&5
8093 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8136 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8094 echo "$ac_t""yes" 1>&6 8137 echo "$ac_t""yes" 1>&6
8095 cat >> confdefs.h <<\EOF 8138 cat >> confdefs.h <<\EOF
8096 #define HAVE_DEV_PTMX 1 8139 #define HAVE_DEV_PTMX 1
8097 EOF 8140 EOF
8099 else 8142 else
8100 echo "$ac_t""no" 1>&6 8143 echo "$ac_t""no" 1>&6
8101 fi 8144 fi
8102 8145
8103 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8146 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8104 echo "configure:8105: checking for pid_t" >&5 8147 echo "configure:8148: checking for pid_t" >&5
8105 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8148 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6 8149 echo $ac_n "(cached) $ac_c" 1>&6
8107 else 8150 else
8108 cat > conftest.$ac_ext <<EOF 8151 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure" 8152 #line 8153 "configure"
8110 #include "confdefs.h" 8153 #include "confdefs.h"
8111 #include <sys/types.h> 8154 #include <sys/types.h>
8112 #if STDC_HEADERS 8155 #if STDC_HEADERS
8113 #include <stdlib.h> 8156 #include <stdlib.h>
8114 #include <stddef.h> 8157 #include <stddef.h>
8133 8176
8134 fi 8177 fi
8135 8178
8136 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8179 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8137 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8180 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8138 echo "configure:8139: checking for vfork.h" >&5 8181 echo "configure:8182: checking for vfork.h" >&5
8139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8140 echo $ac_n "(cached) $ac_c" 1>&6 8183 echo $ac_n "(cached) $ac_c" 1>&6
8141 else 8184 else
8142 cat > conftest.$ac_ext <<EOF 8185 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure" 8186 #line 8187 "configure"
8144 #include "confdefs.h" 8187 #include "confdefs.h"
8145 #include <vfork.h> 8188 #include <vfork.h>
8146 EOF 8189 EOF
8147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8148 { (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8191 { (eval echo configure:8192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8150 if test -z "$ac_err"; then 8193 if test -z "$ac_err"; then
8151 rm -rf conftest* 8194 rm -rf conftest*
8152 eval "ac_cv_header_$ac_safe=yes" 8195 eval "ac_cv_header_$ac_safe=yes"
8153 else 8196 else
8168 else 8211 else
8169 echo "$ac_t""no" 1>&6 8212 echo "$ac_t""no" 1>&6
8170 fi 8213 fi
8171 8214
8172 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8215 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8173 echo "configure:8174: checking for working vfork" >&5 8216 echo "configure:8217: checking for working vfork" >&5
8174 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8217 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6 8218 echo $ac_n "(cached) $ac_c" 1>&6
8176 else 8219 else
8177 if test "$cross_compiling" = yes; then 8220 if test "$cross_compiling" = yes; then
8178 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8221 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8179 echo "configure:8180: checking for vfork" >&5 8222 echo "configure:8223: checking for vfork" >&5
8180 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8223 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6 8224 echo $ac_n "(cached) $ac_c" 1>&6
8182 else 8225 else
8183 cat > conftest.$ac_ext <<EOF 8226 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure" 8227 #line 8228 "configure"
8185 #include "confdefs.h" 8228 #include "confdefs.h"
8186 /* System header to define __stub macros and hopefully few prototypes, 8229 /* System header to define __stub macros and hopefully few prototypes,
8187 which can conflict with char vfork(); below. */ 8230 which can conflict with char vfork(); below. */
8188 #include <assert.h> 8231 #include <assert.h>
8189 /* Override any gcc2 internal prototype to avoid an error. */ 8232 /* Override any gcc2 internal prototype to avoid an error. */
8202 vfork(); 8245 vfork();
8203 #endif 8246 #endif
8204 8247
8205 ; return 0; } 8248 ; return 0; }
8206 EOF 8249 EOF
8207 if { (eval echo configure:8208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8208 rm -rf conftest* 8251 rm -rf conftest*
8209 eval "ac_cv_func_vfork=yes" 8252 eval "ac_cv_func_vfork=yes"
8210 else 8253 else
8211 echo "configure: failed program was:" >&5 8254 echo "configure: failed program was:" >&5
8212 cat conftest.$ac_ext >&5 8255 cat conftest.$ac_ext >&5
8224 fi 8267 fi
8225 8268
8226 ac_cv_func_vfork_works=$ac_cv_func_vfork 8269 ac_cv_func_vfork_works=$ac_cv_func_vfork
8227 else 8270 else
8228 cat > conftest.$ac_ext <<EOF 8271 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure" 8272 #line 8273 "configure"
8230 #include "confdefs.h" 8273 #include "confdefs.h"
8231 /* Thanks to Paul Eggert for this test. */ 8274 /* Thanks to Paul Eggert for this test. */
8232 #include <stdio.h> 8275 #include <stdio.h>
8233 #include <sys/types.h> 8276 #include <sys/types.h>
8234 #include <sys/stat.h> 8277 #include <sys/stat.h>
8319 || fstat(fileno(stdout), &st) != 0 8362 || fstat(fileno(stdout), &st) != 0
8320 ); 8363 );
8321 } 8364 }
8322 } 8365 }
8323 EOF 8366 EOF
8324 if { (eval echo configure:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8325 then 8368 then
8326 ac_cv_func_vfork_works=yes 8369 ac_cv_func_vfork_works=yes
8327 else 8370 else
8328 echo "configure: failed program was:" >&5 8371 echo "configure: failed program was:" >&5
8329 cat conftest.$ac_ext >&5 8372 cat conftest.$ac_ext >&5
8649 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 8692 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8650 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 8693 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8651 s%@INSTALL_DATA@%$INSTALL_DATA%g 8694 s%@INSTALL_DATA@%$INSTALL_DATA%g
8652 s%@YACC@%$YACC%g 8695 s%@YACC@%$YACC%g
8653 s%@RANLIB@%$RANLIB%g 8696 s%@RANLIB@%$RANLIB%g
8697 s%@LIBSOUND@%$LIBSOUND%g
8654 s%@SET_MAKE@%$SET_MAKE%g 8698 s%@SET_MAKE@%$SET_MAKE%g
8655 s%@ALLOCA@%$ALLOCA%g 8699 s%@ALLOCA@%$ALLOCA%g
8656 s%@liblockfile@%$liblockfile%g 8700 s%@liblockfile@%$liblockfile%g
8657 s%@LIBOBJS@%$LIBOBJS%g 8701 s%@LIBOBJS@%$LIBOBJS%g
8658 s%@NEED_SETGID@%$NEED_SETGID%g 8702 s%@NEED_SETGID@%$NEED_SETGID%g