comparison configure @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents b2472a1930f2
children ca9a9ec9c1c1
comparison
equal deleted inserted replaced
271:c7b7086b0a39 272:c5d627a313b1
236 with_site_lisp='no' 236 with_site_lisp='no'
237 with_menubars='' 237 with_menubars=''
238 with_scrollbars='' 238 with_scrollbars=''
239 with_dialogs='' 239 with_dialogs=''
240 with_file_coding='' 240 with_file_coding=''
241 const_is_losing='yes'
242 puresize='' 241 puresize=''
243 cflags='UNSPECIFIED' 242 cpp='' cppflags='' libs='' ldflags=''
244 dynamic='' 243 dynamic=''
245 with_x11='' 244 with_x11=''
246 with_msw='' 245 with_msw=''
247 with_gung='no'
248 with_minimal_tagbits='no'
249 rel_alloc='default' 246 rel_alloc='default'
250 with_system_malloc='default' 247 with_system_malloc='default'
251 with_dlmalloc='default' 248 with_dlmalloc='default'
252 native_sound_lib='' 249 native_sound_lib=''
253 use_assertions="yes" 250 use_assertions="yes"
308 with_x11 | \ 305 with_x11 | \
309 with_msw | \ 306 with_msw | \
310 with_gcc | \ 307 with_gcc | \
311 with_gnu_make | \ 308 with_gnu_make | \
312 dynamic | \ 309 dynamic | \
313 with_gung | \
314 with_ncurses | \ 310 with_ncurses | \
315 with_dnet | \ 311 with_dnet | \
316 with_socks | \ 312 with_socks | \
317 with_cde | \ 313 with_cde | \
318 with_offix | \ 314 with_offix | \
349 const_is_losing | \ 345 const_is_losing | \
350 usage_tracking | \ 346 usage_tracking | \
351 use_union_type | \ 347 use_union_type | \
352 debug | \ 348 debug | \
353 use_assertions | \ 349 use_assertions | \
350 use_minimal_tagbits | \
351 use_indexed_lrecord_implementation | \
352 gung_ho | \
353 use_assertions | \
354 memory_usage_stats | \ 354 memory_usage_stats | \
355 with_clash_detection | \ 355 with_clash_detection | \
356 with_shlib | \ 356 with_shlib | \
357 no_doc_file ) 357 no_doc_file )
358 case "$val" in 358 case "$val" in
366 366
367 367
368 srcdir | \ 368 srcdir | \
369 compiler | \ 369 compiler | \
370 cflags | \ 370 cflags | \
371 cpp | \
372 cppflags | \
373 libs | \
374 ldflags | \
371 puresize | \ 375 puresize | \
372 cache_file | \ 376 cache_file | \
373 native_sound_lib | \ 377 native_sound_lib | \
374 site_lisp | \ 378 site_lisp | \
375 x_includes | \ 379 x_includes | \
593 597
594 esac 598 esac
595 done 599 done
596 600
597 601
602 test -n "$cpp" && CPP="$cpp"
603 test -n "$cppflags" && CPPFLAGS="$cppflags"
604 test -n "$libs" && LIBS="$libs"
605 test -n "$ldflags" && LDFLAGS="$ldflags"
606
607
598 eval set x "$quoted_arguments"; shift 608 eval set x "$quoted_arguments"; shift
599 609
600 test "$extra_verbose" = "yes" && verbose=yes 610 test "$extra_verbose" = "yes" && verbose=yes
601 611
602 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac 612 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
603 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac 613 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
604 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac 614 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
605 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac 615 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
606 616
607 test -n "$with_x" && with_x11="$with_x" 617 test -n "$with_x" && with_x11="$with_x"
618
619
620 if test -n "$gung_ho"; then
621 test -z "$use_minimal_tagbits" && use_minimal_tagbits="$gung_ho"
622 test -z "$use_indexed_lrecord_implementation" && \
623 use_indexed_lrecord_implementation="$gung_ho"
624 fi
625 if test "$use_minimal_tagbits" = "no"; then
626 test "$with_dlmalloc" = "yes" && \
627 (echo "$progname: Usage error:"
628 echo " " --with-dlmalloc=yes requires --use-minimal-tagbits=yes
629 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
630 with_dlmalloc=no
631 fi
608 632
609 if test "$run_in_place" = "yes"; then 633 if test "$run_in_place" = "yes"; then
610 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 634 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
611 fi 635 fi
612 636
644 ;; 668 ;;
645 esac 669 esac
646 670
647 if test -z "$configuration"; then 671 if test -z "$configuration"; then
648 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 672 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
649 echo "configure:650: checking "host system type"" >&5 673 echo "configure:674: checking "host system type"" >&5
650 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 674 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
651 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 675 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
652 echo "$ac_t""$configuration" 1>&6 676 echo "$ac_t""$configuration" 1>&6
653 else 677 else
654 echo "$ac_t""unknown" 1>&6 678 echo "$ac_t""unknown" 1>&6
658 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 682 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
659 fi 683 fi
660 fi 684 fi
661 685
662 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 686 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
663 echo "configure:664: checking whether ln -s works" >&5 687 echo "configure:688: checking whether ln -s works" >&5
664 688
665 rm -f conftestdata 689 rm -f conftestdata
666 if ln -s X conftestdata 2>/dev/null 690 if ln -s X conftestdata 2>/dev/null
667 then 691 then
668 rm -f conftestdata 692 rm -f conftestdata
802 cat >> confdefs.h <<\EOF 826 cat >> confdefs.h <<\EOF
803 #define ERROR_CHECK_MALLOC 1 827 #define ERROR_CHECK_MALLOC 1
804 EOF 828 EOF
805 } 829 }
806 830
807 if test "${debug=beta}" = "yes"; then 831 if test "${debug:=$beta}" = "yes"; then
808 use_assertions=yes memory_usage_stats=yes 832 use_assertions=yes memory_usage_stats=yes
809 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then 833 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
810 echo " xemacs will be linked with \"debug.o\"" 834 echo " xemacs will be linked with \"debug.o\""
811 fi 835 fi
812 { test "$extra_verbose" = "yes" && cat << \EOF 836 { test "$extra_verbose" = "yes" && cat << \EOF
835 } 859 }
836 860
837 861
838 862
839 echo "checking "the configuration name"" 1>&6 863 echo "checking "the configuration name"" 1>&6
840 echo "configure:841: checking "the configuration name"" >&5 864 echo "configure:865: checking "the configuration name"" >&5
841 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 865 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
842 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 866 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
843 exit $? 867 exit $?
844 fi 868 fi
845 869
1288 1312
1289 test -n "$compiler" && CC="$compiler" 1313 test -n "$compiler" && CC="$compiler"
1290 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac 1314 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1291 fi 1315 fi
1292 1316
1293 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags" 1317 test "${cflags-unset}" != unset && CFLAGS="$cflags"
1318 if test "${CFLAGS-unset}" != unset
1319 then cflags_specified=yes;
1320 else cflags_specified=no;
1321 fi
1322
1294 xe_save_CFLAGS="$CFLAGS" 1323 xe_save_CFLAGS="$CFLAGS"
1295 1324
1296 # Extract the first word of "gcc", so it can be a program name with args. 1325 # Extract the first word of "gcc", so it can be a program name with args.
1297 set dummy gcc; ac_word=$2 1326 set dummy gcc; ac_word=$2
1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299 echo "configure:1300: checking for $ac_word" >&5 1328 echo "configure:1329: checking for $ac_word" >&5
1300 1329
1301 if test -n "$CC"; then 1330 if test -n "$CC"; then
1302 ac_cv_prog_CC="$CC" # Let the user override the test. 1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1303 else 1332 else
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1320 1349
1321 if test -z "$CC"; then 1350 if test -z "$CC"; then
1322 # Extract the first word of "cc", so it can be a program name with args. 1351 # Extract the first word of "cc", so it can be a program name with args.
1323 set dummy cc; ac_word=$2 1352 set dummy cc; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5 1354 echo "configure:1355: checking for $ac_word" >&5
1326 1355
1327 if test -n "$CC"; then 1356 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test. 1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1329 else 1358 else
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1365 1394
1366 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1395 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1367 fi 1396 fi
1368 1397
1369 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1370 echo "configure:1371: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1399 echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1371 1400
1372 ac_ext=c 1401 ac_ext=c
1373 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1402 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1374 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1403 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1375 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1404 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1377 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1406 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1378 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1407 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1379 cross_compiling=no 1408 cross_compiling=no
1380 1409
1381 cat > conftest.$ac_ext <<EOF 1410 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure" 1411 #line 1412 "configure"
1383 #include "confdefs.h" 1412 #include "confdefs.h"
1384 main(){return(0);} 1413 main(){return(0);}
1385 EOF 1414 EOF
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1387 ac_cv_prog_cc_works=yes 1416 ac_cv_prog_cc_works=yes
1388 # If we can't run a trivial program, we are probably using a cross compiler. 1417 # If we can't run a trivial program, we are probably using a cross compiler.
1389 if (./conftest; exit) 2>/dev/null; then 1418 if (./conftest; exit) 2>/dev/null; then
1390 ac_cv_prog_cc_cross=no 1419 ac_cv_prog_cc_cross=no
1391 else 1420 else
1401 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1430 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1402 if test $ac_cv_prog_cc_works = no; then 1431 if test $ac_cv_prog_cc_works = no; then
1403 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1432 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1404 fi 1433 fi
1405 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1434 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1406 echo "configure:1407: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1435 echo "configure:1436: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1407 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1436 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1408 cross_compiling=$ac_cv_prog_cc_cross 1437 cross_compiling=$ac_cv_prog_cc_cross
1409 1438
1410 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1439 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1411 echo "configure:1412: checking whether we are using GNU C" >&5 1440 echo "configure:1441: checking whether we are using GNU C" >&5
1412 1441
1413 cat > conftest.c <<EOF 1442 cat > conftest.c <<EOF
1414 #ifdef __GNUC__ 1443 #ifdef __GNUC__
1415 yes; 1444 yes;
1416 #endif 1445 #endif
1417 EOF 1446 EOF
1418 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1447 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1419 ac_cv_prog_gcc=yes 1448 ac_cv_prog_gcc=yes
1420 else 1449 else
1421 ac_cv_prog_gcc=no 1450 ac_cv_prog_gcc=no
1422 fi 1451 fi
1423 1452
1427 GCC=yes 1456 GCC=yes
1428 ac_test_CFLAGS="${CFLAGS+set}" 1457 ac_test_CFLAGS="${CFLAGS+set}"
1429 ac_save_CFLAGS="$CFLAGS" 1458 ac_save_CFLAGS="$CFLAGS"
1430 CFLAGS= 1459 CFLAGS=
1431 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1460 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1432 echo "configure:1433: checking whether ${CC-cc} accepts -g" >&5 1461 echo "configure:1462: checking whether ${CC-cc} accepts -g" >&5
1433 1462
1434 echo 'void f(){}' > conftest.c 1463 echo 'void f(){}' > conftest.c
1435 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1464 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1436 ac_cv_prog_cc_g=yes 1465 ac_cv_prog_cc_g=yes
1437 else 1466 else
1456 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1485 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1457 CC=${NON_GNU_CC-cc} 1486 CC=${NON_GNU_CC-cc}
1458 # Extract the first word of "gcc", so it can be a program name with args. 1487 # Extract the first word of "gcc", so it can be a program name with args.
1459 set dummy gcc; ac_word=$2 1488 set dummy gcc; ac_word=$2
1460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1461 echo "configure:1462: checking for $ac_word" >&5 1490 echo "configure:1491: checking for $ac_word" >&5
1462 1491
1463 if test -n "$CC"; then 1492 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test. 1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1465 else 1494 else
1466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1482 1511
1483 if test -z "$CC"; then 1512 if test -z "$CC"; then
1484 # Extract the first word of "cc", so it can be a program name with args. 1513 # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2 1514 set dummy cc; ac_word=$2
1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_word" >&5 1516 echo "configure:1517: checking for $ac_word" >&5
1488 1517
1489 if test -n "$CC"; then 1518 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test. 1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1491 else 1520 else
1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1527 1556
1528 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1557 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1529 fi 1558 fi
1530 1559
1531 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1560 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1532 echo "configure:1533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1561 echo "configure:1562: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1533 1562
1534 ac_ext=c 1563 ac_ext=c
1535 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1564 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1536 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1565 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1537 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1566 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1539 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1568 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1540 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1569 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1541 cross_compiling=no 1570 cross_compiling=no
1542 1571
1543 cat > conftest.$ac_ext <<EOF 1572 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure" 1573 #line 1574 "configure"
1545 #include "confdefs.h" 1574 #include "confdefs.h"
1546 main(){return(0);} 1575 main(){return(0);}
1547 EOF 1576 EOF
1548 if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1549 ac_cv_prog_cc_works=yes 1578 ac_cv_prog_cc_works=yes
1550 # If we can't run a trivial program, we are probably using a cross compiler. 1579 # If we can't run a trivial program, we are probably using a cross compiler.
1551 if (./conftest; exit) 2>/dev/null; then 1580 if (./conftest; exit) 2>/dev/null; then
1552 ac_cv_prog_cc_cross=no 1581 ac_cv_prog_cc_cross=no
1553 else 1582 else
1563 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1592 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1564 if test $ac_cv_prog_cc_works = no; then 1593 if test $ac_cv_prog_cc_works = no; then
1565 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1594 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1566 fi 1595 fi
1567 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1596 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1597 echo "configure:1598: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1569 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1598 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1570 cross_compiling=$ac_cv_prog_cc_cross 1599 cross_compiling=$ac_cv_prog_cc_cross
1571 1600
1572 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1601 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether we are using GNU C" >&5 1602 echo "configure:1603: checking whether we are using GNU C" >&5
1574 1603
1575 cat > conftest.c <<EOF 1604 cat > conftest.c <<EOF
1576 #ifdef __GNUC__ 1605 #ifdef __GNUC__
1577 yes; 1606 yes;
1578 #endif 1607 #endif
1579 EOF 1608 EOF
1580 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1609 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1581 ac_cv_prog_gcc=yes 1610 ac_cv_prog_gcc=yes
1582 else 1611 else
1583 ac_cv_prog_gcc=no 1612 ac_cv_prog_gcc=no
1584 fi 1613 fi
1585 1614
1589 GCC=yes 1618 GCC=yes
1590 ac_test_CFLAGS="${CFLAGS+set}" 1619 ac_test_CFLAGS="${CFLAGS+set}"
1591 ac_save_CFLAGS="$CFLAGS" 1620 ac_save_CFLAGS="$CFLAGS"
1592 CFLAGS= 1621 CFLAGS=
1593 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1622 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether ${CC-cc} accepts -g" >&5 1623 echo "configure:1624: checking whether ${CC-cc} accepts -g" >&5
1595 1624
1596 echo 'void f(){}' > conftest.c 1625 echo 'void f(){}' > conftest.c
1597 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1626 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1598 ac_cv_prog_cc_g=yes 1627 ac_cv_prog_cc_g=yes
1599 else 1628 else
1618 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1647 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1619 CC=gcc 1648 CC=gcc
1620 # Extract the first word of "gcc", so it can be a program name with args. 1649 # Extract the first word of "gcc", so it can be a program name with args.
1621 set dummy gcc; ac_word=$2 1650 set dummy gcc; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5 1652 echo "configure:1653: checking for $ac_word" >&5
1624 1653
1625 if test -n "$CC"; then 1654 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test. 1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else 1656 else
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1644 1673
1645 if test -z "$CC"; then 1674 if test -z "$CC"; then
1646 # Extract the first word of "cc", so it can be a program name with args. 1675 # Extract the first word of "cc", so it can be a program name with args.
1647 set dummy cc; ac_word=$2 1676 set dummy cc; ac_word=$2
1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_word" >&5 1678 echo "configure:1679: checking for $ac_word" >&5
1650 1679
1651 if test -n "$CC"; then 1680 if test -n "$CC"; then
1652 ac_cv_prog_CC="$CC" # Let the user override the test. 1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1653 else 1682 else
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1689 1718
1690 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1691 fi 1720 fi
1692 1721
1693 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1695 1724
1696 ac_ext=c 1725 ac_ext=c
1697 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1698 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1699 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1701 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1730 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1702 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1703 cross_compiling=no 1732 cross_compiling=no
1704 1733
1705 cat > conftest.$ac_ext <<EOF 1734 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure" 1735 #line 1736 "configure"
1707 #include "confdefs.h" 1736 #include "confdefs.h"
1708 main(){return(0);} 1737 main(){return(0);}
1709 EOF 1738 EOF
1710 if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1711 ac_cv_prog_cc_works=yes 1740 ac_cv_prog_cc_works=yes
1712 # If we can't run a trivial program, we are probably using a cross compiler. 1741 # If we can't run a trivial program, we are probably using a cross compiler.
1713 if (./conftest; exit) 2>/dev/null; then 1742 if (./conftest; exit) 2>/dev/null; then
1714 ac_cv_prog_cc_cross=no 1743 ac_cv_prog_cc_cross=no
1715 else 1744 else
1725 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1754 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1726 if test $ac_cv_prog_cc_works = no; then 1755 if test $ac_cv_prog_cc_works = no; then
1727 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1756 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1728 fi 1757 fi
1729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1758 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1759 echo "configure:1760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1731 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1760 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1732 cross_compiling=$ac_cv_prog_cc_cross 1761 cross_compiling=$ac_cv_prog_cc_cross
1733 1762
1734 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1763 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1735 echo "configure:1736: checking whether we are using GNU C" >&5 1764 echo "configure:1765: checking whether we are using GNU C" >&5
1736 1765
1737 cat > conftest.c <<EOF 1766 cat > conftest.c <<EOF
1738 #ifdef __GNUC__ 1767 #ifdef __GNUC__
1739 yes; 1768 yes;
1740 #endif 1769 #endif
1741 EOF 1770 EOF
1742 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1771 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1743 ac_cv_prog_gcc=yes 1772 ac_cv_prog_gcc=yes
1744 else 1773 else
1745 ac_cv_prog_gcc=no 1774 ac_cv_prog_gcc=no
1746 fi 1775 fi
1747 1776
1751 GCC=yes 1780 GCC=yes
1752 ac_test_CFLAGS="${CFLAGS+set}" 1781 ac_test_CFLAGS="${CFLAGS+set}"
1753 ac_save_CFLAGS="$CFLAGS" 1782 ac_save_CFLAGS="$CFLAGS"
1754 CFLAGS= 1783 CFLAGS=
1755 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1784 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1756 echo "configure:1757: checking whether ${CC-cc} accepts -g" >&5 1785 echo "configure:1786: checking whether ${CC-cc} accepts -g" >&5
1757 1786
1758 echo 'void f(){}' > conftest.c 1787 echo 'void f(){}' > conftest.c
1759 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1788 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1760 ac_cv_prog_cc_g=yes 1789 ac_cv_prog_cc_g=yes
1761 else 1790 else
1784 test -n "$CPP" -a -d "$CPP" && CPP= 1813 test -n "$CPP" -a -d "$CPP" && CPP=
1785 1814
1786 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1815 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1787 1816
1788 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1817 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1789 echo "configure:1790: checking how to run the C preprocessor" >&5 1818 echo "configure:1819: checking how to run the C preprocessor" >&5
1790 # On Suns, sometimes $CPP names a directory. 1819 # On Suns, sometimes $CPP names a directory.
1791 if test -n "$CPP" && test -d "$CPP"; then 1820 if test -n "$CPP" && test -d "$CPP"; then
1792 CPP= 1821 CPP=
1793 fi 1822 fi
1794 if test -z "$CPP"; then 1823 if test -z "$CPP"; then
1797 # substituted into the Makefile and "${CC-cc}" will confuse make. 1826 # substituted into the Makefile and "${CC-cc}" will confuse make.
1798 CPP="${CC-cc} -E" 1827 CPP="${CC-cc} -E"
1799 # On the NeXT, cc -E runs the code through the compiler's parser, 1828 # On the NeXT, cc -E runs the code through the compiler's parser,
1800 # not just through cpp. 1829 # not just through cpp.
1801 cat > conftest.$ac_ext <<EOF 1830 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure" 1831 #line 1832 "configure"
1803 #include "confdefs.h" 1832 #include "confdefs.h"
1804 #include <assert.h> 1833 #include <assert.h>
1805 Syntax Error 1834 Syntax Error
1806 EOF 1835 EOF
1807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1808 { (eval echo configure:1809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1837 { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1809 ac_err=`grep -v '^ *+' conftest.out` 1838 ac_err=`grep -v '^ *+' conftest.out`
1810 if test -z "$ac_err"; then 1839 if test -z "$ac_err"; then
1811 : 1840 :
1812 else 1841 else
1813 echo "$ac_err" >&5 1842 echo "$ac_err" >&5
1814 echo "configure: failed program was:" >&5 1843 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5 1844 cat conftest.$ac_ext >&5
1816 rm -rf conftest* 1845 rm -rf conftest*
1817 CPP="${CC-cc} -E -traditional-cpp" 1846 CPP="${CC-cc} -E -traditional-cpp"
1818 cat > conftest.$ac_ext <<EOF 1847 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure" 1848 #line 1849 "configure"
1820 #include "confdefs.h" 1849 #include "confdefs.h"
1821 #include <assert.h> 1850 #include <assert.h>
1822 Syntax Error 1851 Syntax Error
1823 EOF 1852 EOF
1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1854 { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err=`grep -v '^ *+' conftest.out` 1855 ac_err=`grep -v '^ *+' conftest.out`
1827 if test -z "$ac_err"; then 1856 if test -z "$ac_err"; then
1828 : 1857 :
1829 else 1858 else
1830 echo "$ac_err" >&5 1859 echo "$ac_err" >&5
1843 fi 1872 fi
1844 echo "$ac_t""$CPP" 1>&6 1873 echo "$ac_t""$CPP" 1>&6
1845 1874
1846 1875
1847 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1876 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1848 echo "configure:1849: checking for AIX" >&5 1877 echo "configure:1878: checking for AIX" >&5
1849 cat > conftest.$ac_ext <<EOF 1878 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure" 1879 #line 1880 "configure"
1851 #include "confdefs.h" 1880 #include "confdefs.h"
1852 #ifdef _AIX 1881 #ifdef _AIX
1853 yes 1882 yes
1854 #endif 1883 #endif
1855 1884
1872 rm -f conftest* 1901 rm -f conftest*
1873 1902
1874 1903
1875 1904
1876 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 1905 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
1877 echo "configure:1878: checking for GNU libc" >&5 1906 echo "configure:1907: checking for GNU libc" >&5
1878 cat > conftest.$ac_ext <<EOF 1907 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure" 1908 #line 1909 "configure"
1880 #include "confdefs.h" 1909 #include "confdefs.h"
1881 #include <features.h> 1910 #include <features.h>
1882 int main() { 1911 int main() {
1883 1912
1884 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 1913 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1886 ******* ======= ******** &&&&&&&& 1915 ******* ======= ******** &&&&&&&&
1887 #endif 1916 #endif
1888 1917
1889 ; return 0; } 1918 ; return 0; }
1890 EOF 1919 EOF
1891 if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1920 if { (eval echo configure:1921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1892 rm -rf conftest* 1921 rm -rf conftest*
1893 have_glibc=yes 1922 have_glibc=yes
1894 else 1923 else
1895 echo "configure: failed program was:" >&5 1924 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5 1925 cat conftest.$ac_ext >&5
1897 rm -rf conftest* 1926 rm -rf conftest*
1898 have_glibc=no 1927 have_glibc=no
1899 fi 1928 fi
1900 rm -f conftest* 1929 rm -f conftest*
1901 echo "$ac_t""$have_glibc" 1>&6 1930 echo "$ac_t""$have_glibc" 1>&6
1931 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1932 Defining _GNU_SOURCE
1933 EOF
1934 cat >> confdefs.h <<\EOF
1935 #define _GNU_SOURCE 1
1936 EOF
1937 }
1938
1902 1939
1903 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 1940 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether we are using SunPro C" >&5 1941 echo "configure:1942: checking whether we are using SunPro C" >&5
1905 cat > conftest.$ac_ext <<EOF 1942 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure" 1943 #line 1944 "configure"
1907 #include "confdefs.h" 1944 #include "confdefs.h"
1908 1945
1909 int main() { 1946 int main() {
1910 #ifndef __SUNPRO_C 1947 #ifndef __SUNPRO_C
1911 #error Not a SunPro compiler :-( 1948 #error Not a SunPro compiler :-(
1912 ******* ======= ******** &&&&&&&& 1949 ******* ======= ******** &&&&&&&&
1913 #endif 1950 #endif
1914 1951
1915 ; return 0; } 1952 ; return 0; }
1916 EOF 1953 EOF
1917 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1954 if { (eval echo configure:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 rm -rf conftest* 1955 rm -rf conftest*
1919 __sunpro_c=yes 1956 __sunpro_c=yes
1920 else 1957 else
1921 echo "configure: failed program was:" >&5 1958 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5 1959 cat conftest.$ac_ext >&5
2085 #else 2122 #else
2086 configure___ mail_use_lockf=no 2123 configure___ mail_use_lockf=no
2087 #endif 2124 #endif
2088 2125
2089 2126
2090 #if 0
2091 #ifdef THIS_IS_CONFIGURE
2092
2093 /* Get the CFLAGS for tests in configure. */
2094 #ifndef C_DEBUG_SWITCH
2095 #define C_DEBUG_SWITCH "-g"
2096 #endif
2097 configure___ c_debug_switch=C_DEBUG_SWITCH
2098
2099 #ifndef C_OPTIMIZE_SWITCH
2100 #define C_OPTIMIZE_SWITCH "-O"
2101 #endif
2102 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
2103
2104 #ifdef __GNUC__
2105 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
2106 #else
2107 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
2108 #endif
2109
2110 #else /* not THIS_IS_CONFIGURE */
2111
2112 /* Get the CFLAGS for real compilation. */
2113 #ifdef __GNUC__
2114 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
2115 #else
2116 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
2117 #endif
2118
2119 #endif /* not THIS_IS_CONFIGURE */
2120 #endif /* 0 */
2121 ' > $tempcname 2127 ' > $tempcname
2122 CPP=`eval "echo $CPP"` 2128 CPP=`eval "echo $CPP"`
2123 eval `$CPP -Isrc $tempcname \ 2129 eval `$CPP -Isrc $tempcname \
2124 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 2130 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2125 2131
2128 test "$extra_verbose" = "yes" && \ 2134 test "$extra_verbose" = "yes" && \
2129 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2135 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2130 2136
2131 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2137 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2132 2138
2133 if test -z "$CFLAGS"; then 2139 if test "$cflags_specified" = "no"; then
2134 if test "$GCC" = "yes"; then 2140 if test "$GCC" = "yes"; then
2135 CFLAGS="-g -O2 -Wall -Wno-switch" 2141 CFLAGS="-g -O2 -Wall -Wno-switch"
2136 elif test "$__sunpro_c" = "yes"; then 2142 elif test "$__sunpro_c" = "yes"; then
2137 case "$opsys" in 2143 case "$opsys" in
2138 sol2 ) CFLAGS="-v -xO4" ;; 2144 sol2 ) CFLAGS="-v -xO4" ;;
2139 sunos4* ) CFLAGS="-xO2";; 2145 sunos4* ) CFLAGS="-xO2";;
2140 esac 2146 esac
2141 elif test "$CC" = "xlc"; then 2147 elif test "$CC" = "xlc"; then
2142 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2148 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2143 else 2149 else
2144 CFLAGS="-O" ; fi 2150 CFLAGS="-O" ; fi
2145 fi 2151 fi
2152
2146 2153
2147 if test "$GCC" = "yes"; then 2154 if test "$GCC" = "yes"; then
2148 ld_switch_system_tmp="$ld_switch_system"; ld_switch_system="" 2155 set x $ld_switch_system; shift; ld_switch_system=""
2149 for arg in $ld_switch_system_tmp; do 2156 while test -n "$1"; do
2150 case "$arg" in 2157 case $1 in
2151 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_system="$ld_switch_system $arg" ;; 2158 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
2159 -L* | -l* | -u* | -Wl* ) ld_switch_system="$ld_switch_system $1" ;;
2152 -Xlinker* ) ;; 2160 -Xlinker* ) ;;
2153 * ) ld_switch_system="$ld_switch_system -Xlinker $arg" ;; 2161 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
2154 esac 2162 esac
2163 shift
2155 done 2164 done
2156 ld_switch_machine_tmp="$ld_switch_machine"; ld_switch_machine="" 2165 fi
2157 for arg in $ld_switch_machine_tmp; do 2166
2158 case "$arg" in 2167 if test "$GCC" = "yes"; then
2159 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_machine="$ld_switch_machine $arg" ;; 2168 set x $ld_switch_machine; shift; ld_switch_machine=""
2169 while test -n "$1"; do
2170 case $1 in
2171 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
2172 -L* | -l* | -u* | -Wl* ) ld_switch_machine="$ld_switch_machine $1" ;;
2160 -Xlinker* ) ;; 2173 -Xlinker* ) ;;
2161 * ) ld_switch_machine="$ld_switch_machine -Xlinker $arg" ;; 2174 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
2162 esac 2175 esac
2176 shift
2163 done 2177 done
2164 LDFLAGS_tmp="$LDFLAGS"; LDFLAGS="" 2178 fi
2165 for arg in $LDFLAGS_tmp; do 2179
2166 case "$arg" in 2180 if test "$GCC" = "yes"; then
2167 -L* | -l* | -R* | -u* | -Wl* | -f*) LDFLAGS="$LDFLAGS $arg" ;; 2181 set x $LDFLAGS; shift; LDFLAGS=""
2182 while test -n "$1"; do
2183 case $1 in
2184 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
2185 -L* | -l* | -u* | -Wl* ) LDFLAGS="$LDFLAGS $1" ;;
2168 -Xlinker* ) ;; 2186 -Xlinker* ) ;;
2169 * ) LDFLAGS="$LDFLAGS -Xlinker $arg" ;; 2187 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
2170 esac 2188 esac
2189 shift
2171 done 2190 done
2172 ld_call_shared_tmp="$ld_call_shared"; ld_call_shared="" 2191 fi
2173 for arg in $ld_call_shared_tmp; do 2192
2174 case "$arg" in 2193 if test "$GCC" = "yes"; then
2175 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_call_shared="$ld_call_shared $arg" ;; 2194 set x $ld_call_shared; shift; ld_call_shared=""
2195 while test -n "$1"; do
2196 case $1 in
2197 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
2198 -L* | -l* | -u* | -Wl* ) ld_call_shared="$ld_call_shared $1" ;;
2176 -Xlinker* ) ;; 2199 -Xlinker* ) ;;
2177 * ) ld_call_shared="$ld_call_shared -Xlinker $arg" ;; 2200 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
2178 esac 2201 esac
2202 shift
2179 done 2203 done
2180 fi 2204 fi
2181 2205
2182 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then 2206 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2183 echo " xemacs will be linked with \"$objects_machine\"" 2207 echo " xemacs will be linked with \"$objects_machine\""
2188 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2212 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2189 echo " xemacs will be linked with \"$unexec\"" 2213 echo " xemacs will be linked with \"$unexec\""
2190 fi 2214 fi
2191 2215
2192 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2216 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2193 echo "configure:2194: checking for dynodump" >&5 2217 echo "configure:2218: checking for dynodump" >&5
2194 if test "$unexec" != "unexsol2.o"; then 2218 if test "$unexec" != "unexsol2.o"; then
2195 echo "$ac_t""no" 1>&6 2219 echo "$ac_t""no" 1>&6
2196 else 2220 else
2197 echo "$ac_t""yes" 1>&6 2221 echo "$ac_t""yes" 1>&6
2198 { test "$extra_verbose" = "yes" && cat << \EOF 2222 { test "$extra_verbose" = "yes" && cat << \EOF
2212 esac 2236 esac
2213 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi 2237 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2214 fi 2238 fi
2215 2239
2216 2240
2241 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/ppc.ldscript"
2242
2217 if test "$unexec" = "unexaix.o"; then 2243 if test "$unexec" = "unexaix.o"; then
2218 if test "$dynamic" = "no"; then 2244 if test "$dynamic" = "no"; then
2219 start_flags="-Wl,-bnso,-bnodelcsect" 2245 start_flags="-Wl,-bnso,-bnodelcsect"
2220 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}" 2246 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
2221 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do 2247 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
2222 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi 2248 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
2223 done 2249 done
2224 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2250 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2225 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2251 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2226 done 2252 done
2227 fi 2253 fi
2228 elif test -n "$ld_text_start_addr"; then 2254 elif test -n "$ld_text_start_addr"; then
2229 start_flags="-T $ld_text_start_addr -e __start" 2255 start_flags="-T $ld_text_start_addr -e __start"
2230 fi 2256 fi
2231 2257
2232 2258
2242 2268
2243 2269
2244 2270
2245 if test -n "$site_prefixes"; then 2271 if test -n "$site_prefixes"; then
2246 for arg in $site_prefixes; do 2272 for arg in $site_prefixes; do
2247 case "$arg" in 2273 case "$arg" in
2248 -* ) ;; 2274 -* ) ;;
2249 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;; 2275 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
2250 esac 2276 esac
2251 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi 2277 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
2252 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi 2278 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
2253 done 2279 done
2254 fi 2280 fi
2258 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac 2284 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
2259 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi 2285 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
2260 done 2286 done
2261 fi 2287 fi
2262 2288
2263 if test -n "$site_includes" ; then 2289 if test -n "$site_includes"; then
2264 for arg in $site_includes; do 2290 for arg in $site_includes; do
2265 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac 2291 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
2266 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi 2292 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2267 done 2293 done
2268 fi 2294 fi
2270 2296
2271 for dir in "/usr/ccs/lib"; do 2297 for dir in "/usr/ccs/lib"; do
2272 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi 2298 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
2273 done 2299 done
2274 2300
2275 if test -n "$site_runtime_libraries" ; then 2301 if test -n "$site_runtime_libraries"; then
2276 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" 2302 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2277 export LD_RUN_PATH 2303 export LD_RUN_PATH
2278 fi 2304 fi
2279 2305
2280 2306
2286 esac 2312 esac
2287 fi 2313 fi
2288 2314
2289 if test "$add_runtime_path" = "yes"; then 2315 if test "$add_runtime_path" = "yes"; then
2290 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2316 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2291 echo "configure:2292: checking "for runtime libraries flag"" >&5 2317 echo "configure:2318: checking "for runtime libraries flag"" >&5
2292 dash_r="" 2318 dash_r=""
2293 for try_dash_r in "-R" "-R " "-rpath "; do 2319 for try_dash_r in "-R" "-R " "-rpath "; do
2294 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2320 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2321
2322 if test "$GCC" = "yes"; then
2323 set x $xe_check_libs; shift; xe_check_libs=""
2324 while test -n "$1"; do
2325 case $1 in
2326 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
2327 -L* | -l* | -u* | -Wl* ) xe_check_libs="$xe_check_libs $1" ;;
2328 -Xlinker* ) ;;
2329 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
2330 esac
2331 shift
2332 done
2333 fi
2295 cat > conftest.$ac_ext <<EOF 2334 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure" 2335 #line 2336 "configure"
2297 #include "confdefs.h" 2336 #include "confdefs.h"
2298 2337
2299 int main() { 2338 int main() {
2300 2339
2301 ; return 0; } 2340 ; return 0; }
2302 EOF 2341 EOF
2303 if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2304 rm -rf conftest* 2343 rm -rf conftest*
2305 dash_r="$try_dash_r" 2344 dash_r="$try_dash_r"
2306 else 2345 else
2307 echo "configure: failed program was:" >&5 2346 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5 2347 cat conftest.$ac_ext >&5
2371 eval "$xe_add_unique_runpath_dir"; 2410 eval "$xe_add_unique_runpath_dir";
2372 fi 2411 fi
2373 fi 2412 fi
2374 if test -n "$runpath"; then 2413 if test -n "$runpath"; then
2375 ld_switch_run="${dash_r}${runpath}" 2414 ld_switch_run="${dash_r}${runpath}"
2415
2416 if test "$GCC" = "yes"; then
2417 set x $ld_switch_run; shift; ld_switch_run=""
2418 while test -n "$1"; do
2419 case $1 in
2420 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
2421 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
2422 -Xlinker* ) ;;
2423 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
2424 esac
2425 shift
2426 done
2427 fi
2376 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 2428 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2377 fi 2429 fi
2378 fi 2430 fi
2379 2431
2380 2432
2385 else 2437 else
2386 doug_lea_malloc=no 2438 doug_lea_malloc=no
2387 fi 2439 fi
2388 after_morecore_hook_exists=yes 2440 after_morecore_hook_exists=yes
2389 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2441 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2390 echo "configure:2391: checking for malloc_get_state" >&5 2442 echo "configure:2443: checking for malloc_get_state" >&5
2391 2443
2392 cat > conftest.$ac_ext <<EOF 2444 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure" 2445 #line 2446 "configure"
2394 #include "confdefs.h" 2446 #include "confdefs.h"
2395 /* System header to define __stub macros and hopefully few prototypes, 2447 /* System header to define __stub macros and hopefully few prototypes,
2396 which can conflict with char malloc_get_state(); below. */ 2448 which can conflict with char malloc_get_state(); below. */
2397 #include <assert.h> 2449 #include <assert.h>
2398 /* Override any gcc2 internal prototype to avoid an error. */ 2450 /* Override any gcc2 internal prototype to avoid an error. */
2411 malloc_get_state(); 2463 malloc_get_state();
2412 #endif 2464 #endif
2413 2465
2414 ; return 0; } 2466 ; return 0; }
2415 EOF 2467 EOF
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2417 rm -rf conftest* 2469 rm -rf conftest*
2418 eval "ac_cv_func_malloc_get_state=yes" 2470 eval "ac_cv_func_malloc_get_state=yes"
2419 else 2471 else
2420 echo "configure: failed program was:" >&5 2472 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5 2473 cat conftest.$ac_ext >&5
2431 echo "$ac_t""no" 1>&6 2483 echo "$ac_t""no" 1>&6
2432 doug_lea_malloc=no 2484 doug_lea_malloc=no
2433 fi 2485 fi
2434 2486
2435 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2487 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2436 echo "configure:2437: checking for malloc_set_state" >&5 2488 echo "configure:2489: checking for malloc_set_state" >&5
2437 2489
2438 cat > conftest.$ac_ext <<EOF 2490 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure" 2491 #line 2492 "configure"
2440 #include "confdefs.h" 2492 #include "confdefs.h"
2441 /* System header to define __stub macros and hopefully few prototypes, 2493 /* System header to define __stub macros and hopefully few prototypes,
2442 which can conflict with char malloc_set_state(); below. */ 2494 which can conflict with char malloc_set_state(); below. */
2443 #include <assert.h> 2495 #include <assert.h>
2444 /* Override any gcc2 internal prototype to avoid an error. */ 2496 /* Override any gcc2 internal prototype to avoid an error. */
2457 malloc_set_state(); 2509 malloc_set_state();
2458 #endif 2510 #endif
2459 2511
2460 ; return 0; } 2512 ; return 0; }
2461 EOF 2513 EOF
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2514 if { (eval echo configure:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2463 rm -rf conftest* 2515 rm -rf conftest*
2464 eval "ac_cv_func_malloc_set_state=yes" 2516 eval "ac_cv_func_malloc_set_state=yes"
2465 else 2517 else
2466 echo "configure: failed program was:" >&5 2518 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5 2519 cat conftest.$ac_ext >&5
2477 echo "$ac_t""no" 1>&6 2529 echo "$ac_t""no" 1>&6
2478 doug_lea_malloc=no 2530 doug_lea_malloc=no
2479 fi 2531 fi
2480 2532
2481 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2533 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2482 echo "configure:2483: checking whether __after_morecore_hook exists" >&5 2534 echo "configure:2535: checking whether __after_morecore_hook exists" >&5
2483 cat > conftest.$ac_ext <<EOF 2535 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure" 2536 #line 2537 "configure"
2485 #include "confdefs.h" 2537 #include "confdefs.h"
2486 extern void (* __after_morecore_hook)(); 2538 extern void (* __after_morecore_hook)();
2487 int main() { 2539 int main() {
2488 __after_morecore_hook = 0 2540 __after_morecore_hook = 0
2489 ; return 0; } 2541 ; return 0; }
2490 EOF 2542 EOF
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2543 if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2492 rm -rf conftest* 2544 rm -rf conftest*
2493 echo "$ac_t""yes" 1>&6 2545 echo "$ac_t""yes" 1>&6
2494 else 2546 else
2495 echo "configure: failed program was:" >&5 2547 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5 2548 cat conftest.$ac_ext >&5
2524 cat >> confdefs.h <<\EOF 2576 cat >> confdefs.h <<\EOF
2525 #define DOUG_LEA_MALLOC 1 2577 #define DOUG_LEA_MALLOC 1
2526 EOF 2578 EOF
2527 } 2579 }
2528 2580
2529 { test "$extra_verbose" = "yes" && cat << \EOF
2530 Defining USE_MINIMAL_TAGBITS
2531 EOF
2532 cat >> confdefs.h <<\EOF
2533 #define USE_MINIMAL_TAGBITS 1
2534 EOF
2535 }
2536
2537 if test "$after_morecore_hook_exists" = "no" ; then 2581 if test "$after_morecore_hook_exists" = "no" ; then
2538 GNU_MALLOC_reason=" 2582 GNU_MALLOC_reason="
2539 (Using Doug Lea's new malloc from the Linux C Library.)" 2583 (Using Doug Lea's new malloc from the Linux C Library.)"
2540 { test "$extra_verbose" = "yes" && cat << \EOF 2584 { test "$extra_verbose" = "yes" && cat << \EOF
2541 Defining _NO_MALLOC_WARNING_ 2585 Defining _NO_MALLOC_WARNING_
2544 #define _NO_MALLOC_WARNING_ 1 2588 #define _NO_MALLOC_WARNING_ 1
2545 EOF 2589 EOF
2546 } 2590 }
2547 2591
2548 fi 2592 fi
2549 with_minimal_tagbits=yes 2593 use_minimal_tagbits=yes
2550 fi 2594 fi
2551 2595
2552 2596
2553 2597
2554 2598
2555 # Extract the first word of "ranlib", so it can be a program name with args. 2599 # Extract the first word of "ranlib", so it can be a program name with args.
2556 set dummy ranlib; ac_word=$2 2600 set dummy ranlib; ac_word=$2
2557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558 echo "configure:2559: checking for $ac_word" >&5 2602 echo "configure:2603: checking for $ac_word" >&5
2559 2603
2560 if test -n "$RANLIB"; then 2604 if test -n "$RANLIB"; then
2561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2562 else 2606 else
2563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2606 # AIX /bin/install 2650 # AIX /bin/install
2607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2609 # ./install, which can be erroneously created by make from ./install.sh. 2653 # ./install, which can be erroneously created by make from ./install.sh.
2610 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2654 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2611 echo "configure:2612: checking for a BSD compatible install" >&5 2655 echo "configure:2656: checking for a BSD compatible install" >&5
2612 if test -z "$INSTALL"; then 2656 if test -z "$INSTALL"; then
2613 2657
2614 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2658 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2615 for ac_dir in $PATH; do 2659 for ac_dir in $PATH; do
2616 # Account for people who put trailing slashes in PATH elements. 2660 # Account for people who put trailing slashes in PATH elements.
2657 for ac_prog in 'bison -y' byacc 2701 for ac_prog in 'bison -y' byacc
2658 do 2702 do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args. 2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2 2704 set dummy $ac_prog; ac_word=$2
2661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_word" >&5 2706 echo "configure:2707: checking for $ac_word" >&5
2663 2707
2664 if test -n "$YACC"; then 2708 if test -n "$YACC"; then
2665 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2709 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2666 else 2710 else
2667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2688 2732
2689 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2733 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2690 do 2734 do
2691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5 2737 echo "configure:2738: checking for $ac_hdr" >&5
2694 2738
2695 cat > conftest.$ac_ext <<EOF 2739 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure" 2740 #line 2741 "configure"
2697 #include "confdefs.h" 2741 #include "confdefs.h"
2698 #include <$ac_hdr> 2742 #include <$ac_hdr>
2699 EOF 2743 EOF
2700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err=`grep -v '^ *+' conftest.out` 2746 ac_err=`grep -v '^ *+' conftest.out`
2703 if test -z "$ac_err"; then 2747 if test -z "$ac_err"; then
2704 rm -rf conftest* 2748 rm -rf conftest*
2705 eval "ac_cv_header_$ac_safe=yes" 2749 eval "ac_cv_header_$ac_safe=yes"
2706 else 2750 else
2729 2773
2730 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2774 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2731 do 2775 do
2732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_hdr" >&5 2778 echo "configure:2779: checking for $ac_hdr" >&5
2735 2779
2736 cat > conftest.$ac_ext <<EOF 2780 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure" 2781 #line 2782 "configure"
2738 #include "confdefs.h" 2782 #include "confdefs.h"
2739 #include <$ac_hdr> 2783 #include <$ac_hdr>
2740 EOF 2784 EOF
2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2786 { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err=`grep -v '^ *+' conftest.out` 2787 ac_err=`grep -v '^ *+' conftest.out`
2744 if test -z "$ac_err"; then 2788 if test -z "$ac_err"; then
2745 rm -rf conftest* 2789 rm -rf conftest*
2746 eval "ac_cv_header_$ac_safe=yes" 2790 eval "ac_cv_header_$ac_safe=yes"
2747 else 2791 else
2770 2814
2771 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 2815 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
2772 do 2816 do
2773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5 2819 echo "configure:2820: checking for $ac_hdr" >&5
2776 2820
2777 cat > conftest.$ac_ext <<EOF 2821 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure" 2822 #line 2823 "configure"
2779 #include "confdefs.h" 2823 #include "confdefs.h"
2780 #include <$ac_hdr> 2824 #include <$ac_hdr>
2781 EOF 2825 EOF
2782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2827 { (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err=`grep -v '^ *+' conftest.out` 2828 ac_err=`grep -v '^ *+' conftest.out`
2785 if test -z "$ac_err"; then 2829 if test -z "$ac_err"; then
2786 rm -rf conftest* 2830 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=yes" 2831 eval "ac_cv_header_$ac_safe=yes"
2788 else 2832 else
2808 echo "$ac_t""no" 1>&6 2852 echo "$ac_t""no" 1>&6
2809 fi 2853 fi
2810 done 2854 done
2811 2855
2812 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2856 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2813 echo "configure:2814: checking for sys/wait.h that is POSIX.1 compatible" >&5 2857 echo "configure:2858: checking for sys/wait.h that is POSIX.1 compatible" >&5
2814 2858
2815 cat > conftest.$ac_ext <<EOF 2859 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure" 2860 #line 2861 "configure"
2817 #include "confdefs.h" 2861 #include "confdefs.h"
2818 #include <sys/types.h> 2862 #include <sys/types.h>
2819 #include <sys/wait.h> 2863 #include <sys/wait.h>
2820 #ifndef WEXITSTATUS 2864 #ifndef WEXITSTATUS
2821 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2865 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2827 int s; 2871 int s;
2828 wait (&s); 2872 wait (&s);
2829 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2873 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2830 ; return 0; } 2874 ; return 0; }
2831 EOF 2875 EOF
2832 if { (eval echo configure:2833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2876 if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2833 rm -rf conftest* 2877 rm -rf conftest*
2834 ac_cv_header_sys_wait_h=yes 2878 ac_cv_header_sys_wait_h=yes
2835 else 2879 else
2836 echo "configure: failed program was:" >&5 2880 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5 2881 cat conftest.$ac_ext >&5
2851 } 2895 }
2852 2896
2853 fi 2897 fi
2854 2898
2855 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2899 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2856 echo "configure:2857: checking for ANSI C header files" >&5 2900 echo "configure:2901: checking for ANSI C header files" >&5
2857 2901
2858 cat > conftest.$ac_ext <<EOF 2902 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure" 2903 #line 2904 "configure"
2860 #include "confdefs.h" 2904 #include "confdefs.h"
2861 #include <stdlib.h> 2905 #include <stdlib.h>
2862 #include <stdarg.h> 2906 #include <stdarg.h>
2863 #include <string.h> 2907 #include <string.h>
2864 #include <float.h> 2908 #include <float.h>
2865 EOF 2909 EOF
2866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err=`grep -v '^ *+' conftest.out` 2912 ac_err=`grep -v '^ *+' conftest.out`
2869 if test -z "$ac_err"; then 2913 if test -z "$ac_err"; then
2870 rm -rf conftest* 2914 rm -rf conftest*
2871 ac_cv_header_stdc=yes 2915 ac_cv_header_stdc=yes
2872 else 2916 else
2879 rm -f conftest* 2923 rm -f conftest*
2880 2924
2881 if test $ac_cv_header_stdc = yes; then 2925 if test $ac_cv_header_stdc = yes; then
2882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2883 cat > conftest.$ac_ext <<EOF 2927 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure" 2928 #line 2929 "configure"
2885 #include "confdefs.h" 2929 #include "confdefs.h"
2886 #include <string.h> 2930 #include <string.h>
2887 EOF 2931 EOF
2888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2889 egrep "memchr" >/dev/null 2>&1; then 2933 egrep "memchr" >/dev/null 2>&1; then
2897 fi 2941 fi
2898 2942
2899 if test $ac_cv_header_stdc = yes; then 2943 if test $ac_cv_header_stdc = yes; then
2900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2901 cat > conftest.$ac_ext <<EOF 2945 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure" 2946 #line 2947 "configure"
2903 #include "confdefs.h" 2947 #include "confdefs.h"
2904 #include <stdlib.h> 2948 #include <stdlib.h>
2905 EOF 2949 EOF
2906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2907 egrep "free" >/dev/null 2>&1; then 2951 egrep "free" >/dev/null 2>&1; then
2915 fi 2959 fi
2916 2960
2917 if test $ac_cv_header_stdc = yes; then 2961 if test $ac_cv_header_stdc = yes; then
2918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2919 cat > conftest.$ac_ext <<EOF 2963 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure" 2964 #line 2965 "configure"
2921 #include "confdefs.h" 2965 #include "confdefs.h"
2922 #include <ctype.h> 2966 #include <ctype.h>
2923 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2967 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2924 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2968 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2926 int main () { int i; for (i = 0; i < 256; i++) 2970 int main () { int i; for (i = 0; i < 256; i++)
2927 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2971 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2928 exit (0); } 2972 exit (0); }
2929 2973
2930 EOF 2974 EOF
2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2932 then 2976 then
2933 : 2977 :
2934 else 2978 else
2935 echo "configure: failed program was:" >&5 2979 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5 2980 cat conftest.$ac_ext >&5
2951 } 2995 }
2952 2996
2953 fi 2997 fi
2954 2998
2955 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2999 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether time.h and sys/time.h may both be included" >&5 3000 echo "configure:3001: checking whether time.h and sys/time.h may both be included" >&5
2957 3001
2958 cat > conftest.$ac_ext <<EOF 3002 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure" 3003 #line 3004 "configure"
2960 #include "confdefs.h" 3004 #include "confdefs.h"
2961 #include <sys/types.h> 3005 #include <sys/types.h>
2962 #include <sys/time.h> 3006 #include <sys/time.h>
2963 #include <time.h> 3007 #include <time.h>
2964 int main() { 3008 int main() {
2965 struct tm *tp; 3009 struct tm *tp;
2966 ; return 0; } 3010 ; return 0; }
2967 EOF 3011 EOF
2968 if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 rm -rf conftest* 3013 rm -rf conftest*
2970 ac_cv_header_time=yes 3014 ac_cv_header_time=yes
2971 else 3015 else
2972 echo "configure: failed program was:" >&5 3016 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5 3017 cat conftest.$ac_ext >&5
2987 } 3031 }
2988 3032
2989 fi 3033 fi
2990 3034
2991 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3035 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2992 echo "configure:2993: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3036 echo "configure:3037: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2993 3037
2994 cat > conftest.$ac_ext <<EOF 3038 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure" 3039 #line 3040 "configure"
2996 #include "confdefs.h" 3040 #include "confdefs.h"
2997 #include <sys/types.h> 3041 #include <sys/types.h>
2998 #include <signal.h> 3042 #include <signal.h>
2999 /* NetBSD declares sys_siglist in unistd.h. */ 3043 /* NetBSD declares sys_siglist in unistd.h. */
3000 #ifdef HAVE_UNISTD_H 3044 #ifdef HAVE_UNISTD_H
3002 #endif 3046 #endif
3003 int main() { 3047 int main() {
3004 char *msg = *(sys_siglist + 1); 3048 char *msg = *(sys_siglist + 1);
3005 ; return 0; } 3049 ; return 0; }
3006 EOF 3050 EOF
3007 if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3008 rm -rf conftest* 3052 rm -rf conftest*
3009 ac_cv_decl_sys_siglist=yes 3053 ac_cv_decl_sys_siglist=yes
3010 else 3054 else
3011 echo "configure: failed program was:" >&5 3055 echo "configure: failed program was:" >&5
3012 cat conftest.$ac_ext >&5 3056 cat conftest.$ac_ext >&5
3027 3071
3028 fi 3072 fi
3029 3073
3030 3074
3031 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3075 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3032 echo "configure:3033: checking for struct utimbuf" >&5 3076 echo "configure:3077: checking for struct utimbuf" >&5
3033 cat > conftest.$ac_ext <<EOF 3077 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure" 3078 #line 3079 "configure"
3035 #include "confdefs.h" 3079 #include "confdefs.h"
3036 #ifdef TIME_WITH_SYS_TIME 3080 #ifdef TIME_WITH_SYS_TIME
3037 #include <sys/time.h> 3081 #include <sys/time.h>
3038 #include <time.h> 3082 #include <time.h>
3039 #else 3083 #else
3048 #endif 3092 #endif
3049 int main() { 3093 int main() {
3050 static struct utimbuf x; x.actime = x.modtime; 3094 static struct utimbuf x; x.actime = x.modtime;
3051 ; return 0; } 3095 ; return 0; }
3052 EOF 3096 EOF
3053 if { (eval echo configure:3054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3054 rm -rf conftest* 3098 rm -rf conftest*
3055 echo "$ac_t""yes" 1>&6 3099 echo "$ac_t""yes" 1>&6
3056 { test "$extra_verbose" = "yes" && cat << \EOF 3100 { test "$extra_verbose" = "yes" && cat << \EOF
3057 Defining HAVE_STRUCT_UTIMBUF 3101 Defining HAVE_STRUCT_UTIMBUF
3058 EOF 3102 EOF
3068 echo "$ac_t""no" 1>&6 3112 echo "$ac_t""no" 1>&6
3069 fi 3113 fi
3070 rm -f conftest* 3114 rm -f conftest*
3071 3115
3072 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3116 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3073 echo "configure:3074: checking return type of signal handlers" >&5 3117 echo "configure:3118: checking return type of signal handlers" >&5
3074 3118
3075 cat > conftest.$ac_ext <<EOF 3119 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure" 3120 #line 3121 "configure"
3077 #include "confdefs.h" 3121 #include "confdefs.h"
3078 #include <sys/types.h> 3122 #include <sys/types.h>
3079 #include <signal.h> 3123 #include <signal.h>
3080 #ifdef signal 3124 #ifdef signal
3081 #undef signal 3125 #undef signal
3088 3132
3089 int main() { 3133 int main() {
3090 int i; 3134 int i;
3091 ; return 0; } 3135 ; return 0; }
3092 EOF 3136 EOF
3093 if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094 rm -rf conftest* 3138 rm -rf conftest*
3095 ac_cv_type_signal=void 3139 ac_cv_type_signal=void
3096 else 3140 else
3097 echo "configure: failed program was:" >&5 3141 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5 3142 cat conftest.$ac_ext >&5
3110 EOF 3154 EOF
3111 } 3155 }
3112 3156
3113 3157
3114 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3158 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3115 echo "configure:3116: checking for size_t" >&5 3159 echo "configure:3160: checking for size_t" >&5
3116 3160
3117 cat > conftest.$ac_ext <<EOF 3161 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure" 3162 #line 3163 "configure"
3119 #include "confdefs.h" 3163 #include "confdefs.h"
3120 #include <sys/types.h> 3164 #include <sys/types.h>
3121 #if STDC_HEADERS 3165 #if STDC_HEADERS
3122 #include <stdlib.h> 3166 #include <stdlib.h>
3123 #include <stddef.h> 3167 #include <stddef.h>
3144 } 3188 }
3145 3189
3146 fi 3190 fi
3147 3191
3148 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3192 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3149 echo "configure:3150: checking for pid_t" >&5 3193 echo "configure:3194: checking for pid_t" >&5
3150 3194
3151 cat > conftest.$ac_ext <<EOF 3195 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure" 3196 #line 3197 "configure"
3153 #include "confdefs.h" 3197 #include "confdefs.h"
3154 #include <sys/types.h> 3198 #include <sys/types.h>
3155 #if STDC_HEADERS 3199 #if STDC_HEADERS
3156 #include <stdlib.h> 3200 #include <stdlib.h>
3157 #include <stddef.h> 3201 #include <stddef.h>
3178 } 3222 }
3179 3223
3180 fi 3224 fi
3181 3225
3182 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3226 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3183 echo "configure:3184: checking for uid_t in sys/types.h" >&5 3227 echo "configure:3228: checking for uid_t in sys/types.h" >&5
3184 3228
3185 cat > conftest.$ac_ext <<EOF 3229 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure" 3230 #line 3231 "configure"
3187 #include "confdefs.h" 3231 #include "confdefs.h"
3188 #include <sys/types.h> 3232 #include <sys/types.h>
3189 EOF 3233 EOF
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 egrep "uid_t" >/dev/null 2>&1; then 3235 egrep "uid_t" >/dev/null 2>&1; then
3217 } 3261 }
3218 3262
3219 fi 3263 fi
3220 3264
3221 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3265 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3222 echo "configure:3223: checking for mode_t" >&5 3266 echo "configure:3267: checking for mode_t" >&5
3223 3267
3224 cat > conftest.$ac_ext <<EOF 3268 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure" 3269 #line 3270 "configure"
3226 #include "confdefs.h" 3270 #include "confdefs.h"
3227 #include <sys/types.h> 3271 #include <sys/types.h>
3228 #if STDC_HEADERS 3272 #if STDC_HEADERS
3229 #include <stdlib.h> 3273 #include <stdlib.h>
3230 #include <stddef.h> 3274 #include <stddef.h>
3251 } 3295 }
3252 3296
3253 fi 3297 fi
3254 3298
3255 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3299 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3256 echo "configure:3257: checking for off_t" >&5 3300 echo "configure:3301: checking for off_t" >&5
3257 3301
3258 cat > conftest.$ac_ext <<EOF 3302 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure" 3303 #line 3304 "configure"
3260 #include "confdefs.h" 3304 #include "confdefs.h"
3261 #include <sys/types.h> 3305 #include <sys/types.h>
3262 #if STDC_HEADERS 3306 #if STDC_HEADERS
3263 #include <stdlib.h> 3307 #include <stdlib.h>
3264 #include <stddef.h> 3308 #include <stddef.h>
3286 3330
3287 fi 3331 fi
3288 3332
3289 3333
3290 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3334 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3291 echo "configure:3292: checking for struct timeval" >&5 3335 echo "configure:3336: checking for struct timeval" >&5
3292 cat > conftest.$ac_ext <<EOF 3336 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure" 3337 #line 3338 "configure"
3294 #include "confdefs.h" 3338 #include "confdefs.h"
3295 #ifdef TIME_WITH_SYS_TIME 3339 #ifdef TIME_WITH_SYS_TIME
3296 #include <sys/time.h> 3340 #include <sys/time.h>
3297 #include <time.h> 3341 #include <time.h>
3298 #else 3342 #else
3304 #endif 3348 #endif
3305 int main() { 3349 int main() {
3306 static struct timeval x; x.tv_sec = x.tv_usec; 3350 static struct timeval x; x.tv_sec = x.tv_usec;
3307 ; return 0; } 3351 ; return 0; }
3308 EOF 3352 EOF
3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3353 if { (eval echo configure:3354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310 rm -rf conftest* 3354 rm -rf conftest*
3311 echo "$ac_t""yes" 1>&6 3355 echo "$ac_t""yes" 1>&6
3312 HAVE_TIMEVAL=yes 3356 HAVE_TIMEVAL=yes
3313 { test "$extra_verbose" = "yes" && cat << \EOF 3357 { test "$extra_verbose" = "yes" && cat << \EOF
3314 Defining HAVE_TIMEVAL 3358 Defining HAVE_TIMEVAL
3326 HAVE_TIMEVAL=no 3370 HAVE_TIMEVAL=no
3327 fi 3371 fi
3328 rm -f conftest* 3372 rm -f conftest*
3329 3373
3330 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3374 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3331 echo "configure:3332: checking whether struct tm is in sys/time.h or time.h" >&5 3375 echo "configure:3376: checking whether struct tm is in sys/time.h or time.h" >&5
3332 3376
3333 cat > conftest.$ac_ext <<EOF 3377 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure" 3378 #line 3379 "configure"
3335 #include "confdefs.h" 3379 #include "confdefs.h"
3336 #include <sys/types.h> 3380 #include <sys/types.h>
3337 #include <time.h> 3381 #include <time.h>
3338 int main() { 3382 int main() {
3339 struct tm *tp; tp->tm_sec; 3383 struct tm *tp; tp->tm_sec;
3340 ; return 0; } 3384 ; return 0; }
3341 EOF 3385 EOF
3342 if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343 rm -rf conftest* 3387 rm -rf conftest*
3344 ac_cv_struct_tm=time.h 3388 ac_cv_struct_tm=time.h
3345 else 3389 else
3346 echo "configure: failed program was:" >&5 3390 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5 3391 cat conftest.$ac_ext >&5
3361 } 3405 }
3362 3406
3363 fi 3407 fi
3364 3408
3365 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3409 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3366 echo "configure:3367: checking for tm_zone in struct tm" >&5 3410 echo "configure:3411: checking for tm_zone in struct tm" >&5
3367 3411
3368 cat > conftest.$ac_ext <<EOF 3412 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure" 3413 #line 3414 "configure"
3370 #include "confdefs.h" 3414 #include "confdefs.h"
3371 #include <sys/types.h> 3415 #include <sys/types.h>
3372 #include <$ac_cv_struct_tm> 3416 #include <$ac_cv_struct_tm>
3373 int main() { 3417 int main() {
3374 struct tm tm; tm.tm_zone; 3418 struct tm tm; tm.tm_zone;
3375 ; return 0; } 3419 ; return 0; }
3376 EOF 3420 EOF
3377 if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378 rm -rf conftest* 3422 rm -rf conftest*
3379 ac_cv_struct_tm_zone=yes 3423 ac_cv_struct_tm_zone=yes
3380 else 3424 else
3381 echo "configure: failed program was:" >&5 3425 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5 3426 cat conftest.$ac_ext >&5
3395 EOF 3439 EOF
3396 } 3440 }
3397 3441
3398 else 3442 else
3399 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3443 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3400 echo "configure:3401: checking for tzname" >&5 3444 echo "configure:3445: checking for tzname" >&5
3401 3445
3402 cat > conftest.$ac_ext <<EOF 3446 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure" 3447 #line 3448 "configure"
3404 #include "confdefs.h" 3448 #include "confdefs.h"
3405 #include <time.h> 3449 #include <time.h>
3406 #ifndef tzname /* For SGI. */ 3450 #ifndef tzname /* For SGI. */
3407 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3451 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3408 #endif 3452 #endif
3409 int main() { 3453 int main() {
3410 atoi(*tzname); 3454 atoi(*tzname);
3411 ; return 0; } 3455 ; return 0; }
3412 EOF 3456 EOF
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3457 if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3414 rm -rf conftest* 3458 rm -rf conftest*
3415 ac_cv_var_tzname=yes 3459 ac_cv_var_tzname=yes
3416 else 3460 else
3417 echo "configure: failed program was:" >&5 3461 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5 3462 cat conftest.$ac_ext >&5
3434 fi 3478 fi
3435 fi 3479 fi
3436 3480
3437 3481
3438 echo $ac_n "checking for working const""... $ac_c" 1>&6 3482 echo $ac_n "checking for working const""... $ac_c" 1>&6
3439 echo "configure:3440: checking for working const" >&5 3483 echo "configure:3484: checking for working const" >&5
3440 3484
3441 cat > conftest.$ac_ext <<EOF 3485 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure" 3486 #line 3487 "configure"
3443 #include "confdefs.h" 3487 #include "confdefs.h"
3444 3488
3445 int main() { 3489 int main() {
3446 3490
3447 /* Ultrix mips cc rejects this. */ 3491 /* Ultrix mips cc rejects this. */
3486 const int foo = 10; 3530 const int foo = 10;
3487 } 3531 }
3488 3532
3489 ; return 0; } 3533 ; return 0; }
3490 EOF 3534 EOF
3491 if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 rm -rf conftest* 3536 rm -rf conftest*
3493 ac_cv_c_const=yes 3537 ac_cv_c_const=yes
3494 else 3538 else
3495 echo "configure: failed program was:" >&5 3539 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5 3540 cat conftest.$ac_ext >&5
3511 3555
3512 fi 3556 fi
3513 3557
3514 3558
3515 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3559 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3516 echo "configure:3517: checking whether ${MAKE-make} sets \${MAKE}" >&5 3560 echo "configure:3561: checking whether ${MAKE-make} sets \${MAKE}" >&5
3517 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3561 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3518 3562
3519 cat > conftestmake <<\EOF 3563 cat > conftestmake <<\EOF
3520 all: 3564 all:
3521 @echo 'ac_maketemp="${MAKE}"' 3565 @echo 'ac_maketemp="${MAKE}"'
3536 SET_MAKE="MAKE=${MAKE-make}" 3580 SET_MAKE="MAKE=${MAKE-make}"
3537 fi 3581 fi
3538 3582
3539 3583
3540 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3584 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3541 echo "configure:3542: checking whether byte ordering is bigendian" >&5 3585 echo "configure:3586: checking whether byte ordering is bigendian" >&5
3542 3586
3543 ac_cv_c_bigendian=unknown 3587 ac_cv_c_bigendian=unknown
3544 # See if sys/param.h defines the BYTE_ORDER macro. 3588 # See if sys/param.h defines the BYTE_ORDER macro.
3545 cat > conftest.$ac_ext <<EOF 3589 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure" 3590 #line 3591 "configure"
3547 #include "confdefs.h" 3591 #include "confdefs.h"
3548 #include <sys/types.h> 3592 #include <sys/types.h>
3549 #include <sys/param.h> 3593 #include <sys/param.h>
3550 int main() { 3594 int main() {
3551 3595
3552 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3596 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3553 bogus endian macros 3597 bogus endian macros
3554 #endif 3598 #endif
3555 ; return 0; } 3599 ; return 0; }
3556 EOF 3600 EOF
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3558 rm -rf conftest* 3602 rm -rf conftest*
3559 # It does; now see whether it defined to BIG_ENDIAN or not. 3603 # It does; now see whether it defined to BIG_ENDIAN or not.
3560 cat > conftest.$ac_ext <<EOF 3604 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure" 3605 #line 3606 "configure"
3562 #include "confdefs.h" 3606 #include "confdefs.h"
3563 #include <sys/types.h> 3607 #include <sys/types.h>
3564 #include <sys/param.h> 3608 #include <sys/param.h>
3565 int main() { 3609 int main() {
3566 3610
3567 #if BYTE_ORDER != BIG_ENDIAN 3611 #if BYTE_ORDER != BIG_ENDIAN
3568 not big endian 3612 not big endian
3569 #endif 3613 #endif
3570 ; return 0; } 3614 ; return 0; }
3571 EOF 3615 EOF
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3573 rm -rf conftest* 3617 rm -rf conftest*
3574 ac_cv_c_bigendian=yes 3618 ac_cv_c_bigendian=yes
3575 else 3619 else
3576 echo "configure: failed program was:" >&5 3620 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5 3621 cat conftest.$ac_ext >&5
3584 cat conftest.$ac_ext >&5 3628 cat conftest.$ac_ext >&5
3585 fi 3629 fi
3586 rm -f conftest* 3630 rm -f conftest*
3587 if test $ac_cv_c_bigendian = unknown; then 3631 if test $ac_cv_c_bigendian = unknown; then
3588 cat > conftest.$ac_ext <<EOF 3632 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure" 3633 #line 3634 "configure"
3590 #include "confdefs.h" 3634 #include "confdefs.h"
3591 main () { 3635 main () {
3592 /* Are we little or big endian? From Harbison&Steele. */ 3636 /* Are we little or big endian? From Harbison&Steele. */
3593 union 3637 union
3594 { 3638 {
3597 } u; 3641 } u;
3598 u.l = 1; 3642 u.l = 1;
3599 exit (u.c[sizeof (long) - 1] == 1); 3643 exit (u.c[sizeof (long) - 1] == 1);
3600 } 3644 }
3601 EOF 3645 EOF
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3603 then 3647 then
3604 ac_cv_c_bigendian=no 3648 ac_cv_c_bigendian=no
3605 else 3649 else
3606 echo "configure: failed program was:" >&5 3650 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5 3651 cat conftest.$ac_ext >&5
3623 3667
3624 fi 3668 fi
3625 3669
3626 3670
3627 echo $ac_n "checking size of short""... $ac_c" 1>&6 3671 echo $ac_n "checking size of short""... $ac_c" 1>&6
3628 echo "configure:3629: checking size of short" >&5 3672 echo "configure:3673: checking size of short" >&5
3629 3673
3630 cat > conftest.$ac_ext <<EOF 3674 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure" 3675 #line 3676 "configure"
3632 #include "confdefs.h" 3676 #include "confdefs.h"
3633 #include <stdio.h> 3677 #include <stdio.h>
3634 main() 3678 main()
3635 { 3679 {
3636 FILE *f=fopen("conftestval", "w"); 3680 FILE *f=fopen("conftestval", "w");
3637 if (!f) exit(1); 3681 if (!f) exit(1);
3638 fprintf(f, "%d\n", sizeof(short)); 3682 fprintf(f, "%d\n", sizeof(short));
3639 exit(0); 3683 exit(0);
3640 } 3684 }
3641 EOF 3685 EOF
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3643 then 3687 then
3644 ac_cv_sizeof_short=`cat conftestval` 3688 ac_cv_sizeof_short=`cat conftestval`
3645 else 3689 else
3646 echo "configure: failed program was:" >&5 3690 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5 3691 cat conftest.$ac_ext >&5
3664 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3708 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3665 echo "*** PANIC *** Please examine config.log for compilation errors." 3709 echo "*** PANIC *** Please examine config.log for compilation errors."
3666 exit 1 3710 exit 1
3667 fi 3711 fi
3668 echo $ac_n "checking size of int""... $ac_c" 1>&6 3712 echo $ac_n "checking size of int""... $ac_c" 1>&6
3669 echo "configure:3670: checking size of int" >&5 3713 echo "configure:3714: checking size of int" >&5
3670 3714
3671 cat > conftest.$ac_ext <<EOF 3715 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure" 3716 #line 3717 "configure"
3673 #include "confdefs.h" 3717 #include "confdefs.h"
3674 #include <stdio.h> 3718 #include <stdio.h>
3675 main() 3719 main()
3676 { 3720 {
3677 FILE *f=fopen("conftestval", "w"); 3721 FILE *f=fopen("conftestval", "w");
3678 if (!f) exit(1); 3722 if (!f) exit(1);
3679 fprintf(f, "%d\n", sizeof(int)); 3723 fprintf(f, "%d\n", sizeof(int));
3680 exit(0); 3724 exit(0);
3681 } 3725 }
3682 EOF 3726 EOF
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3727 if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3684 then 3728 then
3685 ac_cv_sizeof_int=`cat conftestval` 3729 ac_cv_sizeof_int=`cat conftestval`
3686 else 3730 else
3687 echo "configure: failed program was:" >&5 3731 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5 3732 cat conftest.$ac_ext >&5
3699 EOF 3743 EOF
3700 } 3744 }
3701 3745
3702 3746
3703 echo $ac_n "checking size of long""... $ac_c" 1>&6 3747 echo $ac_n "checking size of long""... $ac_c" 1>&6
3704 echo "configure:3705: checking size of long" >&5 3748 echo "configure:3749: checking size of long" >&5
3705 3749
3706 cat > conftest.$ac_ext <<EOF 3750 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure" 3751 #line 3752 "configure"
3708 #include "confdefs.h" 3752 #include "confdefs.h"
3709 #include <stdio.h> 3753 #include <stdio.h>
3710 main() 3754 main()
3711 { 3755 {
3712 FILE *f=fopen("conftestval", "w"); 3756 FILE *f=fopen("conftestval", "w");
3713 if (!f) exit(1); 3757 if (!f) exit(1);
3714 fprintf(f, "%d\n", sizeof(long)); 3758 fprintf(f, "%d\n", sizeof(long));
3715 exit(0); 3759 exit(0);
3716 } 3760 }
3717 EOF 3761 EOF
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3719 then 3763 then
3720 ac_cv_sizeof_long=`cat conftestval` 3764 ac_cv_sizeof_long=`cat conftestval`
3721 else 3765 else
3722 echo "configure: failed program was:" >&5 3766 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5 3767 cat conftest.$ac_ext >&5
3734 EOF 3778 EOF
3735 } 3779 }
3736 3780
3737 3781
3738 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3782 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3739 echo "configure:3740: checking size of long long" >&5 3783 echo "configure:3784: checking size of long long" >&5
3740 3784
3741 cat > conftest.$ac_ext <<EOF 3785 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure" 3786 #line 3787 "configure"
3743 #include "confdefs.h" 3787 #include "confdefs.h"
3744 #include <stdio.h> 3788 #include <stdio.h>
3745 main() 3789 main()
3746 { 3790 {
3747 FILE *f=fopen("conftestval", "w"); 3791 FILE *f=fopen("conftestval", "w");
3748 if (!f) exit(1); 3792 if (!f) exit(1);
3749 fprintf(f, "%d\n", sizeof(long long)); 3793 fprintf(f, "%d\n", sizeof(long long));
3750 exit(0); 3794 exit(0);
3751 } 3795 }
3752 EOF 3796 EOF
3753 if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3754 then 3798 then
3755 ac_cv_sizeof_long_long=`cat conftestval` 3799 ac_cv_sizeof_long_long=`cat conftestval`
3756 else 3800 else
3757 echo "configure: failed program was:" >&5 3801 echo "configure: failed program was:" >&5
3758 cat conftest.$ac_ext >&5 3802 cat conftest.$ac_ext >&5
3769 EOF 3813 EOF
3770 } 3814 }
3771 3815
3772 3816
3773 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3817 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3774 echo "configure:3775: checking size of void *" >&5 3818 echo "configure:3819: checking size of void *" >&5
3775 3819
3776 cat > conftest.$ac_ext <<EOF 3820 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure" 3821 #line 3822 "configure"
3778 #include "confdefs.h" 3822 #include "confdefs.h"
3779 #include <stdio.h> 3823 #include <stdio.h>
3780 main() 3824 main()
3781 { 3825 {
3782 FILE *f=fopen("conftestval", "w"); 3826 FILE *f=fopen("conftestval", "w");
3783 if (!f) exit(1); 3827 if (!f) exit(1);
3784 fprintf(f, "%d\n", sizeof(void *)); 3828 fprintf(f, "%d\n", sizeof(void *));
3785 exit(0); 3829 exit(0);
3786 } 3830 }
3787 EOF 3831 EOF
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3789 then 3833 then
3790 ac_cv_sizeof_void_p=`cat conftestval` 3834 ac_cv_sizeof_void_p=`cat conftestval`
3791 else 3835 else
3792 echo "configure: failed program was:" >&5 3836 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5 3837 cat conftest.$ac_ext >&5
3805 } 3849 }
3806 3850
3807 3851
3808 3852
3809 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3853 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3810 echo "configure:3811: checking for long file names" >&5 3854 echo "configure:3855: checking for long file names" >&5
3811 3855
3812 ac_cv_sys_long_file_names=yes 3856 ac_cv_sys_long_file_names=yes
3813 # Test for long file names in all the places we know might matter: 3857 # Test for long file names in all the places we know might matter:
3814 # . the current directory, where building will happen 3858 # . the current directory, where building will happen
3815 # $prefix/lib where we will be installing things 3859 # $prefix/lib where we will be installing things
3852 fi 3896 fi
3853 3897
3854 3898
3855 3899
3856 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 3900 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3857 echo "configure:3858: checking for sin in -lm" >&5 3901 echo "configure:3902: checking for sin in -lm" >&5
3858 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 3902 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3859 3903
3860 xe_check_libs=" -lm " 3904 xe_check_libs=" -lm "
3861 cat > conftest.$ac_ext <<EOF 3905 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure" 3906 #line 3907 "configure"
3863 #include "confdefs.h" 3907 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */ 3908 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2 3909 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */ 3910 builtin and then its argument prototype would still apply. */
3867 char sin(); 3911 char sin();
3868 3912
3869 int main() { 3913 int main() {
3870 sin() 3914 sin()
3871 ; return 0; } 3915 ; return 0; }
3872 EOF 3916 EOF
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3874 rm -rf conftest* 3918 rm -rf conftest*
3875 eval "ac_cv_lib_$ac_lib_var=yes" 3919 eval "ac_cv_lib_$ac_lib_var=yes"
3876 else 3920 else
3877 echo "configure: failed program was:" >&5 3921 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5 3922 cat conftest.$ac_ext >&5
3910 EOF 3954 EOF
3911 } 3955 }
3912 3956
3913 3957
3914 cat > conftest.$ac_ext <<EOF 3958 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure" 3959 #line 3960 "configure"
3916 #include "confdefs.h" 3960 #include "confdefs.h"
3917 #include <math.h> 3961 #include <math.h>
3918 int main() { 3962 int main() {
3919 return atanh(1.0) + asinh(1.0) + acosh(1.0); 3963 return atanh(1.0) + asinh(1.0) + acosh(1.0);
3920 ; return 0; } 3964 ; return 0; }
3921 EOF 3965 EOF
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3923 rm -rf conftest* 3967 rm -rf conftest*
3924 { test "$extra_verbose" = "yes" && cat << \EOF 3968 { test "$extra_verbose" = "yes" && cat << \EOF
3925 Defining HAVE_INVERSE_HYPERBOLIC 3969 Defining HAVE_INVERSE_HYPERBOLIC
3926 EOF 3970 EOF
3927 cat >> confdefs.h <<\EOF 3971 cat >> confdefs.h <<\EOF
3934 cat conftest.$ac_ext >&5 3978 cat conftest.$ac_ext >&5
3935 fi 3979 fi
3936 rm -f conftest* 3980 rm -f conftest*
3937 3981
3938 echo "checking type of mail spool file locking" 1>&6 3982 echo "checking type of mail spool file locking" 1>&6
3939 echo "configure:3940: checking type of mail spool file locking" >&5 3983 echo "configure:3984: checking type of mail spool file locking" >&5
3940 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3984 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3941 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3985 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3942 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3986 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3943 Defining REAL_MAIL_USE_LOCKF 3987 Defining REAL_MAIL_USE_LOCKF
3944 EOF 3988 EOF
3958 else mail_locking="dot-locking" 4002 else mail_locking="dot-locking"
3959 fi 4003 fi
3960 4004
3961 4005
3962 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4006 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3963 echo "configure:3964: checking for kstat_open in -lkstat" >&5 4007 echo "configure:4008: checking for kstat_open in -lkstat" >&5
3964 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4008 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3965 4009
3966 xe_check_libs=" -lkstat " 4010 xe_check_libs=" -lkstat "
3967 cat > conftest.$ac_ext <<EOF 4011 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure" 4012 #line 4013 "configure"
3969 #include "confdefs.h" 4013 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */ 4014 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2 4015 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */ 4016 builtin and then its argument prototype would still apply. */
3973 char kstat_open(); 4017 char kstat_open();
3974 4018
3975 int main() { 4019 int main() {
3976 kstat_open() 4020 kstat_open()
3977 ; return 0; } 4021 ; return 0; }
3978 EOF 4022 EOF
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3980 rm -rf conftest* 4024 rm -rf conftest*
3981 eval "ac_cv_lib_$ac_lib_var=yes" 4025 eval "ac_cv_lib_$ac_lib_var=yes"
3982 else 4026 else
3983 echo "configure: failed program was:" >&5 4027 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5 4028 cat conftest.$ac_ext >&5
4008 4052
4009 4053
4010 4054
4011 4055
4012 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4056 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4013 echo "configure:4014: checking for kvm_read in -lkvm" >&5 4057 echo "configure:4058: checking for kvm_read in -lkvm" >&5
4014 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4058 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4015 4059
4016 xe_check_libs=" -lkvm " 4060 xe_check_libs=" -lkvm "
4017 cat > conftest.$ac_ext <<EOF 4061 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure" 4062 #line 4063 "configure"
4019 #include "confdefs.h" 4063 #include "confdefs.h"
4020 /* Override any gcc2 internal prototype to avoid an error. */ 4064 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2 4065 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */ 4066 builtin and then its argument prototype would still apply. */
4023 char kvm_read(); 4067 char kvm_read();
4024 4068
4025 int main() { 4069 int main() {
4026 kvm_read() 4070 kvm_read()
4027 ; return 0; } 4071 ; return 0; }
4028 EOF 4072 EOF
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4030 rm -rf conftest* 4074 rm -rf conftest*
4031 eval "ac_cv_lib_$ac_lib_var=yes" 4075 eval "ac_cv_lib_$ac_lib_var=yes"
4032 else 4076 else
4033 echo "configure: failed program was:" >&5 4077 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5 4078 cat conftest.$ac_ext >&5
4058 4102
4059 4103
4060 4104
4061 4105
4062 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4106 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4063 echo "configure:4064: checking for cma_open in -lpthreads" >&5 4107 echo "configure:4108: checking for cma_open in -lpthreads" >&5
4064 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4108 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4065 4109
4066 xe_check_libs=" -lpthreads " 4110 xe_check_libs=" -lpthreads "
4067 cat > conftest.$ac_ext <<EOF 4111 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure" 4112 #line 4113 "configure"
4069 #include "confdefs.h" 4113 #include "confdefs.h"
4070 /* Override any gcc2 internal prototype to avoid an error. */ 4114 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2 4115 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */ 4116 builtin and then its argument prototype would still apply. */
4073 char cma_open(); 4117 char cma_open();
4074 4118
4075 int main() { 4119 int main() {
4076 cma_open() 4120 cma_open()
4077 ; return 0; } 4121 ; return 0; }
4078 EOF 4122 EOF
4079 if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4080 rm -rf conftest* 4124 rm -rf conftest*
4081 eval "ac_cv_lib_$ac_lib_var=yes" 4125 eval "ac_cv_lib_$ac_lib_var=yes"
4082 else 4126 else
4083 echo "configure: failed program was:" >&5 4127 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5 4128 cat conftest.$ac_ext >&5
4110 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4154 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
4111 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4155 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
4112 fi 4156 fi
4113 4157
4114 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4158 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4115 echo "configure:4116: checking whether the -xildoff compiler flag is required" >&5 4159 echo "configure:4160: checking whether the -xildoff compiler flag is required" >&5
4116 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4160 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4117 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4161 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4118 then echo "$ac_t""no" 1>&6; 4162 then echo "$ac_t""no" 1>&6;
4119 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 4163 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4120 fi 4164 fi
4121 else echo "$ac_t""no" 1>&6 4165 else echo "$ac_t""no" 1>&6
4122 fi 4166 fi
4123 4167
4124 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4168 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4125 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4169 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4126 echo "configure:4127: checking for \"-z ignore\" linker flag" >&5 4170 echo "configure:4171: checking for \"-z ignore\" linker flag" >&5
4127 case "`ld -h 2>&1`" in 4171 case "`ld -h 2>&1`" in
4128 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4172 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4129 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4173 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4130 *) echo "$ac_t""no" 1>&6 ;; 4174 *) echo "$ac_t""no" 1>&6 ;;
4131 esac 4175 esac
4132 fi 4176 fi
4133 4177
4134 4178
4135 echo "checking "for specified window system"" 1>&6 4179 echo "checking "for specified window system"" 1>&6
4136 echo "configure:4137: checking "for specified window system"" >&5 4180 echo "configure:4181: checking "for specified window system"" >&5
4137 4181
4138 if test "$with_x11" != "no"; then 4182 if test "$with_x11" != "no"; then
4139 test "$x_includes $x_libraries" != "NONE NONE" && \ 4183 test "$x_includes $x_libraries" != "NONE NONE" && \
4140 window_system=x11 with_x11=yes 4184 window_system=x11 with_x11=yes
4141 4185
4142 if test "$x_includes $x_libraries" = "NONE NONE"; then 4186
4143 if test -n "$OPENWINHOME" \ 4187 if test "$x_includes $x_libraries" = "NONE NONE" \
4144 -a "$OPENWINHOME" != "/usr/openwin" \ 4188 -a -n "$OPENWINHOME" \
4145 -a -d "$OPENWINHOME"; then 4189 -a "$OPENWINHOME" != "/usr/openwin" \
4190 -a -d "$OPENWINHOME"; then
4146 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib" 4191 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
4147 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include" 4192 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
4148 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include" 4193 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
4149 else 4194 fi
4150 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do 4195
4151 if test -d "$dir/X11"; then x_includes="$dir"; break; fi 4196 if test "$x_includes" = "NONE"; then
4152 done 4197 for dir in "/usr/X11" "/usr/X11R6"; do
4153 if test "$x_includes" != "NONE"; then 4198 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
4154 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do 4199 done
4155 if test -d "$dir"; then x_libraries="$dir"; break; fi 4200 fi
4156 done 4201
4157 fi 4202 if test "$x_libraries" = "NONE"; then
4158 fi 4203 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
4204 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
4205 done
4159 fi 4206 fi
4160 4207
4161 # If we find X, set shell vars x_includes and x_libraries to the 4208 # If we find X, set shell vars x_includes and x_libraries to the
4162 # paths, otherwise set no_x=yes. 4209 # paths, otherwise set no_x=yes.
4163 # Uses ac_ vars as temps to allow command line to override cache and checks. 4210 # Uses ac_ vars as temps to allow command line to override cache and checks.
4164 # --without-x overrides everything else, but does not touch the cache. 4211 # --without-x overrides everything else, but does not touch the cache.
4165 echo $ac_n "checking for X""... $ac_c" 1>&6 4212 echo $ac_n "checking for X""... $ac_c" 1>&6
4166 echo "configure:4167: checking for X" >&5 4213 echo "configure:4214: checking for X" >&5
4167 4214
4168 # Check whether --with-x or --without-x was given. 4215 # Check whether --with-x or --without-x was given.
4169 if test "${with_x+set}" = set; then 4216 if test "${with_x+set}" = set; then
4170 withval="$with_x" 4217 withval="$with_x"
4171 : 4218 :
4221 # Guess where to find include files, by looking for this one X11 .h file. 4268 # Guess where to find include files, by looking for this one X11 .h file.
4222 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4269 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4223 4270
4224 # First, try using that file with no special directory specified. 4271 # First, try using that file with no special directory specified.
4225 cat > conftest.$ac_ext <<EOF 4272 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure" 4273 #line 4274 "configure"
4227 #include "confdefs.h" 4274 #include "confdefs.h"
4228 #include <$x_direct_test_include> 4275 #include <$x_direct_test_include>
4229 EOF 4276 EOF
4230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4231 { (eval echo configure:4232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4278 { (eval echo configure:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4232 ac_err=`grep -v '^ *+' conftest.out` 4279 ac_err=`grep -v '^ *+' conftest.out`
4233 if test -z "$ac_err"; then 4280 if test -z "$ac_err"; then
4234 rm -rf conftest* 4281 rm -rf conftest*
4235 # We can compile using X headers with no special include directory. 4282 # We can compile using X headers with no special include directory.
4236 ac_x_includes= 4283 ac_x_includes=
4295 # See if we find them without any special options. 4342 # See if we find them without any special options.
4296 # Don't add to $LIBS permanently. 4343 # Don't add to $LIBS permanently.
4297 ac_save_LIBS="$LIBS" 4344 ac_save_LIBS="$LIBS"
4298 LIBS="-l$x_direct_test_library $LIBS" 4345 LIBS="-l$x_direct_test_library $LIBS"
4299 cat > conftest.$ac_ext <<EOF 4346 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure" 4347 #line 4348 "configure"
4301 #include "confdefs.h" 4348 #include "confdefs.h"
4302 4349
4303 int main() { 4350 int main() {
4304 ${x_direct_test_function}() 4351 ${x_direct_test_function}()
4305 ; return 0; } 4352 ; return 0; }
4306 EOF 4353 EOF
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4308 rm -rf conftest* 4355 rm -rf conftest*
4309 LIBS="$ac_save_LIBS" 4356 LIBS="$ac_save_LIBS"
4310 # We can link X programs with no special library path. 4357 # We can link X programs with no special library path.
4311 ac_x_libraries= 4358 ac_x_libraries=
4312 else 4359 else
4411 # For Solaris; some versions of Sun CC require a space after -R and 4458 # For Solaris; some versions of Sun CC require a space after -R and
4412 # others require no space. Words are not sufficient . . . . 4459 # others require no space. Words are not sufficient . . . .
4413 case "`(uname -sr) 2>/dev/null`" in 4460 case "`(uname -sr) 2>/dev/null`" in
4414 "SunOS 5"*) 4461 "SunOS 5"*)
4415 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4462 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4416 echo "configure:4417: checking whether -R must be followed by a space" >&5 4463 echo "configure:4464: checking whether -R must be followed by a space" >&5
4417 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4464 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4418 cat > conftest.$ac_ext <<EOF 4465 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure" 4466 #line 4467 "configure"
4420 #include "confdefs.h" 4467 #include "confdefs.h"
4421 4468
4422 int main() { 4469 int main() {
4423 4470
4424 ; return 0; } 4471 ; return 0; }
4425 EOF 4472 EOF
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4427 rm -rf conftest* 4474 rm -rf conftest*
4428 ac_R_nospace=yes 4475 ac_R_nospace=yes
4429 else 4476 else
4430 echo "configure: failed program was:" >&5 4477 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5 4478 cat conftest.$ac_ext >&5
4437 echo "$ac_t""no" 1>&6 4484 echo "$ac_t""no" 1>&6
4438 X_LIBS="$X_LIBS -R$x_libraries" 4485 X_LIBS="$X_LIBS -R$x_libraries"
4439 else 4486 else
4440 LIBS="$ac_xsave_LIBS -R $x_libraries" 4487 LIBS="$ac_xsave_LIBS -R $x_libraries"
4441 cat > conftest.$ac_ext <<EOF 4488 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure" 4489 #line 4490 "configure"
4443 #include "confdefs.h" 4490 #include "confdefs.h"
4444 4491
4445 int main() { 4492 int main() {
4446 4493
4447 ; return 0; } 4494 ; return 0; }
4448 EOF 4495 EOF
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4450 rm -rf conftest* 4497 rm -rf conftest*
4451 ac_R_space=yes 4498 ac_R_space=yes
4452 else 4499 else
4453 echo "configure: failed program was:" >&5 4500 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5 4501 cat conftest.$ac_ext >&5
4480 if test "$with_dnet" = "no" ; then 4527 if test "$with_dnet" = "no" ; then
4481 ac_cv_lib_dnet_dnet_ntoa=no 4528 ac_cv_lib_dnet_dnet_ntoa=no
4482 else 4529 else
4483 4530
4484 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4531 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4485 echo "configure:4486: checking for dnet_ntoa in -ldnet" >&5 4532 echo "configure:4533: checking for dnet_ntoa in -ldnet" >&5
4486 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4533 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4487 4534
4488 xe_check_libs=" -ldnet " 4535 xe_check_libs=" -ldnet "
4489 cat > conftest.$ac_ext <<EOF 4536 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure" 4537 #line 4538 "configure"
4491 #include "confdefs.h" 4538 #include "confdefs.h"
4492 /* Override any gcc2 internal prototype to avoid an error. */ 4539 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2 4540 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */ 4541 builtin and then its argument prototype would still apply. */
4495 char dnet_ntoa(); 4542 char dnet_ntoa();
4496 4543
4497 int main() { 4544 int main() {
4498 dnet_ntoa() 4545 dnet_ntoa()
4499 ; return 0; } 4546 ; return 0; }
4500 EOF 4547 EOF
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4502 rm -rf conftest* 4549 rm -rf conftest*
4503 eval "ac_cv_lib_$ac_lib_var=yes" 4550 eval "ac_cv_lib_$ac_lib_var=yes"
4504 else 4551 else
4505 echo "configure: failed program was:" >&5 4552 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5 4553 cat conftest.$ac_ext >&5
4520 fi 4567 fi
4521 4568
4522 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4569 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4523 4570
4524 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4571 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4525 echo "configure:4526: checking for dnet_ntoa in -ldnet_stub" >&5 4572 echo "configure:4573: checking for dnet_ntoa in -ldnet_stub" >&5
4526 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4573 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4527 4574
4528 xe_check_libs=" -ldnet_stub " 4575 xe_check_libs=" -ldnet_stub "
4529 cat > conftest.$ac_ext <<EOF 4576 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure" 4577 #line 4578 "configure"
4531 #include "confdefs.h" 4578 #include "confdefs.h"
4532 /* Override any gcc2 internal prototype to avoid an error. */ 4579 /* Override any gcc2 internal prototype to avoid an error. */
4533 /* We use char because int might match the return type of a gcc2 4580 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */ 4581 builtin and then its argument prototype would still apply. */
4535 char dnet_ntoa(); 4582 char dnet_ntoa();
4536 4583
4537 int main() { 4584 int main() {
4538 dnet_ntoa() 4585 dnet_ntoa()
4539 ; return 0; } 4586 ; return 0; }
4540 EOF 4587 EOF
4541 if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4542 rm -rf conftest* 4589 rm -rf conftest*
4543 eval "ac_cv_lib_$ac_lib_var=yes" 4590 eval "ac_cv_lib_$ac_lib_var=yes"
4544 else 4591 else
4545 echo "configure: failed program was:" >&5 4592 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5 4593 cat conftest.$ac_ext >&5
4565 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4612 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4566 # needs -lnsl. 4613 # needs -lnsl.
4567 # The nsl library prevents programs from opening the X display 4614 # The nsl library prevents programs from opening the X display
4568 # on Irix 5.2, according to dickey@clark.net. 4615 # on Irix 5.2, according to dickey@clark.net.
4569 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4616 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4570 echo "configure:4571: checking for gethostbyname" >&5 4617 echo "configure:4618: checking for gethostbyname" >&5
4571 4618
4572 cat > conftest.$ac_ext <<EOF 4619 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure" 4620 #line 4621 "configure"
4574 #include "confdefs.h" 4621 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes, 4622 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char gethostbyname(); below. */ 4623 which can conflict with char gethostbyname(); below. */
4577 #include <assert.h> 4624 #include <assert.h>
4578 /* Override any gcc2 internal prototype to avoid an error. */ 4625 /* Override any gcc2 internal prototype to avoid an error. */
4591 gethostbyname(); 4638 gethostbyname();
4592 #endif 4639 #endif
4593 4640
4594 ; return 0; } 4641 ; return 0; }
4595 EOF 4642 EOF
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4597 rm -rf conftest* 4644 rm -rf conftest*
4598 eval "ac_cv_func_gethostbyname=yes" 4645 eval "ac_cv_func_gethostbyname=yes"
4599 else 4646 else
4600 echo "configure: failed program was:" >&5 4647 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5 4648 cat conftest.$ac_ext >&5
4612 fi 4659 fi
4613 4660
4614 if test $ac_cv_func_gethostbyname = no; then 4661 if test $ac_cv_func_gethostbyname = no; then
4615 4662
4616 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4663 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4617 echo "configure:4618: checking for gethostbyname in -lnsl" >&5 4664 echo "configure:4665: checking for gethostbyname in -lnsl" >&5
4618 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4665 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4619 4666
4620 xe_check_libs=" -lnsl " 4667 xe_check_libs=" -lnsl "
4621 cat > conftest.$ac_ext <<EOF 4668 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure" 4669 #line 4670 "configure"
4623 #include "confdefs.h" 4670 #include "confdefs.h"
4624 /* Override any gcc2 internal prototype to avoid an error. */ 4671 /* Override any gcc2 internal prototype to avoid an error. */
4625 /* We use char because int might match the return type of a gcc2 4672 /* We use char because int might match the return type of a gcc2
4626 builtin and then its argument prototype would still apply. */ 4673 builtin and then its argument prototype would still apply. */
4627 char gethostbyname(); 4674 char gethostbyname();
4628 4675
4629 int main() { 4676 int main() {
4630 gethostbyname() 4677 gethostbyname()
4631 ; return 0; } 4678 ; return 0; }
4632 EOF 4679 EOF
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4634 rm -rf conftest* 4681 rm -rf conftest*
4635 eval "ac_cv_lib_$ac_lib_var=yes" 4682 eval "ac_cv_lib_$ac_lib_var=yes"
4636 else 4683 else
4637 echo "configure: failed program was:" >&5 4684 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5 4685 cat conftest.$ac_ext >&5
4658 # on later versions), says simon@lia.di.epfl.ch: it contains 4705 # on later versions), says simon@lia.di.epfl.ch: it contains
4659 # gethostby* variants that don't use the nameserver (or something). 4706 # gethostby* variants that don't use the nameserver (or something).
4660 # -lsocket must be given before -lnsl if both are needed. 4707 # -lsocket must be given before -lnsl if both are needed.
4661 # We assume that if connect needs -lnsl, so does gethostbyname. 4708 # We assume that if connect needs -lnsl, so does gethostbyname.
4662 echo $ac_n "checking for connect""... $ac_c" 1>&6 4709 echo $ac_n "checking for connect""... $ac_c" 1>&6
4663 echo "configure:4664: checking for connect" >&5 4710 echo "configure:4711: checking for connect" >&5
4664 4711
4665 cat > conftest.$ac_ext <<EOF 4712 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure" 4713 #line 4714 "configure"
4667 #include "confdefs.h" 4714 #include "confdefs.h"
4668 /* System header to define __stub macros and hopefully few prototypes, 4715 /* System header to define __stub macros and hopefully few prototypes,
4669 which can conflict with char connect(); below. */ 4716 which can conflict with char connect(); below. */
4670 #include <assert.h> 4717 #include <assert.h>
4671 /* Override any gcc2 internal prototype to avoid an error. */ 4718 /* Override any gcc2 internal prototype to avoid an error. */
4684 connect(); 4731 connect();
4685 #endif 4732 #endif
4686 4733
4687 ; return 0; } 4734 ; return 0; }
4688 EOF 4735 EOF
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4690 rm -rf conftest* 4737 rm -rf conftest*
4691 eval "ac_cv_func_connect=yes" 4738 eval "ac_cv_func_connect=yes"
4692 else 4739 else
4693 echo "configure: failed program was:" >&5 4740 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5 4741 cat conftest.$ac_ext >&5
4707 if test $ac_cv_func_connect = no; then 4754 if test $ac_cv_func_connect = no; then
4708 4755
4709 xe_msg_checking="for connect in -lsocket" 4756 xe_msg_checking="for connect in -lsocket"
4710 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4757 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4711 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4758 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4712 echo "configure:4713: checking "$xe_msg_checking"" >&5 4759 echo "configure:4760: checking "$xe_msg_checking"" >&5
4713 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4760 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4714 4761
4715 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4762 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4716 cat > conftest.$ac_ext <<EOF 4763 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure" 4764 #line 4765 "configure"
4718 #include "confdefs.h" 4765 #include "confdefs.h"
4719 /* Override any gcc2 internal prototype to avoid an error. */ 4766 /* Override any gcc2 internal prototype to avoid an error. */
4720 /* We use char because int might match the return type of a gcc2 4767 /* We use char because int might match the return type of a gcc2
4721 builtin and then its argument prototype would still apply. */ 4768 builtin and then its argument prototype would still apply. */
4722 char connect(); 4769 char connect();
4723 4770
4724 int main() { 4771 int main() {
4725 connect() 4772 connect()
4726 ; return 0; } 4773 ; return 0; }
4727 EOF 4774 EOF
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4775 if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4729 rm -rf conftest* 4776 rm -rf conftest*
4730 eval "ac_cv_lib_$ac_lib_var=yes" 4777 eval "ac_cv_lib_$ac_lib_var=yes"
4731 else 4778 else
4732 echo "configure: failed program was:" >&5 4779 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5 4780 cat conftest.$ac_ext >&5
4747 4794
4748 fi 4795 fi
4749 4796
4750 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4797 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4751 echo $ac_n "checking for remove""... $ac_c" 1>&6 4798 echo $ac_n "checking for remove""... $ac_c" 1>&6
4752 echo "configure:4753: checking for remove" >&5 4799 echo "configure:4800: checking for remove" >&5
4753 4800
4754 cat > conftest.$ac_ext <<EOF 4801 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure" 4802 #line 4803 "configure"
4756 #include "confdefs.h" 4803 #include "confdefs.h"
4757 /* System header to define __stub macros and hopefully few prototypes, 4804 /* System header to define __stub macros and hopefully few prototypes,
4758 which can conflict with char remove(); below. */ 4805 which can conflict with char remove(); below. */
4759 #include <assert.h> 4806 #include <assert.h>
4760 /* Override any gcc2 internal prototype to avoid an error. */ 4807 /* Override any gcc2 internal prototype to avoid an error. */
4773 remove(); 4820 remove();
4774 #endif 4821 #endif
4775 4822
4776 ; return 0; } 4823 ; return 0; }
4777 EOF 4824 EOF
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4779 rm -rf conftest* 4826 rm -rf conftest*
4780 eval "ac_cv_func_remove=yes" 4827 eval "ac_cv_func_remove=yes"
4781 else 4828 else
4782 echo "configure: failed program was:" >&5 4829 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5 4830 cat conftest.$ac_ext >&5
4794 fi 4841 fi
4795 4842
4796 if test $ac_cv_func_remove = no; then 4843 if test $ac_cv_func_remove = no; then
4797 4844
4798 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4845 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4799 echo "configure:4800: checking for remove in -lposix" >&5 4846 echo "configure:4847: checking for remove in -lposix" >&5
4800 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4847 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4801 4848
4802 xe_check_libs=" -lposix " 4849 xe_check_libs=" -lposix "
4803 cat > conftest.$ac_ext <<EOF 4850 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure" 4851 #line 4852 "configure"
4805 #include "confdefs.h" 4852 #include "confdefs.h"
4806 /* Override any gcc2 internal prototype to avoid an error. */ 4853 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2 4854 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */ 4855 builtin and then its argument prototype would still apply. */
4809 char remove(); 4856 char remove();
4810 4857
4811 int main() { 4858 int main() {
4812 remove() 4859 remove()
4813 ; return 0; } 4860 ; return 0; }
4814 EOF 4861 EOF
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4816 rm -rf conftest* 4863 rm -rf conftest*
4817 eval "ac_cv_lib_$ac_lib_var=yes" 4864 eval "ac_cv_lib_$ac_lib_var=yes"
4818 else 4865 else
4819 echo "configure: failed program was:" >&5 4866 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5 4867 cat conftest.$ac_ext >&5
4834 4881
4835 fi 4882 fi
4836 4883
4837 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4884 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4838 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4885 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4839 echo "configure:4840: checking for shmat" >&5 4886 echo "configure:4887: checking for shmat" >&5
4840 4887
4841 cat > conftest.$ac_ext <<EOF 4888 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure" 4889 #line 4890 "configure"
4843 #include "confdefs.h" 4890 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes, 4891 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char shmat(); below. */ 4892 which can conflict with char shmat(); below. */
4846 #include <assert.h> 4893 #include <assert.h>
4847 /* Override any gcc2 internal prototype to avoid an error. */ 4894 /* Override any gcc2 internal prototype to avoid an error. */
4860 shmat(); 4907 shmat();
4861 #endif 4908 #endif
4862 4909
4863 ; return 0; } 4910 ; return 0; }
4864 EOF 4911 EOF
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4866 rm -rf conftest* 4913 rm -rf conftest*
4867 eval "ac_cv_func_shmat=yes" 4914 eval "ac_cv_func_shmat=yes"
4868 else 4915 else
4869 echo "configure: failed program was:" >&5 4916 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5 4917 cat conftest.$ac_ext >&5
4881 fi 4928 fi
4882 4929
4883 if test $ac_cv_func_shmat = no; then 4930 if test $ac_cv_func_shmat = no; then
4884 4931
4885 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4932 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4886 echo "configure:4887: checking for shmat in -lipc" >&5 4933 echo "configure:4934: checking for shmat in -lipc" >&5
4887 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4934 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4888 4935
4889 xe_check_libs=" -lipc " 4936 xe_check_libs=" -lipc "
4890 cat > conftest.$ac_ext <<EOF 4937 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure" 4938 #line 4939 "configure"
4892 #include "confdefs.h" 4939 #include "confdefs.h"
4893 /* Override any gcc2 internal prototype to avoid an error. */ 4940 /* Override any gcc2 internal prototype to avoid an error. */
4894 /* We use char because int might match the return type of a gcc2 4941 /* We use char because int might match the return type of a gcc2
4895 builtin and then its argument prototype would still apply. */ 4942 builtin and then its argument prototype would still apply. */
4896 char shmat(); 4943 char shmat();
4897 4944
4898 int main() { 4945 int main() {
4899 shmat() 4946 shmat()
4900 ; return 0; } 4947 ; return 0; }
4901 EOF 4948 EOF
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4903 rm -rf conftest* 4950 rm -rf conftest*
4904 eval "ac_cv_lib_$ac_lib_var=yes" 4951 eval "ac_cv_lib_$ac_lib_var=yes"
4905 else 4952 else
4906 echo "configure: failed program was:" >&5 4953 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5 4954 cat conftest.$ac_ext >&5
4931 # These have to be linked with before -lX11, unlike the other 4978 # These have to be linked with before -lX11, unlike the other
4932 # libraries we check for below, so use a different variable. 4979 # libraries we check for below, so use a different variable.
4933 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4980 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4934 4981
4935 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4982 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4936 echo "configure:4937: checking for IceConnectionNumber in -lICE" >&5 4983 echo "configure:4984: checking for IceConnectionNumber in -lICE" >&5
4937 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4984 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4938 4985
4939 xe_check_libs=" -lICE " 4986 xe_check_libs=" -lICE "
4940 cat > conftest.$ac_ext <<EOF 4987 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure" 4988 #line 4989 "configure"
4942 #include "confdefs.h" 4989 #include "confdefs.h"
4943 /* Override any gcc2 internal prototype to avoid an error. */ 4990 /* Override any gcc2 internal prototype to avoid an error. */
4944 /* We use char because int might match the return type of a gcc2 4991 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */ 4992 builtin and then its argument prototype would still apply. */
4946 char IceConnectionNumber(); 4993 char IceConnectionNumber();
4947 4994
4948 int main() { 4995 int main() {
4949 IceConnectionNumber() 4996 IceConnectionNumber()
4950 ; return 0; } 4997 ; return 0; }
4951 EOF 4998 EOF
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4999 if { (eval echo configure:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4953 rm -rf conftest* 5000 rm -rf conftest*
4954 eval "ac_cv_lib_$ac_lib_var=yes" 5001 eval "ac_cv_lib_$ac_lib_var=yes"
4955 else 5002 else
4956 echo "configure: failed program was:" >&5 5003 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5 5004 cat conftest.$ac_ext >&5
5068 eval "$xe_add_unique_runpath_dir"; 5115 eval "$xe_add_unique_runpath_dir";
5069 fi 5116 fi
5070 fi 5117 fi
5071 if test -n "$runpath"; then 5118 if test -n "$runpath"; then
5072 ld_switch_run="${dash_r}${runpath}" 5119 ld_switch_run="${dash_r}${runpath}"
5120
5121 if test "$GCC" = "yes"; then
5122 set x $ld_switch_run; shift; ld_switch_run=""
5123 while test -n "$1"; do
5124 case $1 in
5125 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
5126 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
5127 -Xlinker* ) ;;
5128 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
5129 esac
5130 shift
5131 done
5132 fi
5073 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 5133 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5074 fi 5134 fi
5075 fi 5135 fi
5076 5136
5077 5137
5101 EOF 5161 EOF
5102 } 5162 }
5103 5163
5104 5164
5105 echo "checking for X defines extracted by xmkmf" 1>&6 5165 echo "checking for X defines extracted by xmkmf" 1>&6
5106 echo "configure:5107: checking for X defines extracted by xmkmf" >&5 5166 echo "configure:5167: checking for X defines extracted by xmkmf" >&5
5107 rm -fr conftestdir 5167 rm -fr conftestdir
5108 if mkdir conftestdir; then 5168 if mkdir conftestdir; then
5109 cd conftestdir 5169 cd conftestdir
5110 cat > Imakefile <<'EOF' 5170 cat > Imakefile <<'EOF'
5111 xetest: 5171 xetest:
5133 done 5193 done
5134 fi 5194 fi
5135 5195
5136 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5196 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5137 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5197 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5138 echo "configure:5139: checking for X11/Intrinsic.h" >&5 5198 echo "configure:5199: checking for X11/Intrinsic.h" >&5
5139 5199
5140 cat > conftest.$ac_ext <<EOF 5200 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure" 5201 #line 5202 "configure"
5142 #include "confdefs.h" 5202 #include "confdefs.h"
5143 #include <X11/Intrinsic.h> 5203 #include <X11/Intrinsic.h>
5144 EOF 5204 EOF
5145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5146 { (eval echo configure:5147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5206 { (eval echo configure:5207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5147 ac_err=`grep -v '^ *+' conftest.out` 5207 ac_err=`grep -v '^ *+' conftest.out`
5148 if test -z "$ac_err"; then 5208 if test -z "$ac_err"; then
5149 rm -rf conftest* 5209 rm -rf conftest*
5150 eval "ac_cv_header_$ac_safe=yes" 5210 eval "ac_cv_header_$ac_safe=yes"
5151 else 5211 else
5165 fi 5225 fi
5166 5226
5167 5227
5168 5228
5169 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5229 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5170 echo "configure:5171: checking for XOpenDisplay in -lX11" >&5 5230 echo "configure:5231: checking for XOpenDisplay in -lX11" >&5
5171 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5231 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5172 5232
5173 xe_check_libs=" -lX11 " 5233 xe_check_libs=" -lX11 "
5174 cat > conftest.$ac_ext <<EOF 5234 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure" 5235 #line 5236 "configure"
5176 #include "confdefs.h" 5236 #include "confdefs.h"
5177 /* Override any gcc2 internal prototype to avoid an error. */ 5237 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2 5238 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */ 5239 builtin and then its argument prototype would still apply. */
5180 char XOpenDisplay(); 5240 char XOpenDisplay();
5181 5241
5182 int main() { 5242 int main() {
5183 XOpenDisplay() 5243 XOpenDisplay()
5184 ; return 0; } 5244 ; return 0; }
5185 EOF 5245 EOF
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5246 if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5187 rm -rf conftest* 5247 rm -rf conftest*
5188 eval "ac_cv_lib_$ac_lib_var=yes" 5248 eval "ac_cv_lib_$ac_lib_var=yes"
5189 else 5249 else
5190 echo "configure: failed program was:" >&5 5250 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5 5251 cat conftest.$ac_ext >&5
5206 if test "$have_lib_x11" != "yes"; then 5266 if test "$have_lib_x11" != "yes"; then
5207 5267
5208 xe_msg_checking="for XGetFontProperty in -lX11" 5268 xe_msg_checking="for XGetFontProperty in -lX11"
5209 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5269 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5210 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5270 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5211 echo "configure:5212: checking "$xe_msg_checking"" >&5 5271 echo "configure:5272: checking "$xe_msg_checking"" >&5
5212 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5272 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5213 5273
5214 xe_check_libs=" -lX11 -b i486-linuxaout" 5274 xe_check_libs=" -lX11 -b i486-linuxaout"
5215 cat > conftest.$ac_ext <<EOF 5275 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure" 5276 #line 5277 "configure"
5217 #include "confdefs.h" 5277 #include "confdefs.h"
5218 /* Override any gcc2 internal prototype to avoid an error. */ 5278 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2 5279 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */ 5280 builtin and then its argument prototype would still apply. */
5221 char XGetFontProperty(); 5281 char XGetFontProperty();
5222 5282
5223 int main() { 5283 int main() {
5224 XGetFontProperty() 5284 XGetFontProperty()
5225 ; return 0; } 5285 ; return 0; }
5226 EOF 5286 EOF
5227 if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5228 rm -rf conftest* 5288 rm -rf conftest*
5229 eval "ac_cv_lib_$ac_lib_var=yes" 5289 eval "ac_cv_lib_$ac_lib_var=yes"
5230 else 5290 else
5231 echo "configure: failed program was:" >&5 5291 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5 5292 cat conftest.$ac_ext >&5
5249 libs_x="-lX11" 5309 libs_x="-lX11"
5250 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5310 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5251 5311
5252 5312
5253 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5313 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5254 echo "configure:5255: checking for XShapeSelectInput in -lXext" >&5 5314 echo "configure:5315: checking for XShapeSelectInput in -lXext" >&5
5255 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5315 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5256 5316
5257 xe_check_libs=" -lXext " 5317 xe_check_libs=" -lXext "
5258 cat > conftest.$ac_ext <<EOF 5318 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure" 5319 #line 5320 "configure"
5260 #include "confdefs.h" 5320 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */ 5321 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2 5322 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */ 5323 builtin and then its argument prototype would still apply. */
5264 char XShapeSelectInput(); 5324 char XShapeSelectInput();
5265 5325
5266 int main() { 5326 int main() {
5267 XShapeSelectInput() 5327 XShapeSelectInput()
5268 ; return 0; } 5328 ; return 0; }
5269 EOF 5329 EOF
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5330 if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5271 rm -rf conftest* 5331 rm -rf conftest*
5272 eval "ac_cv_lib_$ac_lib_var=yes" 5332 eval "ac_cv_lib_$ac_lib_var=yes"
5273 else 5333 else
5274 echo "configure: failed program was:" >&5 5334 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5 5335 cat conftest.$ac_ext >&5
5288 5348
5289 5349
5290 5350
5291 5351
5292 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5352 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5293 echo "configure:5294: checking for XtOpenDisplay in -lXt" >&5 5353 echo "configure:5354: checking for XtOpenDisplay in -lXt" >&5
5294 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5354 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5295 5355
5296 xe_check_libs=" -lXt " 5356 xe_check_libs=" -lXt "
5297 cat > conftest.$ac_ext <<EOF 5357 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure" 5358 #line 5359 "configure"
5299 #include "confdefs.h" 5359 #include "confdefs.h"
5300 /* Override any gcc2 internal prototype to avoid an error. */ 5360 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2 5361 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */ 5362 builtin and then its argument prototype would still apply. */
5303 char XtOpenDisplay(); 5363 char XtOpenDisplay();
5304 5364
5305 int main() { 5365 int main() {
5306 XtOpenDisplay() 5366 XtOpenDisplay()
5307 ; return 0; } 5367 ; return 0; }
5308 EOF 5368 EOF
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5310 rm -rf conftest* 5370 rm -rf conftest*
5311 eval "ac_cv_lib_$ac_lib_var=yes" 5371 eval "ac_cv_lib_$ac_lib_var=yes"
5312 else 5372 else
5313 echo "configure: failed program was:" >&5 5373 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5 5374 cat conftest.$ac_ext >&5
5327 fi 5387 fi
5328 5388
5329 5389
5330 5390
5331 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5391 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5332 echo "configure:5333: checking the version of X11 being used" >&5 5392 echo "configure:5393: checking the version of X11 being used" >&5
5333 cat > conftest.$ac_ext <<EOF 5393 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure" 5394 #line 5395 "configure"
5335 #include "confdefs.h" 5395 #include "confdefs.h"
5336 #include <X11/Intrinsic.h> 5396 #include <X11/Intrinsic.h>
5337 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5397 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5338 EOF 5398 EOF
5339 if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5340 then 5400 then
5341 ./conftest foobar; x11_release=$? 5401 ./conftest foobar; x11_release=$?
5342 else 5402 else
5343 echo "configure: failed program was:" >&5 5403 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5 5404 cat conftest.$ac_ext >&5
5358 5418
5359 for ac_hdr in X11/Xlocale.h 5419 for ac_hdr in X11/Xlocale.h
5360 do 5420 do
5361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5363 echo "configure:5364: checking for $ac_hdr" >&5 5423 echo "configure:5424: checking for $ac_hdr" >&5
5364 5424
5365 cat > conftest.$ac_ext <<EOF 5425 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure" 5426 #line 5427 "configure"
5367 #include "confdefs.h" 5427 #include "confdefs.h"
5368 #include <$ac_hdr> 5428 #include <$ac_hdr>
5369 EOF 5429 EOF
5370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5371 { (eval echo configure:5372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5431 { (eval echo configure:5432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5372 ac_err=`grep -v '^ *+' conftest.out` 5432 ac_err=`grep -v '^ *+' conftest.out`
5373 if test -z "$ac_err"; then 5433 if test -z "$ac_err"; then
5374 rm -rf conftest* 5434 rm -rf conftest*
5375 eval "ac_cv_header_$ac_safe=yes" 5435 eval "ac_cv_header_$ac_safe=yes"
5376 else 5436 else
5397 fi 5457 fi
5398 done 5458 done
5399 5459
5400 5460
5401 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5461 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5402 echo "configure:5403: checking for XFree86" >&5 5462 echo "configure:5463: checking for XFree86" >&5
5403 if test -d "/usr/X386/include" -o \ 5463 if test -d "/usr/X386/include" -o \
5404 -f "/etc/XF86Config" -o \ 5464 -f "/etc/XF86Config" -o \
5405 -f "/etc/X11/XF86Config" -o \ 5465 -f "/etc/X11/XF86Config" -o \
5406 -f "/usr/X11R6/lib/X11/XF86Config"; then 5466 -f "/usr/X11R6/lib/X11/XF86Config"; then
5407 echo "$ac_t""yes" 1>&6 5467 echo "$ac_t""yes" 1>&6
5417 echo "$ac_t""no" 1>&6 5477 echo "$ac_t""no" 1>&6
5418 fi 5478 fi
5419 5479
5420 test -z "$with_xmu" && { 5480 test -z "$with_xmu" && {
5421 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5481 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5422 echo "configure:5423: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5482 echo "configure:5483: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5423 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5483 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5424 5484
5425 xe_check_libs=" -lXmu " 5485 xe_check_libs=" -lXmu "
5426 cat > conftest.$ac_ext <<EOF 5486 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure" 5487 #line 5488 "configure"
5428 #include "confdefs.h" 5488 #include "confdefs.h"
5429 /* Override any gcc2 internal prototype to avoid an error. */ 5489 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2 5490 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */ 5491 builtin and then its argument prototype would still apply. */
5432 char XmuReadBitmapDataFromFile(); 5492 char XmuReadBitmapDataFromFile();
5433 5493
5434 int main() { 5494 int main() {
5435 XmuReadBitmapDataFromFile() 5495 XmuReadBitmapDataFromFile()
5436 ; return 0; } 5496 ; return 0; }
5437 EOF 5497 EOF
5438 if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5439 rm -rf conftest* 5499 rm -rf conftest*
5440 eval "ac_cv_lib_$ac_lib_var=yes" 5500 eval "ac_cv_lib_$ac_lib_var=yes"
5441 else 5501 else
5442 echo "configure: failed program was:" >&5 5502 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5 5503 cat conftest.$ac_ext >&5
5472 5532
5473 fi 5533 fi
5474 5534
5475 5535
5476 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5536 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5477 echo "configure:5478: checking for main in -lXbsd" >&5 5537 echo "configure:5538: checking for main in -lXbsd" >&5
5478 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5538 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5479 5539
5480 xe_check_libs=" -lXbsd " 5540 xe_check_libs=" -lXbsd "
5481 cat > conftest.$ac_ext <<EOF 5541 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure" 5542 #line 5543 "configure"
5483 #include "confdefs.h" 5543 #include "confdefs.h"
5484 5544
5485 int main() { 5545 int main() {
5486 main() 5546 main()
5487 ; return 0; } 5547 ; return 0; }
5488 EOF 5548 EOF
5489 if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5549 if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5490 rm -rf conftest* 5550 rm -rf conftest*
5491 eval "ac_cv_lib_$ac_lib_var=yes" 5551 eval "ac_cv_lib_$ac_lib_var=yes"
5492 else 5552 else
5493 echo "configure: failed program was:" >&5 5553 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5 5554 cat conftest.$ac_ext >&5
5506 fi 5566 fi
5507 5567
5508 5568
5509 5569
5510 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then 5570 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5511 libs_x="$libs_x -lc_r" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lc_r\" to \$libs_x"; fi 5571 case "$CC" in
5572 "xlc" ) CC="xlc_r" ;;
5573 "xlC" ) CC="xlC_r" ;;
5574 "cc" ) CC="cc_r" ;;
5575 "gcc" )
5576 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
5577 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
5578 ;;
5579 esac
5512 fi 5580 fi
5513 5581
5514 fi 5582 fi
5515 if test "$with_msw" != "no"; then 5583 if test "$with_msw" != "no"; then
5516 echo "checking for MS-Windows" 1>&6 5584 echo "checking for MS-Windows" 1>&6
5517 echo "configure:5518: checking for MS-Windows" >&5 5585 echo "configure:5586: checking for MS-Windows" >&5
5518 5586
5519 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5587 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5520 echo "configure:5521: checking for main in -lgdi32" >&5 5588 echo "configure:5589: checking for main in -lgdi32" >&5
5521 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5589 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5522 5590
5523 xe_check_libs=" -lgdi32 " 5591 xe_check_libs=" -lgdi32 "
5524 cat > conftest.$ac_ext <<EOF 5592 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure" 5593 #line 5594 "configure"
5526 #include "confdefs.h" 5594 #include "confdefs.h"
5527 5595
5528 int main() { 5596 int main() {
5529 main() 5597 main()
5530 ; return 0; } 5598 ; return 0; }
5531 EOF 5599 EOF
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5600 if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5533 rm -rf conftest* 5601 rm -rf conftest*
5534 eval "ac_cv_lib_$ac_lib_var=yes" 5602 eval "ac_cv_lib_$ac_lib_var=yes"
5535 else 5603 else
5536 echo "configure: failed program was:" >&5 5604 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5 5605 cat conftest.$ac_ext >&5
5587 fi 5655 fi
5588 fi 5656 fi
5589 5657
5590 test -z "$window_system" && window_system="none" 5658 test -z "$window_system" && window_system="none"
5591 5659
5592 if test "$window_system" = "none" ; then 5660 if test "$window_system" = "none"; then
5593 if test "$with_tty" = "no" ; then 5661 for feature in menubars scrollbars toolbars dialogs
5594 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; } 5662 do
5595 fi 5663 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5596 for feature in tooltalk cde offix session \ 5664 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
5597 menubars scrollbars toolbars dialogs xim xmu \ 5665 fi
5666 eval "with_${feature}=no"
5667 done
5668 else
5669 test -z "$with_toolbars" && with_toolbars=yes
5670 fi
5671
5672 if test "$with_msw" != "yes"; then
5673 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
5674 do
5675 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5676 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
5677 fi
5678 eval "with_${feature}=no"
5679 done
5680 else
5681 :
5682 fi
5683
5684 if test "$with_x11" != "yes"; then
5685 for feature in tooltalk cde offix session xim xmu \
5598 tiff png jpeg gif xface xpm 5686 tiff png jpeg gif xface xpm
5599 do 5687 do
5600 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 5688 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5601 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2 5689 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5602 fi 5690 fi
5603 eval "with_${feature}=no" 5691 eval "with_${feature}=no"
5604 done 5692 done
5605 else
5606 test -z "$with_toolbars" && with_toolbars=yes
5607 fi 5693 fi
5608 5694
5609 bitmapdir= 5695 bitmapdir=
5610 5696
5611 case "$window_system" in 5697 case "$window_system" in
5612 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; 5698 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5613 msw ) HAVE_X_WINDOWS=no; echo " Using MS-Windows." ;; 5699 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
5614 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; 5700 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5615 esac 5701 esac
5616 5702
5617 case "$x_libraries" in *X11R4* ) 5703 case "$x_libraries" in *X11R4* )
5618 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5704 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5619 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5705 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5620 esac 5706 esac
5621 5707
5622 echo "checking for session-management option" 1>&6 5708 echo "checking for session-management option" 1>&6
5623 echo "configure:5624: checking for session-management option" >&5; 5709 echo "configure:5710: checking for session-management option" >&5;
5624 if test "$with_session" != "no"; then 5710 if test "$with_session" != "no"; then
5625 { test "$extra_verbose" = "yes" && cat << \EOF 5711 { test "$extra_verbose" = "yes" && cat << \EOF
5626 Defining HAVE_SESSION 5712 Defining HAVE_SESSION
5627 EOF 5713 EOF
5628 cat >> confdefs.h <<\EOF 5714 cat >> confdefs.h <<\EOF
5633 fi 5719 fi
5634 5720
5635 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5721 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5636 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5722 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5637 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5723 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5638 echo "configure:5639: checking for X11/Xauth.h" >&5 5724 echo "configure:5725: checking for X11/Xauth.h" >&5
5639 5725
5640 cat > conftest.$ac_ext <<EOF 5726 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure" 5727 #line 5728 "configure"
5642 #include "confdefs.h" 5728 #include "confdefs.h"
5643 #include <X11/Xauth.h> 5729 #include <X11/Xauth.h>
5644 EOF 5730 EOF
5645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5646 { (eval echo configure:5647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5732 { (eval echo configure:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5647 ac_err=`grep -v '^ *+' conftest.out` 5733 ac_err=`grep -v '^ *+' conftest.out`
5648 if test -z "$ac_err"; then 5734 if test -z "$ac_err"; then
5649 rm -rf conftest* 5735 rm -rf conftest*
5650 eval "ac_cv_header_$ac_safe=yes" 5736 eval "ac_cv_header_$ac_safe=yes"
5651 else 5737 else
5664 with_xauth=no 5750 with_xauth=no
5665 fi 5751 fi
5666 } 5752 }
5667 test -z "$with_xauth" && { 5753 test -z "$with_xauth" && {
5668 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5754 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5669 echo "configure:5670: checking for XauGetAuthByAddr in -lXau" >&5 5755 echo "configure:5756: checking for XauGetAuthByAddr in -lXau" >&5
5670 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5756 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5671 5757
5672 xe_check_libs=" -lXau " 5758 xe_check_libs=" -lXau "
5673 cat > conftest.$ac_ext <<EOF 5759 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure" 5760 #line 5761 "configure"
5675 #include "confdefs.h" 5761 #include "confdefs.h"
5676 /* Override any gcc2 internal prototype to avoid an error. */ 5762 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2 5763 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */ 5764 builtin and then its argument prototype would still apply. */
5679 char XauGetAuthByAddr(); 5765 char XauGetAuthByAddr();
5680 5766
5681 int main() { 5767 int main() {
5682 XauGetAuthByAddr() 5768 XauGetAuthByAddr()
5683 ; return 0; } 5769 ; return 0; }
5684 EOF 5770 EOF
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5771 if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5686 rm -rf conftest* 5772 rm -rf conftest*
5687 eval "ac_cv_lib_$ac_lib_var=yes" 5773 eval "ac_cv_lib_$ac_lib_var=yes"
5688 else 5774 else
5689 echo "configure: failed program was:" >&5 5775 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5 5776 cat conftest.$ac_ext >&5
5719 libs_xauth="$T" 5805 libs_xauth="$T"
5720 5806
5721 fi 5807 fi
5722 5808
5723 5809
5724 OFFIX_O=""
5725 test "$window_system" != "x11" && with_offix=no 5810 test "$window_system" != "x11" && with_offix=no
5726 if test "$with_xmu" != yes -a "$with_x11" = yes; then 5811 if test "$with_xmu" != yes -a "$with_x11" = yes; then
5727 echo "configure: warning: No OffiX without real Xmu support" 1>&2 5812 echo "configure: warning: No OffiX without real Xmu support" 1>&2
5728 with_offix=no 5813 with_offix=no
5729 fi 5814 fi
5735 cat >> confdefs.h <<\EOF 5820 cat >> confdefs.h <<\EOF
5736 #define HAVE_OFFIX_DND 1 5821 #define HAVE_OFFIX_DND 1
5737 EOF 5822 EOF
5738 } 5823 }
5739 5824
5740 OFFIX_O="offix.o" 5825 extra_objs="$extra_objs offix.o" && if test "$extra_verbose" = "yes"; then
5741 fi 5826 echo " xemacs will be linked with \"offix.o\""
5742 5827 fi
5828 fi
5743 5829
5744 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5830 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5745 if test "$with_tooltalk" != "no" ; then 5831 if test "$with_tooltalk" != "no" ; then
5746 for dir in "" "Tt/" "desktop/" ; do 5832 for dir in "" "Tt/" "desktop/" ; do
5747 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5833 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5748 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5834 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5749 echo "configure:5750: checking for ${dir}tt_c.h" >&5 5835 echo "configure:5836: checking for ${dir}tt_c.h" >&5
5750 5836
5751 cat > conftest.$ac_ext <<EOF 5837 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure" 5838 #line 5839 "configure"
5753 #include "confdefs.h" 5839 #include "confdefs.h"
5754 #include <${dir}tt_c.h> 5840 #include <${dir}tt_c.h>
5755 EOF 5841 EOF
5756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5757 { (eval echo configure:5758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5843 { (eval echo configure:5844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5758 ac_err=`grep -v '^ *+' conftest.out` 5844 ac_err=`grep -v '^ *+' conftest.out`
5759 if test -z "$ac_err"; then 5845 if test -z "$ac_err"; then
5760 rm -rf conftest* 5846 rm -rf conftest*
5761 eval "ac_cv_header_$ac_safe=yes" 5847 eval "ac_cv_header_$ac_safe=yes"
5762 else 5848 else
5781 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5867 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5782 5868
5783 xe_msg_checking="for tt_message_create in -ltt" 5869 xe_msg_checking="for tt_message_create in -ltt"
5784 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5870 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5785 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5871 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5786 echo "configure:5787: checking "$xe_msg_checking"" >&5 5872 echo "configure:5873: checking "$xe_msg_checking"" >&5
5787 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5873 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5788 5874
5789 xe_check_libs=" -ltt $extra_libs" 5875 xe_check_libs=" -ltt $extra_libs"
5790 cat > conftest.$ac_ext <<EOF 5876 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure" 5877 #line 5878 "configure"
5792 #include "confdefs.h" 5878 #include "confdefs.h"
5793 /* Override any gcc2 internal prototype to avoid an error. */ 5879 /* Override any gcc2 internal prototype to avoid an error. */
5794 /* We use char because int might match the return type of a gcc2 5880 /* We use char because int might match the return type of a gcc2
5795 builtin and then its argument prototype would still apply. */ 5881 builtin and then its argument prototype would still apply. */
5796 char tt_message_create(); 5882 char tt_message_create();
5797 5883
5798 int main() { 5884 int main() {
5799 tt_message_create() 5885 tt_message_create()
5800 ; return 0; } 5886 ; return 0; }
5801 EOF 5887 EOF
5802 if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5888 if { (eval echo configure:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5803 rm -rf conftest* 5889 rm -rf conftest*
5804 eval "ac_cv_lib_$ac_lib_var=yes" 5890 eval "ac_cv_lib_$ac_lib_var=yes"
5805 else 5891 else
5806 echo "configure: failed program was:" >&5 5892 echo "configure: failed program was:" >&5
5807 cat conftest.$ac_ext >&5 5893 cat conftest.$ac_ext >&5
5846 fi 5932 fi
5847 fi 5933 fi
5848 5934
5849 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5935 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5850 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5936 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5851 echo "configure:5852: checking for Dt/Dt.h" >&5 5937 echo "configure:5938: checking for Dt/Dt.h" >&5
5852 5938
5853 cat > conftest.$ac_ext <<EOF 5939 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure" 5940 #line 5941 "configure"
5855 #include "confdefs.h" 5941 #include "confdefs.h"
5856 #include <Dt/Dt.h> 5942 #include <Dt/Dt.h>
5857 EOF 5943 EOF
5858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5859 { (eval echo configure:5860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5945 { (eval echo configure:5946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5860 ac_err=`grep -v '^ *+' conftest.out` 5946 ac_err=`grep -v '^ *+' conftest.out`
5861 if test -z "$ac_err"; then 5947 if test -z "$ac_err"; then
5862 rm -rf conftest* 5948 rm -rf conftest*
5863 eval "ac_cv_header_$ac_safe=yes" 5949 eval "ac_cv_header_$ac_safe=yes"
5864 else 5950 else
5877 with_cde=no 5963 with_cde=no
5878 fi 5964 fi
5879 } 5965 }
5880 test -z "$with_cde" && { 5966 test -z "$with_cde" && {
5881 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5967 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5882 echo "configure:5883: checking for DtDndDragStart in -lDtSvc" >&5 5968 echo "configure:5969: checking for DtDndDragStart in -lDtSvc" >&5
5883 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5969 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5884 5970
5885 xe_check_libs=" -lDtSvc " 5971 xe_check_libs=" -lDtSvc "
5886 cat > conftest.$ac_ext <<EOF 5972 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure" 5973 #line 5974 "configure"
5888 #include "confdefs.h" 5974 #include "confdefs.h"
5889 /* Override any gcc2 internal prototype to avoid an error. */ 5975 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2 5976 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */ 5977 builtin and then its argument prototype would still apply. */
5892 char DtDndDragStart(); 5978 char DtDndDragStart();
5893 5979
5894 int main() { 5980 int main() {
5895 DtDndDragStart() 5981 DtDndDragStart()
5896 ; return 0; } 5982 ; return 0; }
5897 EOF 5983 EOF
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5984 if { (eval echo configure:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5899 rm -rf conftest* 5985 rm -rf conftest*
5900 eval "ac_cv_lib_$ac_lib_var=yes" 5986 eval "ac_cv_lib_$ac_lib_var=yes"
5901 else 5987 else
5902 echo "configure: failed program was:" >&5 5988 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5 5989 cat conftest.$ac_ext >&5
5930 with_tooltalk=yes # CDE requires Tooltalk 6016 with_tooltalk=yes # CDE requires Tooltalk
5931 need_motif=yes # CDE requires Motif 6017 need_motif=yes # CDE requires Motif
5932 fi 6018 fi
5933 6019
5934 echo "checking for LDAP" 1>&6 6020 echo "checking for LDAP" 1>&6
5935 echo "configure:5936: checking for LDAP" >&5 6021 echo "configure:6022: checking for LDAP" >&5
5936 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6022 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
5937 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6023 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
5938 echo "configure:5939: checking for ldap.h" >&5 6024 echo "configure:6025: checking for ldap.h" >&5
5939 6025
5940 cat > conftest.$ac_ext <<EOF 6026 cat > conftest.$ac_ext <<EOF
5941 #line 5942 "configure" 6027 #line 6028 "configure"
5942 #include "confdefs.h" 6028 #include "confdefs.h"
5943 #include <ldap.h> 6029 #include <ldap.h>
5944 EOF 6030 EOF
5945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5946 { (eval echo configure:5947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6032 { (eval echo configure:6033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5947 ac_err=`grep -v '^ *+' conftest.out` 6033 ac_err=`grep -v '^ *+' conftest.out`
5948 if test -z "$ac_err"; then 6034 if test -z "$ac_err"; then
5949 rm -rf conftest* 6035 rm -rf conftest*
5950 eval "ac_cv_header_$ac_safe=yes" 6036 eval "ac_cv_header_$ac_safe=yes"
5951 else 6037 else
5964 with_ldap=no 6050 with_ldap=no
5965 fi 6051 fi
5966 } 6052 }
5967 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6053 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
5968 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6054 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
5969 echo "configure:5970: checking for lber.h" >&5 6055 echo "configure:6056: checking for lber.h" >&5
5970 6056
5971 cat > conftest.$ac_ext <<EOF 6057 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure" 6058 #line 6059 "configure"
5973 #include "confdefs.h" 6059 #include "confdefs.h"
5974 #include <lber.h> 6060 #include <lber.h>
5975 EOF 6061 EOF
5976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5977 { (eval echo configure:5978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6063 { (eval echo configure:6064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5978 ac_err=`grep -v '^ *+' conftest.out` 6064 ac_err=`grep -v '^ *+' conftest.out`
5979 if test -z "$ac_err"; then 6065 if test -z "$ac_err"; then
5980 rm -rf conftest* 6066 rm -rf conftest*
5981 eval "ac_cv_header_$ac_safe=yes" 6067 eval "ac_cv_header_$ac_safe=yes"
5982 else 6068 else
5993 else 6079 else
5994 echo "$ac_t""no" 1>&6 6080 echo "$ac_t""no" 1>&6
5995 with_ldap=no 6081 with_ldap=no
5996 fi 6082 fi
5997 } 6083 }
5998 test -z "$with_ldap" -o "$with_ldap" = "yes" && { 6084 if test "$with_ldap" != "no"; then
6085 test -z "$with_umich_ldap" && {
5999 xe_msg_checking="for ldap_open in -lldap" 6086 xe_msg_checking="for ldap_open in -lldap"
6000 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6087 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6001 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6088 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6002 echo "configure:6003: checking "$xe_msg_checking"" >&5 6089 echo "configure:6090: checking "$xe_msg_checking"" >&5
6003 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6090 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6004 6091
6005 xe_check_libs=" -lldap -llber" 6092 xe_check_libs=" -lldap -llber"
6006 cat > conftest.$ac_ext <<EOF 6093 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure" 6094 #line 6095 "configure"
6008 #include "confdefs.h" 6095 #include "confdefs.h"
6009 /* Override any gcc2 internal prototype to avoid an error. */ 6096 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2 6097 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */ 6098 builtin and then its argument prototype would still apply. */
6012 char ldap_open(); 6099 char ldap_open();
6013 6100
6014 int main() { 6101 int main() {
6015 ldap_open() 6102 ldap_open()
6016 ; return 0; } 6103 ; return 0; }
6017 EOF 6104 EOF
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6019 rm -rf conftest* 6106 rm -rf conftest*
6020 eval "ac_cv_lib_$ac_lib_var=yes" 6107 eval "ac_cv_lib_$ac_lib_var=yes"
6021 else 6108 else
6022 echo "configure: failed program was:" >&5 6109 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5 6110 cat conftest.$ac_ext >&5
6034 echo "$ac_t""no" 1>&6 6121 echo "$ac_t""no" 1>&6
6035 with_umich_ldap=no 6122 with_umich_ldap=no
6036 fi 6123 fi
6037 6124
6038 } 6125 }
6039 test \( -z "$with_ldap" -o "$with_ldap" = "yes" \) -a "$with_umich_ldap" = "no" && { 6126 test "$with_umich_ldap" = "no" && {
6040 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6127 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6041 echo "configure:6042: checking for ldap_set_option in -lldap10" >&5 6128 echo "configure:6129: checking for ldap_set_option in -lldap10" >&5
6042 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6129 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6043 6130
6044 xe_check_libs=" -lldap10 " 6131 xe_check_libs=" -lldap10 "
6045 cat > conftest.$ac_ext <<EOF 6132 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure" 6133 #line 6134 "configure"
6047 #include "confdefs.h" 6134 #include "confdefs.h"
6048 /* Override any gcc2 internal prototype to avoid an error. */ 6135 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2 6136 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */ 6137 builtin and then its argument prototype would still apply. */
6051 char ldap_set_option(); 6138 char ldap_set_option();
6052 6139
6053 int main() { 6140 int main() {
6054 ldap_set_option() 6141 ldap_set_option()
6055 ; return 0; } 6142 ; return 0; }
6056 EOF 6143 EOF
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6058 rm -rf conftest* 6145 rm -rf conftest*
6059 eval "ac_cv_lib_$ac_lib_var=yes" 6146 eval "ac_cv_lib_$ac_lib_var=yes"
6060 else 6147 else
6061 echo "configure: failed program was:" >&5 6148 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5 6149 cat conftest.$ac_ext >&5
6073 echo "$ac_t""no" 1>&6 6160 echo "$ac_t""no" 1>&6
6074 with_ns_ldap=no 6161 with_ns_ldap=no
6075 fi 6162 fi
6076 6163
6077 } 6164 }
6078 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes 6165 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6079 if test "$with_ldap" = "yes" -a "$with_umich_ldap" = "yes" ; then 6166 fi
6167 if test "$with_ldap" = "yes"; then
6080 { test "$extra_verbose" = "yes" && cat << \EOF 6168 { test "$extra_verbose" = "yes" && cat << \EOF
6081 Defining HAVE_LDAP 6169 Defining HAVE_LDAP
6082 EOF 6170 EOF
6083 cat >> confdefs.h <<\EOF 6171 cat >> confdefs.h <<\EOF
6084 #define HAVE_LDAP 1 6172 #define HAVE_LDAP 1
6085 EOF 6173 EOF
6086 } 6174 }
6087 6175
6088 { test "$extra_verbose" = "yes" && cat << \EOF
6089 Defining HAVE_UMICH_LDAP
6090 EOF
6091 cat >> confdefs.h <<\EOF
6092 #define HAVE_UMICH_LDAP 1
6093 EOF
6094 }
6095
6096 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6097 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6098 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then 6176 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6099 echo " xemacs will be linked with \"eldap.o\"" 6177 echo " xemacs will be linked with \"eldap.o\""
6100 fi 6178 fi
6101 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then 6179 if test "$with_umich_ldap" = "yes" ; then
6102 { test "$extra_verbose" = "yes" && cat << \EOF 6180 { test "$extra_verbose" = "yes" && cat << \EOF
6103 Defining HAVE_LDAP 6181 Defining HAVE_UMICH_LDAP
6104 EOF 6182 EOF
6105 cat >> confdefs.h <<\EOF 6183 cat >> confdefs.h <<\EOF
6106 #define HAVE_LDAP 1 6184 #define HAVE_UMICH_LDAP 1
6107 EOF 6185 EOF
6108 } 6186 }
6109 6187
6110 { test "$extra_verbose" = "yes" && cat << \EOF 6188 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6189 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6190 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6191 { test "$extra_verbose" = "yes" && cat << \EOF
6111 Defining HAVE_NS_LDAP 6192 Defining HAVE_NS_LDAP
6112 EOF 6193 EOF
6113 cat >> confdefs.h <<\EOF 6194 cat >> confdefs.h <<\EOF
6114 #define HAVE_NS_LDAP 1 6195 #define HAVE_NS_LDAP 1
6115 EOF 6196 EOF
6116 } 6197 }
6117 6198
6118 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi 6199 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6119 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then 6200 elif test "$with_ldap" = "yes" ; then
6120 echo " xemacs will be linked with \"eldap.o\"" 6201 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6121 fi 6202 fi
6122 elif test "$with_ldap" = "yes" ; then
6123 { test "$extra_verbose" = "yes" && cat << \EOF
6124 Defining HAVE_LDAP
6125 EOF
6126 cat >> confdefs.h <<\EOF
6127 #define HAVE_LDAP 1
6128 EOF
6129 }
6130
6131 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6132 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6133 echo " xemacs will be linked with \"eldap.o\""
6134 fi
6135 fi 6203 fi
6136 6204
6137 6205
6138 if test "$with_x11" = "yes"; then 6206 if test "$with_x11" = "yes"; then
6139 6207
6140 echo "checking for X11 graphics libraries" 1>&6 6208 echo "checking for X11 graphics libraries" 1>&6
6141 echo "configure:6142: checking for X11 graphics libraries" >&5 6209 echo "configure:6210: checking for X11 graphics libraries" >&5
6142 6210
6211 if test "$with_png $with_tiff" != "no no"; then
6212
6213 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6214 echo "configure:6215: checking for inflate in -lc" >&5
6215 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6216
6217 xe_check_libs=" -lc "
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */
6224 char inflate();
6225
6226 int main() {
6227 inflate()
6228 ; return 0; }
6229 EOF
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6231 rm -rf conftest*
6232 eval "ac_cv_lib_$ac_lib_var=yes"
6233 else
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6236 rm -rf conftest*
6237 eval "ac_cv_lib_$ac_lib_var=no"
6238 fi
6239 rm -f conftest*
6240 xe_check_libs=""
6241
6242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6243 echo "$ac_t""yes" 1>&6
6244 :
6245 else
6246 echo "$ac_t""no" 1>&6
6247
6248 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6249 echo "configure:6250: checking for inflate in -lz" >&5
6250 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6251
6252 xe_check_libs=" -lz "
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6259 char inflate();
6260
6261 int main() {
6262 inflate()
6263 ; return 0; }
6264 EOF
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6266 rm -rf conftest*
6267 eval "ac_cv_lib_$ac_lib_var=yes"
6268 else
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6271 rm -rf conftest*
6272 eval "ac_cv_lib_$ac_lib_var=no"
6273 fi
6274 rm -f conftest*
6275 xe_check_libs=""
6276
6277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6278 echo "$ac_t""yes" 1>&6
6279 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6280 else
6281 echo "$ac_t""no" 1>&6
6282
6283 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6284 echo "configure:6285: checking for inflate in -lgz" >&5
6285 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6286
6287 xe_check_libs=" -lgz "
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6294 char inflate();
6295
6296 int main() {
6297 inflate()
6298 ; return 0; }
6299 EOF
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6301 rm -rf conftest*
6302 eval "ac_cv_lib_$ac_lib_var=yes"
6303 else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 rm -rf conftest*
6307 eval "ac_cv_lib_$ac_lib_var=no"
6308 fi
6309 rm -f conftest*
6310 xe_check_libs=""
6311
6312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6313 echo "$ac_t""yes" 1>&6
6314 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
6315 else
6316 echo "$ac_t""no" 1>&6
6317 fi
6318
6319
6320 fi
6321
6322
6323 fi
6324
6325
6326 fi
6327
6328 if test -z "$with_xpm"; then
6143 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6329 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6144 echo "configure:6145: checking for Xpm - no older than 3.4f" >&5 6330 echo "configure:6331: checking for Xpm - no older than 3.4f" >&5
6145 xe_check_libs=-lXpm 6331 xe_check_libs=-lXpm
6146 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6332 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure" 6333 #line 6334 "configure"
6148 #include "confdefs.h" 6334 #include "confdefs.h"
6149 #include <X11/xpm.h> 6335 #include <X11/xpm.h>
6150 int main(int c, char **v) { 6336 int main(int c, char **v) {
6151 return c == 1 ? 0 : 6337 return c == 1 ? 0 :
6152 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6338 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6153 XpmIncludeVersion < 30406 ? 2 : 6339 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6154 0 ; 6340 EOF
6155 } 6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6156 EOF
6157 if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6158 then 6342 then
6159 ./conftest foobar; xpm_status=$?; 6343 ./conftest dummy_arg; xpm_status=$?;
6160 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6344 if test "$?" = "0"; then
6161 else 6345 with_xpm=yes;
6162 echo "configure: failed program was:" >&5 6346 else
6163 cat conftest.$ac_ext >&5 6347 with_xpm=no;
6164 rm -fr conftest* 6348 if test "$?" = "1"; then
6165 with_xpm=no 6349 xpm_problem="Xpm library version and header file version don't match!"
6166 fi 6350 elif test "$?" = "2"; then
6167 rm -fr conftest* 6351 xpm_problem="Xpm library version is too old!"
6168 } 6352 else
6169 xe_check_libs= 6353 xpm_problem="Internal xpm detection logic error!"
6170 echo "$ac_t""$with_xpm" 1>&6 6354 fi
6171 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then 6355 echo "
6172 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
6173 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
6174 echo "
6175 *** WARNING *** $problem 6356 *** WARNING *** $problem
6176 I'm not touching that with a 10-foot pole! 6357 I'm not touching that with a 10-foot pole!
6177 If you really want to use the installed version of Xpm, rerun 6358 If you really want to use the installed version of Xpm, rerun
6178 configure --with-xpm=yes, but don't blame me if XEmacs crashes! 6359 configure --with-xpm=yes, but don't blame me if XEmacs crashes!"
6179 " 6360 fi
6361 else
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 rm -fr conftest*
6365 with_xpm=no
6366 fi
6367 rm -fr conftest*
6368 xe_check_libs=
6369 echo "$ac_t""$with_xpm" 1>&6
6180 fi 6370 fi
6181 if test "$with_xpm" = "yes"; then 6371 if test "$with_xpm" = "yes"; then
6182 { test "$extra_verbose" = "yes" && cat << \EOF 6372 { test "$extra_verbose" = "yes" && cat << \EOF
6183 Defining HAVE_XPM 6373 Defining HAVE_XPM
6184 EOF 6374 EOF
6190 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6380 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6191 fi 6381 fi
6192 6382
6193 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6383 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6194 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6384 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6195 echo "configure:6196: checking for compface.h" >&5 6385 echo "configure:6386: checking for compface.h" >&5
6196 6386
6197 cat > conftest.$ac_ext <<EOF 6387 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure" 6388 #line 6389 "configure"
6199 #include "confdefs.h" 6389 #include "confdefs.h"
6200 #include <compface.h> 6390 #include <compface.h>
6201 EOF 6391 EOF
6202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6203 { (eval echo configure:6204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6393 { (eval echo configure:6394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6204 ac_err=`grep -v '^ *+' conftest.out` 6394 ac_err=`grep -v '^ *+' conftest.out`
6205 if test -z "$ac_err"; then 6395 if test -z "$ac_err"; then
6206 rm -rf conftest* 6396 rm -rf conftest*
6207 eval "ac_cv_header_$ac_safe=yes" 6397 eval "ac_cv_header_$ac_safe=yes"
6208 else 6398 else
6221 with_xface=no 6411 with_xface=no
6222 fi 6412 fi
6223 } 6413 }
6224 test -z "$with_xface" && { 6414 test -z "$with_xface" && {
6225 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6415 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6226 echo "configure:6227: checking for UnGenFace in -lcompface" >&5 6416 echo "configure:6417: checking for UnGenFace in -lcompface" >&5
6227 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6417 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6228 6418
6229 xe_check_libs=" -lcompface " 6419 xe_check_libs=" -lcompface "
6230 cat > conftest.$ac_ext <<EOF 6420 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure" 6421 #line 6422 "configure"
6232 #include "confdefs.h" 6422 #include "confdefs.h"
6233 /* Override any gcc2 internal prototype to avoid an error. */ 6423 /* Override any gcc2 internal prototype to avoid an error. */
6234 /* We use char because int might match the return type of a gcc2 6424 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */ 6425 builtin and then its argument prototype would still apply. */
6236 char UnGenFace(); 6426 char UnGenFace();
6237 6427
6238 int main() { 6428 int main() {
6239 UnGenFace() 6429 UnGenFace()
6240 ; return 0; } 6430 ; return 0; }
6241 EOF 6431 EOF
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6432 if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6243 rm -rf conftest* 6433 rm -rf conftest*
6244 eval "ac_cv_lib_$ac_lib_var=yes" 6434 eval "ac_cv_lib_$ac_lib_var=yes"
6245 else 6435 else
6246 echo "configure: failed program was:" >&5 6436 echo "configure: failed program was:" >&5
6247 cat conftest.$ac_ext >&5 6437 cat conftest.$ac_ext >&5
6272 6462
6273 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6463 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6274 fi 6464 fi
6275 6465
6276 echo $ac_n "checking for giflib - no older than 3.1""... $ac_c" 1>&6 6466 echo $ac_n "checking for giflib - no older than 3.1""... $ac_c" 1>&6
6277 echo "configure:6278: checking for giflib - no older than 3.1" >&5 6467 echo "configure:6468: checking for giflib - no older than 3.1" >&5
6278 test -z "$with_gif" && { ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 6468 test -z "$with_gif" && { ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
6279 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 6469 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
6280 echo "configure:6281: checking for gif_lib.h" >&5 6470 echo "configure:6471: checking for gif_lib.h" >&5
6281 6471
6282 cat > conftest.$ac_ext <<EOF 6472 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure" 6473 #line 6474 "configure"
6284 #include "confdefs.h" 6474 #include "confdefs.h"
6285 #include <gif_lib.h> 6475 #include <gif_lib.h>
6286 EOF 6476 EOF
6287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6288 { (eval echo configure:6289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6478 { (eval echo configure:6479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6289 ac_err=`grep -v '^ *+' conftest.out` 6479 ac_err=`grep -v '^ *+' conftest.out`
6290 if test -z "$ac_err"; then 6480 if test -z "$ac_err"; then
6291 rm -rf conftest* 6481 rm -rf conftest*
6292 eval "ac_cv_header_$ac_safe=yes" 6482 eval "ac_cv_header_$ac_safe=yes"
6293 else 6483 else
6306 with_gif=no 6496 with_gif=no
6307 fi 6497 fi
6308 } 6498 }
6309 test -z "$with_gif" && { 6499 test -z "$with_gif" && {
6310 echo $ac_n "checking for GetGifError in -lgif""... $ac_c" 1>&6 6500 echo $ac_n "checking for GetGifError in -lgif""... $ac_c" 1>&6
6311 echo "configure:6312: checking for GetGifError in -lgif" >&5 6501 echo "configure:6502: checking for GetGifError in -lgif" >&5
6312 ac_lib_var=`echo gif'_'GetGifError | sed 'y%./+-%__p_%'` 6502 ac_lib_var=`echo gif'_'GetGifError | sed 'y%./+-%__p_%'`
6313 6503
6314 xe_check_libs=" -lgif " 6504 xe_check_libs=" -lgif "
6315 cat > conftest.$ac_ext <<EOF 6505 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure" 6506 #line 6507 "configure"
6317 #include "confdefs.h" 6507 #include "confdefs.h"
6318 /* Override any gcc2 internal prototype to avoid an error. */ 6508 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2 6509 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */ 6510 builtin and then its argument prototype would still apply. */
6321 char GetGifError(); 6511 char GetGifError();
6322 6512
6323 int main() { 6513 int main() {
6324 GetGifError() 6514 GetGifError()
6325 ; return 0; } 6515 ; return 0; }
6326 EOF 6516 EOF
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6328 rm -rf conftest* 6518 rm -rf conftest*
6329 eval "ac_cv_lib_$ac_lib_var=yes" 6519 eval "ac_cv_lib_$ac_lib_var=yes"
6330 else 6520 else
6331 echo "configure: failed program was:" >&5 6521 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5 6522 cat conftest.$ac_ext >&5
6358 libs_x="-lgif $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgif\" to \$libs_x"; fi 6548 libs_x="-lgif $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgif\" to \$libs_x"; fi
6359 fi 6549 fi
6360 6550
6361 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6551 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6362 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6552 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6363 echo "configure:6364: checking for jpeglib.h" >&5 6553 echo "configure:6554: checking for jpeglib.h" >&5
6364 6554
6365 cat > conftest.$ac_ext <<EOF 6555 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure" 6556 #line 6557 "configure"
6367 #include "confdefs.h" 6557 #include "confdefs.h"
6368 #include <jpeglib.h> 6558 #include <jpeglib.h>
6369 EOF 6559 EOF
6370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6371 { (eval echo configure:6372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6561 { (eval echo configure:6562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6372 ac_err=`grep -v '^ *+' conftest.out` 6562 ac_err=`grep -v '^ *+' conftest.out`
6373 if test -z "$ac_err"; then 6563 if test -z "$ac_err"; then
6374 rm -rf conftest* 6564 rm -rf conftest*
6375 eval "ac_cv_header_$ac_safe=yes" 6565 eval "ac_cv_header_$ac_safe=yes"
6376 else 6566 else
6389 with_jpeg=no 6579 with_jpeg=no
6390 fi 6580 fi
6391 } 6581 }
6392 test -z "$with_jpeg" && { 6582 test -z "$with_jpeg" && {
6393 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6583 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6394 echo "configure:6395: checking for jpeg_destroy_decompress in -ljpeg" >&5 6584 echo "configure:6585: checking for jpeg_destroy_decompress in -ljpeg" >&5
6395 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6585 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6396 6586
6397 xe_check_libs=" -ljpeg " 6587 xe_check_libs=" -ljpeg "
6398 cat > conftest.$ac_ext <<EOF 6588 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure" 6589 #line 6590 "configure"
6400 #include "confdefs.h" 6590 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */ 6591 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2 6592 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */ 6593 builtin and then its argument prototype would still apply. */
6404 char jpeg_destroy_decompress(); 6594 char jpeg_destroy_decompress();
6405 6595
6406 int main() { 6596 int main() {
6407 jpeg_destroy_decompress() 6597 jpeg_destroy_decompress()
6408 ; return 0; } 6598 ; return 0; }
6409 EOF 6599 EOF
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6600 if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6411 rm -rf conftest* 6601 rm -rf conftest*
6412 eval "ac_cv_lib_$ac_lib_var=yes" 6602 eval "ac_cv_lib_$ac_lib_var=yes"
6413 else 6603 else
6414 echo "configure: failed program was:" >&5 6604 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5 6605 cat conftest.$ac_ext >&5
6439 } 6629 }
6440 6630
6441 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6631 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6442 fi 6632 fi
6443 6633
6444 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6634 if test -z "$with_png"; then
6445 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6635 echo $ac_n "checking for png.h - no older than 0.96""... $ac_c" 1>&6
6446 echo "configure:6447: checking for png.h" >&5 6636 echo "configure:6637: checking for png.h - no older than 0.96" >&5
6447 6637 cat > conftest.$ac_ext <<EOF
6448 cat > conftest.$ac_ext <<EOF 6638 #line 6639 "configure"
6449 #line 6450 "configure"
6450 #include "confdefs.h" 6639 #include "confdefs.h"
6451 #include <png.h> 6640 #include <png.h>
6452 EOF 6641 #if PNG_LIBPNG_VER >= 96
6453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6642 yes
6454 { (eval echo configure:6455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6643 #endif
6455 ac_err=`grep -v '^ *+' conftest.out` 6644
6456 if test -z "$ac_err"; then 6645 EOF
6457 rm -rf conftest* 6646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 eval "ac_cv_header_$ac_safe=yes" 6647 egrep "yes" >/dev/null 2>&1; then
6459 else 6648 rm -rf conftest*
6460 echo "$ac_err" >&5 6649 echo "$ac_t""yes" 1>&6
6461 echo "configure: failed program was:" >&5 6650 else
6462 cat conftest.$ac_ext >&5 6651 rm -rf conftest*
6463 rm -rf conftest* 6652 echo "$ac_t""no" 1>&6; have_png=no
6464 eval "ac_cv_header_$ac_safe=no" 6653 fi
6465 fi 6654 rm -f conftest*
6466 rm -f conftest* 6655
6467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6656 fi
6468 echo "$ac_t""yes" 1>&6
6469 :
6470 else
6471 echo "$ac_t""no" 1>&6
6472 with_png=no
6473 fi
6474 }
6475 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6657 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6476 echo "configure:6477: checking for pow" >&5 6658 echo "configure:6659: checking for pow" >&5
6477 6659
6478 cat > conftest.$ac_ext <<EOF 6660 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure" 6661 #line 6662 "configure"
6480 #include "confdefs.h" 6662 #include "confdefs.h"
6481 /* System header to define __stub macros and hopefully few prototypes, 6663 /* System header to define __stub macros and hopefully few prototypes,
6482 which can conflict with char pow(); below. */ 6664 which can conflict with char pow(); below. */
6483 #include <assert.h> 6665 #include <assert.h>
6484 /* Override any gcc2 internal prototype to avoid an error. */ 6666 /* Override any gcc2 internal prototype to avoid an error. */
6497 pow(); 6679 pow();
6498 #endif 6680 #endif
6499 6681
6500 ; return 0; } 6682 ; return 0; }
6501 EOF 6683 EOF
6502 if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6503 rm -rf conftest* 6685 rm -rf conftest*
6504 eval "ac_cv_func_pow=yes" 6686 eval "ac_cv_func_pow=yes"
6505 else 6687 else
6506 echo "configure: failed program was:" >&5 6688 echo "configure: failed program was:" >&5
6507 cat conftest.$ac_ext >&5 6689 cat conftest.$ac_ext >&5
6516 else 6698 else
6517 echo "$ac_t""no" 1>&6 6699 echo "$ac_t""no" 1>&6
6518 with_png=no 6700 with_png=no
6519 fi 6701 fi
6520 } 6702 }
6521 if test "$with_png" != "no"; then 6703 test -z "$with_png" && {
6522 for extra_libs in "" "-lz" "-lgz"; do 6704 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6523 6705 echo "configure:6706: checking for png_read_image in -lpng" >&5
6524 xe_msg_checking="for png_set_strip_alpha in -lpng" 6706 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6525 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6707
6526 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6708 xe_check_libs=" -lpng "
6527 echo "configure:6528: checking "$xe_msg_checking"" >&5 6709 cat > conftest.$ac_ext <<EOF
6528 ac_lib_var=`echo png'_'png_set_strip_alpha | sed 'y%./+-%__p_%'` 6710 #line 6711 "configure"
6529
6530 xe_check_libs=" -lpng $extra_libs"
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h" 6711 #include "confdefs.h"
6534 /* Override any gcc2 internal prototype to avoid an error. */ 6712 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2 6713 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */ 6714 builtin and then its argument prototype would still apply. */
6537 char png_set_strip_alpha(); 6715 char png_read_image();
6538 6716
6539 int main() { 6717 int main() {
6540 png_set_strip_alpha() 6718 png_read_image()
6541 ; return 0; } 6719 ; return 0; }
6542 EOF 6720 EOF
6543 if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6544 rm -rf conftest* 6722 rm -rf conftest*
6545 eval "ac_cv_lib_$ac_lib_var=yes" 6723 eval "ac_cv_lib_$ac_lib_var=yes"
6546 else 6724 else
6547 echo "configure: failed program was:" >&5 6725 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5 6726 cat conftest.$ac_ext >&5
6552 rm -f conftest* 6730 rm -f conftest*
6553 xe_check_libs="" 6731 xe_check_libs=""
6554 6732
6555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6556 echo "$ac_t""yes" 1>&6 6734 echo "$ac_t""yes" 1>&6
6557 png_libs="-lpng $extra_libs" with_png=yes; break 6735 :
6558 else 6736 else
6559 echo "$ac_t""no" 1>&6 6737 echo "$ac_t""no" 1>&6
6560 : 6738 with_png=no
6561 fi 6739 fi
6562 6740
6563 6741 }
6564 done 6742 test -z "$with_png" && with_png=yes
6565 fi
6566 test -z "$with_png" && with_png=no
6567 if test "$with_png" = "yes"; then 6743 if test "$with_png" = "yes"; then
6568 { test "$extra_verbose" = "yes" && cat << \EOF 6744 { test "$extra_verbose" = "yes" && cat << \EOF
6569 Defining HAVE_PNG 6745 Defining HAVE_PNG
6570 EOF 6746 EOF
6571 cat >> confdefs.h <<\EOF 6747 cat >> confdefs.h <<\EOF
6572 #define HAVE_PNG 1 6748 #define HAVE_PNG 1
6573 EOF 6749 EOF
6574 } 6750 }
6575 6751
6576 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi 6752 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
6577 fi 6753 fi
6578 6754
6579 if test "$with_tiff" != no; then 6755 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
6580 for extra_libs in "" "-lz" "-lgz"; do 6756 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6581 6757 echo "configure:6758: checking for tiffio.h" >&5
6582 xe_msg_checking="for TIFFReadScanline in -ltiff" 6758
6583 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6759 cat > conftest.$ac_ext <<EOF
6584 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6760 #line 6761 "configure"
6585 echo "configure:6586: checking "$xe_msg_checking"" >&5 6761 #include "confdefs.h"
6762 #include <tiffio.h>
6763 EOF
6764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6765 { (eval echo configure:6766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6766 ac_err=`grep -v '^ *+' conftest.out`
6767 if test -z "$ac_err"; then
6768 rm -rf conftest*
6769 eval "ac_cv_header_$ac_safe=yes"
6770 else
6771 echo "$ac_err" >&5
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 rm -rf conftest*
6775 eval "ac_cv_header_$ac_safe=no"
6776 fi
6777 rm -f conftest*
6778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6779 echo "$ac_t""yes" 1>&6
6780 :
6781 else
6782 echo "$ac_t""no" 1>&6
6783 with_tiff=no
6784 fi
6785 }
6786 test -z "$with_tiff" && {
6787 echo $ac_n "checking for TIFFReadScanline in -ltiff""... $ac_c" 1>&6
6788 echo "configure:6789: checking for TIFFReadScanline in -ltiff" >&5
6586 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'` 6789 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6587 6790
6588 xe_check_libs=" -ltiff $extra_libs" 6791 xe_check_libs=" -ltiff "
6589 cat > conftest.$ac_ext <<EOF 6792 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure" 6793 #line 6794 "configure"
6591 #include "confdefs.h" 6794 #include "confdefs.h"
6592 /* Override any gcc2 internal prototype to avoid an error. */ 6795 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2 6796 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */ 6797 builtin and then its argument prototype would still apply. */
6595 char TIFFReadScanline(); 6798 char TIFFReadScanline();
6596 6799
6597 int main() { 6800 int main() {
6598 TIFFReadScanline() 6801 TIFFReadScanline()
6599 ; return 0; } 6802 ; return 0; }
6600 EOF 6803 EOF
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6602 rm -rf conftest* 6805 rm -rf conftest*
6603 eval "ac_cv_lib_$ac_lib_var=yes" 6806 eval "ac_cv_lib_$ac_lib_var=yes"
6604 else 6807 else
6605 echo "configure: failed program was:" >&5 6808 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5 6809 cat conftest.$ac_ext >&5
6610 rm -f conftest* 6813 rm -f conftest*
6611 xe_check_libs="" 6814 xe_check_libs=""
6612 6815
6613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 6816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6614 echo "$ac_t""yes" 1>&6 6817 echo "$ac_t""yes" 1>&6
6615 tiff_libs="-ltiff $extra_libs" with_tiff=yes; break 6818 :
6616 else 6819 else
6617 echo "$ac_t""no" 1>&6 6820 echo "$ac_t""no" 1>&6
6618 : 6821 with_tiff=no
6619 fi 6822 fi
6620 6823
6621 6824 }
6622 done 6825 test -z "$with_tiff" && with_tiff=yes
6623 fi
6624 test -z "$with_tiff" && with_tiff=no
6625 if test "$with_tiff" = "yes"; then 6826 if test "$with_tiff" = "yes"; then
6626 { test "$extra_verbose" = "yes" && cat << \EOF 6827 { test "$extra_verbose" = "yes" && cat << \EOF
6627 Defining HAVE_TIFF 6828 Defining HAVE_TIFF
6628 EOF 6829 EOF
6629 cat >> confdefs.h <<\EOF 6830 cat >> confdefs.h <<\EOF
6630 #define HAVE_TIFF 1 6831 #define HAVE_TIFF 1
6631 EOF 6832 EOF
6632 } 6833 }
6633 6834
6634 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi 6835 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
6635 fi 6836 fi
6636 6837
6637 6838
6638 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6839 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6639 echo "configure:6640: checking for XawScrollbarSetThumb in -lXaw" >&5 6840 echo "configure:6841: checking for XawScrollbarSetThumb in -lXaw" >&5
6640 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6841 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6641 6842
6642 xe_check_libs=" -lXaw " 6843 xe_check_libs=" -lXaw "
6643 cat > conftest.$ac_ext <<EOF 6844 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure" 6845 #line 6846 "configure"
6645 #include "confdefs.h" 6846 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */ 6847 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2 6848 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */ 6849 builtin and then its argument prototype would still apply. */
6649 char XawScrollbarSetThumb(); 6850 char XawScrollbarSetThumb();
6650 6851
6651 int main() { 6852 int main() {
6652 XawScrollbarSetThumb() 6853 XawScrollbarSetThumb()
6653 ; return 0; } 6854 ; return 0; }
6654 EOF 6855 EOF
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6656 rm -rf conftest* 6857 rm -rf conftest*
6657 eval "ac_cv_lib_$ac_lib_var=yes" 6858 eval "ac_cv_lib_$ac_lib_var=yes"
6658 else 6859 else
6659 echo "configure: failed program was:" >&5 6860 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5 6861 cat conftest.$ac_ext >&5
6674 6875
6675 6876
6676 6877
6677 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6878 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6678 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6879 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6679 echo "configure:6680: checking for Xm/Xm.h" >&5 6880 echo "configure:6881: checking for Xm/Xm.h" >&5
6680 6881
6681 cat > conftest.$ac_ext <<EOF 6882 cat > conftest.$ac_ext <<EOF
6682 #line 6683 "configure" 6883 #line 6884 "configure"
6683 #include "confdefs.h" 6884 #include "confdefs.h"
6684 #include <Xm/Xm.h> 6885 #include <Xm/Xm.h>
6685 EOF 6886 EOF
6686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6687 { (eval echo configure:6688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6888 { (eval echo configure:6889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6688 ac_err=`grep -v '^ *+' conftest.out` 6889 ac_err=`grep -v '^ *+' conftest.out`
6689 if test -z "$ac_err"; then 6890 if test -z "$ac_err"; then
6690 rm -rf conftest* 6891 rm -rf conftest*
6691 eval "ac_cv_header_$ac_safe=yes" 6892 eval "ac_cv_header_$ac_safe=yes"
6692 else 6893 else
6699 rm -f conftest* 6900 rm -f conftest*
6700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6 6902 echo "$ac_t""yes" 1>&6
6702 6903
6703 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6904 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6704 echo "configure:6705: checking for XmStringFree in -lXm" >&5 6905 echo "configure:6906: checking for XmStringFree in -lXm" >&5
6705 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6906 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6706 6907
6707 xe_check_libs=" -lXm " 6908 xe_check_libs=" -lXm "
6708 cat > conftest.$ac_ext <<EOF 6909 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure" 6910 #line 6911 "configure"
6710 #include "confdefs.h" 6911 #include "confdefs.h"
6711 /* Override any gcc2 internal prototype to avoid an error. */ 6912 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2 6913 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */ 6914 builtin and then its argument prototype would still apply. */
6714 char XmStringFree(); 6915 char XmStringFree();
6715 6916
6716 int main() { 6917 int main() {
6717 XmStringFree() 6918 XmStringFree()
6718 ; return 0; } 6919 ; return 0; }
6719 EOF 6920 EOF
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6721 rm -rf conftest* 6922 rm -rf conftest*
6722 eval "ac_cv_lib_$ac_lib_var=yes" 6923 eval "ac_cv_lib_$ac_lib_var=yes"
6723 else 6924 else
6724 echo "configure: failed program was:" >&5 6925 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5 6926 cat conftest.$ac_ext >&5
6741 else 6942 else
6742 echo "$ac_t""no" 1>&6 6943 echo "$ac_t""no" 1>&6
6743 have_motif=no 6944 have_motif=no
6744 fi 6945 fi
6745 6946
6947
6948 if test "$have_motif" = "yes"; then
6949 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
6950 echo "configure:6951: checking for Lesstif" >&5
6951 cat > conftest.$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6954 #include <Xm/Xm.h>
6955 #ifdef LESSTIF_VERSION
6956 yes
6957 #endif
6958
6959 EOF
6960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6961 egrep "yes" >/dev/null 2>&1; then
6962 rm -rf conftest*
6963 have_lesstif=yes
6964 else
6965 rm -rf conftest*
6966 have_lesstif=no
6967 fi
6968 rm -f conftest*
6969
6970 echo "$ac_t""$have_lesstif" 1>&6
6971 fi
6746 6972
6747 fi 6973 fi
6748 6974
6749 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" ) 6975 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
6750 with_menubars="lucid" ;; 6976 with_menubars="lucid" ;;
6966 echo "Please remove NAS configuration or build with X" 7192 echo "Please remove NAS configuration or build with X"
6967 exit 1 7193 exit 1
6968 fi 7194 fi
6969 fi 7195 fi
6970 7196
6971 if test "$with_gung" != "no"; then 7197 test "$use_minimal_tagbits" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
6972 test "$with_minimal_tagbits" = "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6973 Defining USE_MINIMAL_TAGBITS 7198 Defining USE_MINIMAL_TAGBITS
6974 EOF 7199 EOF
6975 cat >> confdefs.h <<\EOF 7200 cat >> confdefs.h <<\EOF
6976 #define USE_MINIMAL_TAGBITS 1 7201 #define USE_MINIMAL_TAGBITS 1
6977 EOF 7202 EOF
6978 } 7203 }
6979 7204
6980 { test "$extra_verbose" = "yes" && cat << \EOF 7205 test "$use_indexed_lrecord_implementation" = "yes" && \
7206 { test "$extra_verbose" = "yes" && cat << \EOF
6981 Defining USE_INDEXED_LRECORD_IMPLEMENTATION 7207 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
6982 EOF 7208 EOF
6983 cat >> confdefs.h <<\EOF 7209 cat >> confdefs.h <<\EOF
6984 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1 7210 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
6985 EOF 7211 EOF
6986 } 7212 }
6987 7213
6988 fi 7214
6989 7215
6990 7216 test -z "$with_mule" && with_mule=no
6991 test -z "$with_mule" && with_mule=no
6992 test -z "$with_file_coding" && with_file_coding=no 7217 test -z "$with_file_coding" && with_file_coding=no
6993 7218
6994 7219
6995 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then 7220 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
6996 { test "$extra_verbose" = "yes" && cat << \EOF 7221 { test "$extra_verbose" = "yes" && cat << \EOF
7006 fi 7231 fi
7007 fi 7232 fi
7008 7233
7009 if test "$with_mule" = "yes" ; then 7234 if test "$with_mule" = "yes" ; then
7010 echo "checking for Mule-related features" 1>&6 7235 echo "checking for Mule-related features" 1>&6
7011 echo "configure:7012: checking for Mule-related features" >&5 7236 echo "configure:7237: checking for Mule-related features" >&5
7012 { test "$extra_verbose" = "yes" && cat << \EOF 7237 { test "$extra_verbose" = "yes" && cat << \EOF
7013 Defining MULE 7238 Defining MULE
7014 EOF 7239 EOF
7015 cat >> confdefs.h <<\EOF 7240 cat >> confdefs.h <<\EOF
7016 #define MULE 1 7241 #define MULE 1
7031 7256
7032 for ac_hdr in libintl.h 7257 for ac_hdr in libintl.h
7033 do 7258 do
7034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7036 echo "configure:7037: checking for $ac_hdr" >&5 7261 echo "configure:7262: checking for $ac_hdr" >&5
7037 7262
7038 cat > conftest.$ac_ext <<EOF 7263 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure" 7264 #line 7265 "configure"
7040 #include "confdefs.h" 7265 #include "confdefs.h"
7041 #include <$ac_hdr> 7266 #include <$ac_hdr>
7042 EOF 7267 EOF
7043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7269 { (eval echo configure:7270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err=`grep -v '^ *+' conftest.out` 7270 ac_err=`grep -v '^ *+' conftest.out`
7046 if test -z "$ac_err"; then 7271 if test -z "$ac_err"; then
7047 rm -rf conftest* 7272 rm -rf conftest*
7048 eval "ac_cv_header_$ac_safe=yes" 7273 eval "ac_cv_header_$ac_safe=yes"
7049 else 7274 else
7070 fi 7295 fi
7071 done 7296 done
7072 7297
7073 7298
7074 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7299 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7075 echo "configure:7076: checking for strerror in -lintl" >&5 7300 echo "configure:7301: checking for strerror in -lintl" >&5
7076 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7301 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7077 7302
7078 xe_check_libs=" -lintl " 7303 xe_check_libs=" -lintl "
7079 cat > conftest.$ac_ext <<EOF 7304 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure" 7305 #line 7306 "configure"
7081 #include "confdefs.h" 7306 #include "confdefs.h"
7082 /* Override any gcc2 internal prototype to avoid an error. */ 7307 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2 7308 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */ 7309 builtin and then its argument prototype would still apply. */
7085 char strerror(); 7310 char strerror();
7086 7311
7087 int main() { 7312 int main() {
7088 strerror() 7313 strerror()
7089 ; return 0; } 7314 ; return 0; }
7090 EOF 7315 EOF
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7092 rm -rf conftest* 7317 rm -rf conftest*
7093 eval "ac_cv_lib_$ac_lib_var=yes" 7318 eval "ac_cv_lib_$ac_lib_var=yes"
7094 else 7319 else
7095 echo "configure: failed program was:" >&5 7320 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 7321 cat conftest.$ac_ext >&5
7119 fi 7344 fi
7120 7345
7121 7346
7122 7347
7123 echo "checking for Mule input methods" 1>&6 7348 echo "checking for Mule input methods" 1>&6
7124 echo "configure:7125: checking for Mule input methods" >&5 7349 echo "configure:7350: checking for Mule input methods" >&5
7125 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 7350 case "$with_xim" in "" | "yes" )
7126 case "$with_xim" in "" | "yes" )
7127 echo "checking for XIM" 1>&6 7351 echo "checking for XIM" 1>&6
7128 echo "configure:7129: checking for XIM" >&5 7352 echo "configure:7353: checking for XIM" >&5
7129 7353 if test "$have_lesstif" = "yes"; then with_xim=xlib
7354 else
7130 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7355 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7131 echo "configure:7132: checking for XmImMbLookupString in -lXm" >&5 7356 echo "configure:7357: checking for XmImMbLookupString in -lXm" >&5
7132 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7357 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7133 7358
7134 xe_check_libs=" -lXm " 7359 xe_check_libs=" -lXm "
7135 cat > conftest.$ac_ext <<EOF 7360 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure" 7361 #line 7362 "configure"
7137 #include "confdefs.h" 7362 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error. */ 7363 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2 7364 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */ 7365 builtin and then its argument prototype would still apply. */
7141 char XmImMbLookupString(); 7366 char XmImMbLookupString();
7142 7367
7143 int main() { 7368 int main() {
7144 XmImMbLookupString() 7369 XmImMbLookupString()
7145 ; return 0; } 7370 ; return 0; }
7146 EOF 7371 EOF
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7372 if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7148 rm -rf conftest* 7373 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=yes" 7374 eval "ac_cv_lib_$ac_lib_var=yes"
7150 else 7375 else
7151 echo "configure: failed program was:" >&5 7376 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5 7377 cat conftest.$ac_ext >&5
7163 echo "$ac_t""no" 1>&6 7388 echo "$ac_t""no" 1>&6
7164 with_xim=xlib 7389 with_xim=xlib
7165 fi 7390 fi
7166 7391
7167 7392
7393 fi
7168 esac 7394 esac
7169 if test "$with_xim" != "no" ; then 7395 if test "$with_xim" != "no"; then
7170 { test "$extra_verbose" = "yes" && cat << \EOF 7396 { test "$extra_verbose" = "yes" && cat << \EOF
7171 Defining HAVE_XIM 7397 Defining HAVE_XIM
7172 EOF 7398 EOF
7173 cat >> confdefs.h <<\EOF 7399 cat >> confdefs.h <<\EOF
7174 #define HAVE_XIM 1 7400 #define HAVE_XIM 1
7207 fi 7433 fi
7208 fi 7434 fi
7209 7435
7210 if test "$with_xfs" = "yes" ; then 7436 if test "$with_xfs" = "yes" ; then
7211 echo "checking for XFontSet" 1>&6 7437 echo "checking for XFontSet" 1>&6
7212 echo "configure:7213: checking for XFontSet" >&5 7438 echo "configure:7439: checking for XFontSet" >&5
7213 7439
7214 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7440 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7215 echo "configure:7216: checking for XmbDrawString in -lX11" >&5 7441 echo "configure:7442: checking for XmbDrawString in -lX11" >&5
7216 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7442 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7217 7443
7218 xe_check_libs=" -lX11 " 7444 xe_check_libs=" -lX11 "
7219 cat > conftest.$ac_ext <<EOF 7445 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure" 7446 #line 7447 "configure"
7221 #include "confdefs.h" 7447 #include "confdefs.h"
7222 /* Override any gcc2 internal prototype to avoid an error. */ 7448 /* Override any gcc2 internal prototype to avoid an error. */
7223 /* We use char because int might match the return type of a gcc2 7449 /* We use char because int might match the return type of a gcc2
7224 builtin and then its argument prototype would still apply. */ 7450 builtin and then its argument prototype would still apply. */
7225 char XmbDrawString(); 7451 char XmbDrawString();
7226 7452
7227 int main() { 7453 int main() {
7228 XmbDrawString() 7454 XmbDrawString()
7229 ; return 0; } 7455 ; return 0; }
7230 EOF 7456 EOF
7231 if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7457 if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7232 rm -rf conftest* 7458 rm -rf conftest*
7233 eval "ac_cv_lib_$ac_lib_var=yes" 7459 eval "ac_cv_lib_$ac_lib_var=yes"
7234 else 7460 else
7235 echo "configure: failed program was:" >&5 7461 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5 7462 cat conftest.$ac_ext >&5
7266 fi 7492 fi
7267 fi 7493 fi
7268 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7494 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7269 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7495 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7270 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7496 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7271 echo "configure:7272: checking for wnn/jllib.h" >&5 7497 echo "configure:7498: checking for wnn/jllib.h" >&5
7272 7498
7273 cat > conftest.$ac_ext <<EOF 7499 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure" 7500 #line 7501 "configure"
7275 #include "confdefs.h" 7501 #include "confdefs.h"
7276 #include <wnn/jllib.h> 7502 #include <wnn/jllib.h>
7277 EOF 7503 EOF
7278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7279 { (eval echo configure:7280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7505 { (eval echo configure:7506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7280 ac_err=`grep -v '^ *+' conftest.out` 7506 ac_err=`grep -v '^ *+' conftest.out`
7281 if test -z "$ac_err"; then 7507 if test -z "$ac_err"; then
7282 rm -rf conftest* 7508 rm -rf conftest*
7283 eval "ac_cv_header_$ac_safe=yes" 7509 eval "ac_cv_header_$ac_safe=yes"
7284 else 7510 else
7299 } 7525 }
7300 if test "$with_wnn" != "no"; then 7526 if test "$with_wnn" != "no"; then
7301 for ac_func in crypt 7527 for ac_func in crypt
7302 do 7528 do
7303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7304 echo "configure:7305: checking for $ac_func" >&5 7530 echo "configure:7531: checking for $ac_func" >&5
7305 7531
7306 cat > conftest.$ac_ext <<EOF 7532 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure" 7533 #line 7534 "configure"
7308 #include "confdefs.h" 7534 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes, 7535 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char $ac_func(); below. */ 7536 which can conflict with char $ac_func(); below. */
7311 #include <assert.h> 7537 #include <assert.h>
7312 /* Override any gcc2 internal prototype to avoid an error. */ 7538 /* Override any gcc2 internal prototype to avoid an error. */
7325 $ac_func(); 7551 $ac_func();
7326 #endif 7552 #endif
7327 7553
7328 ; return 0; } 7554 ; return 0; }
7329 EOF 7555 EOF
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7556 if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7331 rm -rf conftest* 7557 rm -rf conftest*
7332 eval "ac_cv_func_$ac_func=yes" 7558 eval "ac_cv_func_$ac_func=yes"
7333 else 7559 else
7334 echo "configure: failed program was:" >&5 7560 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5 7561 cat conftest.$ac_ext >&5
7354 fi 7580 fi
7355 done 7581 done
7356 7582
7357 test "$ac_cv_func_crypt" != "yes" && { 7583 test "$ac_cv_func_crypt" != "yes" && {
7358 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7584 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7359 echo "configure:7360: checking for crypt in -lcrypt" >&5 7585 echo "configure:7586: checking for crypt in -lcrypt" >&5
7360 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7586 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7361 7587
7362 xe_check_libs=" -lcrypt " 7588 xe_check_libs=" -lcrypt "
7363 cat > conftest.$ac_ext <<EOF 7589 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure" 7590 #line 7591 "configure"
7365 #include "confdefs.h" 7591 #include "confdefs.h"
7366 /* Override any gcc2 internal prototype to avoid an error. */ 7592 /* Override any gcc2 internal prototype to avoid an error. */
7367 /* We use char because int might match the return type of a gcc2 7593 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */ 7594 builtin and then its argument prototype would still apply. */
7369 char crypt(); 7595 char crypt();
7370 7596
7371 int main() { 7597 int main() {
7372 crypt() 7598 crypt()
7373 ; return 0; } 7599 ; return 0; }
7374 EOF 7600 EOF
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7376 rm -rf conftest* 7602 rm -rf conftest*
7377 eval "ac_cv_lib_$ac_lib_var=yes" 7603 eval "ac_cv_lib_$ac_lib_var=yes"
7378 else 7604 else
7379 echo "configure: failed program was:" >&5 7605 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5 7606 cat conftest.$ac_ext >&5
7404 7630
7405 } 7631 }
7406 fi 7632 fi
7407 test -z "$with_wnn" && { 7633 test -z "$with_wnn" && {
7408 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7634 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7409 echo "configure:7410: checking for jl_dic_list_e in -lwnn" >&5 7635 echo "configure:7636: checking for jl_dic_list_e in -lwnn" >&5
7410 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7636 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7411 7637
7412 xe_check_libs=" -lwnn " 7638 xe_check_libs=" -lwnn "
7413 cat > conftest.$ac_ext <<EOF 7639 cat > conftest.$ac_ext <<EOF
7414 #line 7415 "configure" 7640 #line 7641 "configure"
7415 #include "confdefs.h" 7641 #include "confdefs.h"
7416 /* Override any gcc2 internal prototype to avoid an error. */ 7642 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2 7643 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */ 7644 builtin and then its argument prototype would still apply. */
7419 char jl_dic_list_e(); 7645 char jl_dic_list_e();
7420 7646
7421 int main() { 7647 int main() {
7422 jl_dic_list_e() 7648 jl_dic_list_e()
7423 ; return 0; } 7649 ; return 0; }
7424 EOF 7650 EOF
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7426 rm -rf conftest* 7652 rm -rf conftest*
7427 eval "ac_cv_lib_$ac_lib_var=yes" 7653 eval "ac_cv_lib_$ac_lib_var=yes"
7428 else 7654 else
7429 echo "configure: failed program was:" >&5 7655 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5 7656 cat conftest.$ac_ext >&5
7457 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7683 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7458 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7684 echo " xemacs will be linked with \"mule-wnnfns.o\""
7459 fi 7685 fi
7460 7686
7461 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7687 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7462 echo "configure:7463: checking for jl_fi_dic_list in -lwnn" >&5 7688 echo "configure:7689: checking for jl_fi_dic_list in -lwnn" >&5
7463 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7689 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7464 7690
7465 xe_check_libs=" -lwnn " 7691 xe_check_libs=" -lwnn "
7466 cat > conftest.$ac_ext <<EOF 7692 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure" 7693 #line 7694 "configure"
7468 #include "confdefs.h" 7694 #include "confdefs.h"
7469 /* Override any gcc2 internal prototype to avoid an error. */ 7695 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2 7696 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */ 7697 builtin and then its argument prototype would still apply. */
7472 char jl_fi_dic_list(); 7698 char jl_fi_dic_list();
7473 7699
7474 int main() { 7700 int main() {
7475 jl_fi_dic_list() 7701 jl_fi_dic_list()
7476 ; return 0; } 7702 ; return 0; }
7477 EOF 7703 EOF
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7479 rm -rf conftest* 7705 rm -rf conftest*
7480 eval "ac_cv_lib_$ac_lib_var=yes" 7706 eval "ac_cv_lib_$ac_lib_var=yes"
7481 else 7707 else
7482 echo "configure: failed program was:" >&5 7708 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5 7709 cat conftest.$ac_ext >&5
7507 7733
7508 canna_includes_found=no 7734 canna_includes_found=no
7509 if test "$with_canna" != "no"; then 7735 if test "$with_canna" != "no"; then
7510 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 7736 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
7511 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 7737 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
7512 echo "configure:7513: checking for canna/jrkanji.h" >&5 7738 echo "configure:7739: checking for canna/jrkanji.h" >&5
7513 7739
7514 cat > conftest.$ac_ext <<EOF 7740 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure" 7741 #line 7742 "configure"
7516 #include "confdefs.h" 7742 #include "confdefs.h"
7517 #include <canna/jrkanji.h> 7743 #include <canna/jrkanji.h>
7518 EOF 7744 EOF
7519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7520 { (eval echo configure:7521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7746 { (eval echo configure:7747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7521 ac_err=`grep -v '^ *+' conftest.out` 7747 ac_err=`grep -v '^ *+' conftest.out`
7522 if test -z "$ac_err"; then 7748 if test -z "$ac_err"; then
7523 rm -rf conftest* 7749 rm -rf conftest*
7524 eval "ac_cv_header_$ac_safe=yes" 7750 eval "ac_cv_header_$ac_safe=yes"
7525 else 7751 else
7542 -d "/usr/local/canna/include"; then 7768 -d "/usr/local/canna/include"; then
7543 save_c_switch_site="$c_switch_site" 7769 save_c_switch_site="$c_switch_site"
7544 c_switch_site="$c_switch_site -I/usr/local/canna/include" 7770 c_switch_site="$c_switch_site -I/usr/local/canna/include"
7545 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 7771 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
7546 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 7772 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
7547 echo "configure:7548: checking for canna/jrkanji.h" >&5 7773 echo "configure:7774: checking for canna/jrkanji.h" >&5
7548 7774
7549 cat > conftest.$ac_ext <<EOF 7775 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure" 7776 #line 7777 "configure"
7551 #include "confdefs.h" 7777 #include "confdefs.h"
7552 #include <canna/jrkanji.h> 7778 #include <canna/jrkanji.h>
7553 EOF 7779 EOF
7554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7555 { (eval echo configure:7556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7781 { (eval echo configure:7782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7556 ac_err=`grep -v '^ *+' conftest.out` 7782 ac_err=`grep -v '^ *+' conftest.out`
7557 if test -z "$ac_err"; then 7783 if test -z "$ac_err"; then
7558 rm -rf conftest* 7784 rm -rf conftest*
7559 eval "ac_cv_header_$ac_safe=yes" 7785 eval "ac_cv_header_$ac_safe=yes"
7560 else 7786 else
7578 fi 7804 fi
7579 fi 7805 fi
7580 7806
7581 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7807 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7582 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7808 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7583 echo "configure:7584: checking for canna/RK.h" >&5 7809 echo "configure:7810: checking for canna/RK.h" >&5
7584 7810
7585 cat > conftest.$ac_ext <<EOF 7811 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure" 7812 #line 7813 "configure"
7587 #include "confdefs.h" 7813 #include "confdefs.h"
7588 #include <canna/RK.h> 7814 #include <canna/RK.h>
7589 EOF 7815 EOF
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7817 { (eval echo configure:7818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out` 7818 ac_err=`grep -v '^ *+' conftest.out`
7593 if test -z "$ac_err"; then 7819 if test -z "$ac_err"; then
7594 rm -rf conftest* 7820 rm -rf conftest*
7595 eval "ac_cv_header_$ac_safe=yes" 7821 eval "ac_cv_header_$ac_safe=yes"
7596 else 7822 else
7609 with_canna=no 7835 with_canna=no
7610 fi 7836 fi
7611 } 7837 }
7612 test -z "$with_canna" && { 7838 test -z "$with_canna" && {
7613 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7839 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7614 echo "configure:7615: checking for RkBgnBun in -lRKC" >&5 7840 echo "configure:7841: checking for RkBgnBun in -lRKC" >&5
7615 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7841 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7616 7842
7617 xe_check_libs=" -lRKC " 7843 xe_check_libs=" -lRKC "
7618 cat > conftest.$ac_ext <<EOF 7844 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure" 7845 #line 7846 "configure"
7620 #include "confdefs.h" 7846 #include "confdefs.h"
7621 /* Override any gcc2 internal prototype to avoid an error. */ 7847 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2 7848 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */ 7849 builtin and then its argument prototype would still apply. */
7624 char RkBgnBun(); 7850 char RkBgnBun();
7625 7851
7626 int main() { 7852 int main() {
7627 RkBgnBun() 7853 RkBgnBun()
7628 ; return 0; } 7854 ; return 0; }
7629 EOF 7855 EOF
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7631 rm -rf conftest* 7857 rm -rf conftest*
7632 eval "ac_cv_lib_$ac_lib_var=yes" 7858 eval "ac_cv_lib_$ac_lib_var=yes"
7633 else 7859 else
7634 echo "configure: failed program was:" >&5 7860 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5 7861 cat conftest.$ac_ext >&5
7648 fi 7874 fi
7649 7875
7650 } 7876 }
7651 test -z "$with_canna" && { 7877 test -z "$with_canna" && {
7652 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7878 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7653 echo "configure:7654: checking for jrKanjiControl in -lcanna" >&5 7879 echo "configure:7880: checking for jrKanjiControl in -lcanna" >&5
7654 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7880 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7655 7881
7656 xe_check_libs=" -lcanna " 7882 xe_check_libs=" -lcanna "
7657 cat > conftest.$ac_ext <<EOF 7883 cat > conftest.$ac_ext <<EOF
7658 #line 7659 "configure" 7884 #line 7885 "configure"
7659 #include "confdefs.h" 7885 #include "confdefs.h"
7660 /* Override any gcc2 internal prototype to avoid an error. */ 7886 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2 7887 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */ 7888 builtin and then its argument prototype would still apply. */
7663 char jrKanjiControl(); 7889 char jrKanjiControl();
7664 7890
7665 int main() { 7891 int main() {
7666 jrKanjiControl() 7892 jrKanjiControl()
7667 ; return 0; } 7893 ; return 0; }
7668 EOF 7894 EOF
7669 if { (eval echo configure:7670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7895 if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7670 rm -rf conftest* 7896 rm -rf conftest*
7671 eval "ac_cv_lib_$ac_lib_var=yes" 7897 eval "ac_cv_lib_$ac_lib_var=yes"
7672 else 7898 else
7673 echo "configure: failed program was:" >&5 7899 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5 7900 cat conftest.$ac_ext >&5
7713 7939
7714 if test "$need_motif" = "yes" ; then 7940 if test "$need_motif" = "yes" ; then
7715 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 7941 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
7716 7942
7717 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 7943 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
7718 echo "configure:7719: checking for layout_object_getvalue in -li18n" >&5 7944 echo "configure:7945: checking for layout_object_getvalue in -li18n" >&5
7719 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 7945 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
7720 7946
7721 xe_check_libs=" -li18n " 7947 xe_check_libs=" -li18n "
7722 cat > conftest.$ac_ext <<EOF 7948 cat > conftest.$ac_ext <<EOF
7723 #line 7724 "configure" 7949 #line 7950 "configure"
7724 #include "confdefs.h" 7950 #include "confdefs.h"
7725 /* Override any gcc2 internal prototype to avoid an error. */ 7951 /* Override any gcc2 internal prototype to avoid an error. */
7726 /* We use char because int might match the return type of a gcc2 7952 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */ 7953 builtin and then its argument prototype would still apply. */
7728 char layout_object_getvalue(); 7954 char layout_object_getvalue();
7729 7955
7730 int main() { 7956 int main() {
7731 layout_object_getvalue() 7957 layout_object_getvalue()
7732 ; return 0; } 7958 ; return 0; }
7733 EOF 7959 EOF
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7735 rm -rf conftest* 7961 rm -rf conftest*
7736 eval "ac_cv_lib_$ac_lib_var=yes" 7962 eval "ac_cv_lib_$ac_lib_var=yes"
7737 else 7963 else
7738 echo "configure: failed program was:" >&5 7964 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5 7965 cat conftest.$ac_ext >&5
7793 eval "$xe_add_unique_runpath_dir"; 8019 eval "$xe_add_unique_runpath_dir";
7794 fi 8020 fi
7795 fi 8021 fi
7796 if test -n "$runpath"; then 8022 if test -n "$runpath"; then
7797 ld_switch_run="${dash_r}${runpath}" 8023 ld_switch_run="${dash_r}${runpath}"
8024
8025 if test "$GCC" = "yes"; then
8026 set x $ld_switch_run; shift; ld_switch_run=""
8027 while test -n "$1"; do
8028 case $1 in
8029 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8030 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
8031 -Xlinker* ) ;;
8032 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
8033 esac
8034 shift
8035 done
8036 fi
7798 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 8037 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
7799 fi 8038 fi
7800 fi 8039 fi
7801 8040
7802 fi 8041 fi
7803 8042
7804 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8043 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
7805 do 8044 do
7806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7807 echo "configure:7808: checking for $ac_func" >&5 8046 echo "configure:8047: checking for $ac_func" >&5
7808 8047
7809 cat > conftest.$ac_ext <<EOF 8048 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure" 8049 #line 8050 "configure"
7811 #include "confdefs.h" 8050 #include "confdefs.h"
7812 /* System header to define __stub macros and hopefully few prototypes, 8051 /* System header to define __stub macros and hopefully few prototypes,
7813 which can conflict with char $ac_func(); below. */ 8052 which can conflict with char $ac_func(); below. */
7814 #include <assert.h> 8053 #include <assert.h>
7815 /* Override any gcc2 internal prototype to avoid an error. */ 8054 /* Override any gcc2 internal prototype to avoid an error. */
7828 $ac_func(); 8067 $ac_func();
7829 #endif 8068 #endif
7830 8069
7831 ; return 0; } 8070 ; return 0; }
7832 EOF 8071 EOF
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8072 if { (eval echo configure:8073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7834 rm -rf conftest* 8073 rm -rf conftest*
7835 eval "ac_cv_func_$ac_func=yes" 8074 eval "ac_cv_func_$ac_func=yes"
7836 else 8075 else
7837 echo "configure: failed program was:" >&5 8076 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5 8077 cat conftest.$ac_ext >&5
7865 fi ;; 8104 fi ;;
7866 * ) 8105 * )
7867 for ac_func in realpath 8106 for ac_func in realpath
7868 do 8107 do
7869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_func" >&5 8109 echo "configure:8110: checking for $ac_func" >&5
7871 8110
7872 cat > conftest.$ac_ext <<EOF 8111 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure" 8112 #line 8113 "configure"
7874 #include "confdefs.h" 8113 #include "confdefs.h"
7875 /* System header to define __stub macros and hopefully few prototypes, 8114 /* System header to define __stub macros and hopefully few prototypes,
7876 which can conflict with char $ac_func(); below. */ 8115 which can conflict with char $ac_func(); below. */
7877 #include <assert.h> 8116 #include <assert.h>
7878 /* Override any gcc2 internal prototype to avoid an error. */ 8117 /* Override any gcc2 internal prototype to avoid an error. */
7891 $ac_func(); 8130 $ac_func();
7892 #endif 8131 #endif
7893 8132
7894 ; return 0; } 8133 ; return 0; }
7895 EOF 8134 EOF
7896 if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7897 rm -rf conftest* 8136 rm -rf conftest*
7898 eval "ac_cv_func_$ac_func=yes" 8137 eval "ac_cv_func_$ac_func=yes"
7899 else 8138 else
7900 echo "configure: failed program was:" >&5 8139 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5 8140 cat conftest.$ac_ext >&5
7924 echo " xemacs will be linked with \"realpath.o\"" 8163 echo " xemacs will be linked with \"realpath.o\""
7925 fi ;; 8164 fi ;;
7926 esac 8165 esac
7927 8166
7928 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8167 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7929 echo "configure:7930: checking whether netdb declares h_errno" >&5 8168 echo "configure:8169: checking whether netdb declares h_errno" >&5
7930 cat > conftest.$ac_ext <<EOF 8169 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure" 8170 #line 8171 "configure"
7932 #include "confdefs.h" 8171 #include "confdefs.h"
7933 #include <netdb.h> 8172 #include <netdb.h>
7934 int main() { 8173 int main() {
7935 return h_errno; 8174 return h_errno;
7936 ; return 0; } 8175 ; return 0; }
7937 EOF 8176 EOF
7938 if { (eval echo configure:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7939 rm -rf conftest* 8178 rm -rf conftest*
7940 echo "$ac_t""yes" 1>&6 8179 echo "$ac_t""yes" 1>&6
7941 { test "$extra_verbose" = "yes" && cat << \EOF 8180 { test "$extra_verbose" = "yes" && cat << \EOF
7942 Defining HAVE_H_ERRNO 8181 Defining HAVE_H_ERRNO
7943 EOF 8182 EOF
7953 echo "$ac_t""no" 1>&6 8192 echo "$ac_t""no" 1>&6
7954 fi 8193 fi
7955 rm -f conftest* 8194 rm -f conftest*
7956 8195
7957 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8196 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7958 echo "configure:7959: checking for sigsetjmp" >&5 8197 echo "configure:8198: checking for sigsetjmp" >&5
7959 cat > conftest.$ac_ext <<EOF 8198 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure" 8199 #line 8200 "configure"
7961 #include "confdefs.h" 8200 #include "confdefs.h"
7962 #include <setjmp.h> 8201 #include <setjmp.h>
7963 int main() { 8202 int main() {
7964 sigjmp_buf bar; sigsetjmp (bar, 0); 8203 sigjmp_buf bar; sigsetjmp (bar, 0);
7965 ; return 0; } 8204 ; return 0; }
7966 EOF 8205 EOF
7967 if { (eval echo configure:7968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8206 if { (eval echo configure:8207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7968 rm -rf conftest* 8207 rm -rf conftest*
7969 echo "$ac_t""yes" 1>&6 8208 echo "$ac_t""yes" 1>&6
7970 { test "$extra_verbose" = "yes" && cat << \EOF 8209 { test "$extra_verbose" = "yes" && cat << \EOF
7971 Defining HAVE_SIGSETJMP 8210 Defining HAVE_SIGSETJMP
7972 EOF 8211 EOF
7982 echo "$ac_t""no" 1>&6 8221 echo "$ac_t""no" 1>&6
7983 fi 8222 fi
7984 rm -f conftest* 8223 rm -f conftest*
7985 8224
7986 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8225 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7987 echo "configure:7988: checking whether localtime caches TZ" >&5 8226 echo "configure:8227: checking whether localtime caches TZ" >&5
7988 8227
7989 if test "$ac_cv_func_tzset" = "yes"; then 8228 if test "$ac_cv_func_tzset" = "yes"; then
7990 cat > conftest.$ac_ext <<EOF 8229 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure" 8230 #line 8231 "configure"
7992 #include "confdefs.h" 8231 #include "confdefs.h"
7993 #include <time.h> 8232 #include <time.h>
7994 #if STDC_HEADERS 8233 #if STDC_HEADERS
7995 # include <stdlib.h> 8234 # include <stdlib.h>
7996 #endif 8235 #endif
8021 if (localtime (&now)->tm_hour != hour_unset) 8260 if (localtime (&now)->tm_hour != hour_unset)
8022 exit (1); 8261 exit (1);
8023 exit (0); 8262 exit (0);
8024 } 8263 }
8025 EOF 8264 EOF
8026 if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8265 if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8027 then 8266 then
8028 emacs_cv_localtime_cache=no 8267 emacs_cv_localtime_cache=no
8029 else 8268 else
8030 echo "configure: failed program was:" >&5 8269 echo "configure: failed program was:" >&5
8031 cat conftest.$ac_ext >&5 8270 cat conftest.$ac_ext >&5
8050 8289
8051 fi 8290 fi
8052 8291
8053 if test "$HAVE_TIMEVAL" = "yes"; then 8292 if test "$HAVE_TIMEVAL" = "yes"; then
8054 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 8293 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
8055 echo "configure:8056: checking whether gettimeofday cannot accept two arguments" >&5 8294 echo "configure:8295: checking whether gettimeofday cannot accept two arguments" >&5
8056 cat > conftest.$ac_ext <<EOF 8295 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure" 8296 #line 8297 "configure"
8058 #include "confdefs.h" 8297 #include "confdefs.h"
8059 8298
8060 #ifdef TIME_WITH_SYS_TIME 8299 #ifdef TIME_WITH_SYS_TIME
8061 #include <sys/time.h> 8300 #include <sys/time.h>
8062 #include <time.h> 8301 #include <time.h>
8074 struct timezone dummy; 8313 struct timezone dummy;
8075 gettimeofday (&time, &dummy); 8314 gettimeofday (&time, &dummy);
8076 8315
8077 ; return 0; } 8316 ; return 0; }
8078 EOF 8317 EOF
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8318 if { (eval echo configure:8319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8080 rm -rf conftest* 8319 rm -rf conftest*
8081 echo "$ac_t""no" 1>&6 8320 echo "$ac_t""no" 1>&6
8082 else 8321 else
8083 echo "configure: failed program was:" >&5 8322 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5 8323 cat conftest.$ac_ext >&5
8096 rm -f conftest* 8335 rm -f conftest*
8097 fi 8336 fi
8098 8337
8099 8338
8100 echo $ac_n "checking for inline""... $ac_c" 1>&6 8339 echo $ac_n "checking for inline""... $ac_c" 1>&6
8101 echo "configure:8102: checking for inline" >&5 8340 echo "configure:8341: checking for inline" >&5
8102 8341
8103 ac_cv_c_inline=no 8342 ac_cv_c_inline=no
8104 for ac_kw in inline __inline__ __inline; do 8343 for ac_kw in inline __inline__ __inline; do
8105 cat > conftest.$ac_ext <<EOF 8344 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure" 8345 #line 8346 "configure"
8107 #include "confdefs.h" 8346 #include "confdefs.h"
8108 8347
8109 int main() { 8348 int main() {
8110 } $ac_kw foo() { 8349 } $ac_kw foo() {
8111 ; return 0; } 8350 ; return 0; }
8112 EOF 8351 EOF
8113 if { (eval echo configure:8114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8352 if { (eval echo configure:8353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8114 rm -rf conftest* 8353 rm -rf conftest*
8115 ac_cv_c_inline=$ac_kw; break 8354 ac_cv_c_inline=$ac_kw; break
8116 else 8355 else
8117 echo "configure: failed program was:" >&5 8356 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5 8357 cat conftest.$ac_ext >&5
8158 8397
8159 8398
8160 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8399 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8161 # for constant arguments. Useless! 8400 # for constant arguments. Useless!
8162 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8401 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8163 echo "configure:8164: checking for working alloca.h" >&5 8402 echo "configure:8403: checking for working alloca.h" >&5
8164 8403
8165 cat > conftest.$ac_ext <<EOF 8404 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure" 8405 #line 8406 "configure"
8167 #include "confdefs.h" 8406 #include "confdefs.h"
8168 #include <alloca.h> 8407 #include <alloca.h>
8169 int main() { 8408 int main() {
8170 char *p = alloca(2 * sizeof(int)); 8409 char *p = alloca(2 * sizeof(int));
8171 ; return 0; } 8410 ; return 0; }
8172 EOF 8411 EOF
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8412 if { (eval echo configure:8413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8174 rm -rf conftest* 8413 rm -rf conftest*
8175 ac_cv_header_alloca_h=yes 8414 ac_cv_header_alloca_h=yes
8176 else 8415 else
8177 echo "configure: failed program was:" >&5 8416 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 8417 cat conftest.$ac_ext >&5
8192 } 8431 }
8193 8432
8194 fi 8433 fi
8195 8434
8196 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8435 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8197 echo "configure:8198: checking for alloca" >&5 8436 echo "configure:8437: checking for alloca" >&5
8198 8437
8199 cat > conftest.$ac_ext <<EOF 8438 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure" 8439 #line 8440 "configure"
8201 #include "confdefs.h" 8440 #include "confdefs.h"
8202 8441
8203 #ifdef __GNUC__ 8442 #ifdef __GNUC__
8204 # define alloca __builtin_alloca 8443 # define alloca __builtin_alloca
8205 #else 8444 #else
8218 8457
8219 int main() { 8458 int main() {
8220 char *p = (char *) alloca(1); 8459 char *p = (char *) alloca(1);
8221 ; return 0; } 8460 ; return 0; }
8222 EOF 8461 EOF
8223 if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8462 if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8224 rm -rf conftest* 8463 rm -rf conftest*
8225 ac_cv_func_alloca_works=yes 8464 ac_cv_func_alloca_works=yes
8226 else 8465 else
8227 echo "configure: failed program was:" >&5 8466 echo "configure: failed program was:" >&5
8228 cat conftest.$ac_ext >&5 8467 cat conftest.$ac_ext >&5
8257 EOF 8496 EOF
8258 } 8497 }
8259 8498
8260 8499
8261 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8500 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8262 echo "configure:8263: checking whether alloca needs Cray hooks" >&5 8501 echo "configure:8502: checking whether alloca needs Cray hooks" >&5
8263 8502
8264 cat > conftest.$ac_ext <<EOF 8503 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure" 8504 #line 8505 "configure"
8266 #include "confdefs.h" 8505 #include "confdefs.h"
8267 #if defined(CRAY) && ! defined(CRAY2) 8506 #if defined(CRAY) && ! defined(CRAY2)
8268 webecray 8507 webecray
8269 #else 8508 #else
8270 wenotbecray 8509 wenotbecray
8284 8523
8285 echo "$ac_t""$ac_cv_os_cray" 1>&6 8524 echo "$ac_t""$ac_cv_os_cray" 1>&6
8286 if test $ac_cv_os_cray = yes; then 8525 if test $ac_cv_os_cray = yes; then
8287 for ac_func in _getb67 GETB67 getb67; do 8526 for ac_func in _getb67 GETB67 getb67; do
8288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8289 echo "configure:8290: checking for $ac_func" >&5 8528 echo "configure:8529: checking for $ac_func" >&5
8290 8529
8291 cat > conftest.$ac_ext <<EOF 8530 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure" 8531 #line 8532 "configure"
8293 #include "confdefs.h" 8532 #include "confdefs.h"
8294 /* System header to define __stub macros and hopefully few prototypes, 8533 /* System header to define __stub macros and hopefully few prototypes,
8295 which can conflict with char $ac_func(); below. */ 8534 which can conflict with char $ac_func(); below. */
8296 #include <assert.h> 8535 #include <assert.h>
8297 /* Override any gcc2 internal prototype to avoid an error. */ 8536 /* Override any gcc2 internal prototype to avoid an error. */
8310 $ac_func(); 8549 $ac_func();
8311 #endif 8550 #endif
8312 8551
8313 ; return 0; } 8552 ; return 0; }
8314 EOF 8553 EOF
8315 if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8316 rm -rf conftest* 8555 rm -rf conftest*
8317 eval "ac_cv_func_$ac_func=yes" 8556 eval "ac_cv_func_$ac_func=yes"
8318 else 8557 else
8319 echo "configure: failed program was:" >&5 8558 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5 8559 cat conftest.$ac_ext >&5
8340 8579
8341 done 8580 done
8342 fi 8581 fi
8343 8582
8344 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8583 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8345 echo "configure:8346: checking stack direction for C alloca" >&5 8584 echo "configure:8585: checking stack direction for C alloca" >&5
8346 8585
8347 cat > conftest.$ac_ext <<EOF 8586 cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure" 8587 #line 8588 "configure"
8349 #include "confdefs.h" 8588 #include "confdefs.h"
8350 find_stack_direction () 8589 find_stack_direction ()
8351 { 8590 {
8352 static char *addr = 0; 8591 static char *addr = 0;
8353 auto char dummy; 8592 auto char dummy;
8362 main () 8601 main ()
8363 { 8602 {
8364 exit (find_stack_direction() < 0); 8603 exit (find_stack_direction() < 0);
8365 } 8604 }
8366 EOF 8605 EOF
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8368 then 8607 then
8369 ac_cv_c_stack_direction=1 8608 ac_cv_c_stack_direction=1
8370 else 8609 else
8371 echo "configure: failed program was:" >&5 8610 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5 8611 cat conftest.$ac_ext >&5
8390 echo " xemacs will be linked with \"$ALLOCA\"" 8629 echo " xemacs will be linked with \"$ALLOCA\""
8391 fi 8630 fi
8392 8631
8393 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8632 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8394 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8633 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8395 echo "configure:8396: checking for vfork.h" >&5 8634 echo "configure:8635: checking for vfork.h" >&5
8396 8635
8397 cat > conftest.$ac_ext <<EOF 8636 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure" 8637 #line 8638 "configure"
8399 #include "confdefs.h" 8638 #include "confdefs.h"
8400 #include <vfork.h> 8639 #include <vfork.h>
8401 EOF 8640 EOF
8402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8403 { (eval echo configure:8404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8642 { (eval echo configure:8643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8404 ac_err=`grep -v '^ *+' conftest.out` 8643 ac_err=`grep -v '^ *+' conftest.out`
8405 if test -z "$ac_err"; then 8644 if test -z "$ac_err"; then
8406 rm -rf conftest* 8645 rm -rf conftest*
8407 eval "ac_cv_header_$ac_safe=yes" 8646 eval "ac_cv_header_$ac_safe=yes"
8408 else 8647 else
8426 else 8665 else
8427 echo "$ac_t""no" 1>&6 8666 echo "$ac_t""no" 1>&6
8428 fi 8667 fi
8429 8668
8430 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8669 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8431 echo "configure:8432: checking for working vfork" >&5 8670 echo "configure:8671: checking for working vfork" >&5
8432 8671
8433 cat > conftest.$ac_ext <<EOF 8672 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure" 8673 #line 8674 "configure"
8435 #include "confdefs.h" 8674 #include "confdefs.h"
8436 /* Thanks to Paul Eggert for this test. */ 8675 /* Thanks to Paul Eggert for this test. */
8437 #include <stdio.h> 8676 #include <stdio.h>
8438 #include <sys/types.h> 8677 #include <sys/types.h>
8439 #include <sys/stat.h> 8678 #include <sys/stat.h>
8524 || fstat(fileno(stdout), &st) != 0 8763 || fstat(fileno(stdout), &st) != 0
8525 ); 8764 );
8526 } 8765 }
8527 } 8766 }
8528 EOF 8767 EOF
8529 if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8530 then 8769 then
8531 ac_cv_func_vfork_works=yes 8770 ac_cv_func_vfork_works=yes
8532 else 8771 else
8533 echo "configure: failed program was:" >&5 8772 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5 8773 cat conftest.$ac_ext >&5
8549 8788
8550 fi 8789 fi
8551 8790
8552 8791
8553 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8792 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8554 echo "configure:8555: checking for working strcoll" >&5 8793 echo "configure:8794: checking for working strcoll" >&5
8555 8794
8556 cat > conftest.$ac_ext <<EOF 8795 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure" 8796 #line 8797 "configure"
8558 #include "confdefs.h" 8797 #include "confdefs.h"
8559 #include <string.h> 8798 #include <string.h>
8560 main () 8799 main ()
8561 { 8800 {
8562 exit (strcoll ("abc", "def") >= 0 || 8801 exit (strcoll ("abc", "def") >= 0 ||
8563 strcoll ("ABC", "DEF") >= 0 || 8802 strcoll ("ABC", "DEF") >= 0 ||
8564 strcoll ("123", "456") >= 0); 8803 strcoll ("123", "456") >= 0);
8565 } 8804 }
8566 EOF 8805 EOF
8567 if { (eval echo configure:8568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8806 if { (eval echo configure:8807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8568 then 8807 then
8569 ac_cv_func_strcoll_works=yes 8808 ac_cv_func_strcoll_works=yes
8570 else 8809 else
8571 echo "configure: failed program was:" >&5 8810 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5 8811 cat conftest.$ac_ext >&5
8589 8828
8590 8829
8591 for ac_func in getpgrp 8830 for ac_func in getpgrp
8592 do 8831 do
8593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8594 echo "configure:8595: checking for $ac_func" >&5 8833 echo "configure:8834: checking for $ac_func" >&5
8595 8834
8596 cat > conftest.$ac_ext <<EOF 8835 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure" 8836 #line 8837 "configure"
8598 #include "confdefs.h" 8837 #include "confdefs.h"
8599 /* System header to define __stub macros and hopefully few prototypes, 8838 /* System header to define __stub macros and hopefully few prototypes,
8600 which can conflict with char $ac_func(); below. */ 8839 which can conflict with char $ac_func(); below. */
8601 #include <assert.h> 8840 #include <assert.h>
8602 /* Override any gcc2 internal prototype to avoid an error. */ 8841 /* Override any gcc2 internal prototype to avoid an error. */
8615 $ac_func(); 8854 $ac_func();
8616 #endif 8855 #endif
8617 8856
8618 ; return 0; } 8857 ; return 0; }
8619 EOF 8858 EOF
8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8621 rm -rf conftest* 8860 rm -rf conftest*
8622 eval "ac_cv_func_$ac_func=yes" 8861 eval "ac_cv_func_$ac_func=yes"
8623 else 8862 else
8624 echo "configure: failed program was:" >&5 8863 echo "configure: failed program was:" >&5
8625 cat conftest.$ac_ext >&5 8864 cat conftest.$ac_ext >&5
8643 echo "$ac_t""no" 1>&6 8882 echo "$ac_t""no" 1>&6
8644 fi 8883 fi
8645 done 8884 done
8646 8885
8647 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8886 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8648 echo "configure:8649: checking whether getpgrp takes no argument" >&5 8887 echo "configure:8888: checking whether getpgrp takes no argument" >&5
8649 8888
8650 cat > conftest.$ac_ext <<EOF 8889 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure" 8890 #line 8891 "configure"
8652 #include "confdefs.h" 8891 #include "confdefs.h"
8653 8892
8654 /* 8893 /*
8655 * If this system has a BSD-style getpgrp(), 8894 * If this system has a BSD-style getpgrp(),
8656 * which takes a pid argument, exit unsuccessfully. 8895 * which takes a pid argument, exit unsuccessfully.
8701 exit(s>>8); 8940 exit(s>>8);
8702 } 8941 }
8703 } 8942 }
8704 8943
8705 EOF 8944 EOF
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8707 then 8946 then
8708 ac_cv_func_getpgrp_void=yes 8947 ac_cv_func_getpgrp_void=yes
8709 else 8948 else
8710 echo "configure: failed program was:" >&5 8949 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5 8950 cat conftest.$ac_ext >&5
8727 8966
8728 fi 8967 fi
8729 8968
8730 8969
8731 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8970 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8732 echo "configure:8733: checking for working mmap" >&5 8971 echo "configure:8972: checking for working mmap" >&5
8733 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8972 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8734 cat > conftest.$ac_ext <<EOF 8973 cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure" 8974 #line 8975 "configure"
8736 #include "confdefs.h" 8975 #include "confdefs.h"
8737 #include <stdio.h> 8976 #include <stdio.h>
8738 #include <unistd.h> 8977 #include <unistd.h>
8739 #include <fcntl.h> 8978 #include <fcntl.h>
8740 #include <sys/mman.h> 8979 #include <sys/mman.h>
8763 return 0; 9002 return 0;
8764 perror ("conftest: mmap failed"); 9003 perror ("conftest: mmap failed");
8765 return 1; 9004 return 1;
8766 } 9005 }
8767 EOF 9006 EOF
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 9007 if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8769 then 9008 then
8770 have_mmap=yes 9009 have_mmap=yes
8771 else 9010 else
8772 echo "configure: failed program was:" >&5 9011 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5 9012 cat conftest.$ac_ext >&5
8797 } 9036 }
8798 9037
8799 9038
8800 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9039 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8801 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9040 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8802 echo "configure:8803: checking for termios.h" >&5 9041 echo "configure:9042: checking for termios.h" >&5
8803 9042
8804 cat > conftest.$ac_ext <<EOF 9043 cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure" 9044 #line 9045 "configure"
8806 #include "confdefs.h" 9045 #include "confdefs.h"
8807 #include <termios.h> 9046 #include <termios.h>
8808 EOF 9047 EOF
8809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8810 { (eval echo configure:8811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9049 { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8811 ac_err=`grep -v '^ *+' conftest.out` 9050 ac_err=`grep -v '^ *+' conftest.out`
8812 if test -z "$ac_err"; then 9051 if test -z "$ac_err"; then
8813 rm -rf conftest* 9052 rm -rf conftest*
8814 eval "ac_cv_header_$ac_safe=yes" 9053 eval "ac_cv_header_$ac_safe=yes"
8815 else 9054 else
8848 9087
8849 else 9088 else
8850 echo "$ac_t""no" 1>&6 9089 echo "$ac_t""no" 1>&6
8851 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9090 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8852 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9091 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8853 echo "configure:8854: checking for termio.h" >&5 9092 echo "configure:9093: checking for termio.h" >&5
8854 9093
8855 cat > conftest.$ac_ext <<EOF 9094 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure" 9095 #line 9096 "configure"
8857 #include "confdefs.h" 9096 #include "confdefs.h"
8858 #include <termio.h> 9097 #include <termio.h>
8859 EOF 9098 EOF
8860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9100 { (eval echo configure:9101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8862 ac_err=`grep -v '^ *+' conftest.out` 9101 ac_err=`grep -v '^ *+' conftest.out`
8863 if test -z "$ac_err"; then 9102 if test -z "$ac_err"; then
8864 rm -rf conftest* 9103 rm -rf conftest*
8865 eval "ac_cv_header_$ac_safe=yes" 9104 eval "ac_cv_header_$ac_safe=yes"
8866 else 9105 else
8888 fi 9127 fi
8889 9128
8890 9129
8891 9130
8892 echo $ac_n "checking for socket""... $ac_c" 1>&6 9131 echo $ac_n "checking for socket""... $ac_c" 1>&6
8893 echo "configure:8894: checking for socket" >&5 9132 echo "configure:9133: checking for socket" >&5
8894 9133
8895 cat > conftest.$ac_ext <<EOF 9134 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure" 9135 #line 9136 "configure"
8897 #include "confdefs.h" 9136 #include "confdefs.h"
8898 /* System header to define __stub macros and hopefully few prototypes, 9137 /* System header to define __stub macros and hopefully few prototypes,
8899 which can conflict with char socket(); below. */ 9138 which can conflict with char socket(); below. */
8900 #include <assert.h> 9139 #include <assert.h>
8901 /* Override any gcc2 internal prototype to avoid an error. */ 9140 /* Override any gcc2 internal prototype to avoid an error. */
8914 socket(); 9153 socket();
8915 #endif 9154 #endif
8916 9155
8917 ; return 0; } 9156 ; return 0; }
8918 EOF 9157 EOF
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9158 if { (eval echo configure:9159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8920 rm -rf conftest* 9159 rm -rf conftest*
8921 eval "ac_cv_func_socket=yes" 9160 eval "ac_cv_func_socket=yes"
8922 else 9161 else
8923 echo "configure: failed program was:" >&5 9162 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5 9163 cat conftest.$ac_ext >&5
8929 9168
8930 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9169 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8931 echo "$ac_t""yes" 1>&6 9170 echo "$ac_t""yes" 1>&6
8932 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9171 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8933 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9172 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8934 echo "configure:8935: checking for netinet/in.h" >&5 9173 echo "configure:9174: checking for netinet/in.h" >&5
8935 9174
8936 cat > conftest.$ac_ext <<EOF 9175 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure" 9176 #line 9177 "configure"
8938 #include "confdefs.h" 9177 #include "confdefs.h"
8939 #include <netinet/in.h> 9178 #include <netinet/in.h>
8940 EOF 9179 EOF
8941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8942 { (eval echo configure:8943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9181 { (eval echo configure:9182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8943 ac_err=`grep -v '^ *+' conftest.out` 9182 ac_err=`grep -v '^ *+' conftest.out`
8944 if test -z "$ac_err"; then 9183 if test -z "$ac_err"; then
8945 rm -rf conftest* 9184 rm -rf conftest*
8946 eval "ac_cv_header_$ac_safe=yes" 9185 eval "ac_cv_header_$ac_safe=yes"
8947 else 9186 else
8954 rm -f conftest* 9193 rm -f conftest*
8955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8956 echo "$ac_t""yes" 1>&6 9195 echo "$ac_t""yes" 1>&6
8957 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9196 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8958 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9197 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8959 echo "configure:8960: checking for arpa/inet.h" >&5 9198 echo "configure:9199: checking for arpa/inet.h" >&5
8960 9199
8961 cat > conftest.$ac_ext <<EOF 9200 cat > conftest.$ac_ext <<EOF
8962 #line 8963 "configure" 9201 #line 9202 "configure"
8963 #include "confdefs.h" 9202 #include "confdefs.h"
8964 #include <arpa/inet.h> 9203 #include <arpa/inet.h>
8965 EOF 9204 EOF
8966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8967 { (eval echo configure:8968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9206 { (eval echo configure:9207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8968 ac_err=`grep -v '^ *+' conftest.out` 9207 ac_err=`grep -v '^ *+' conftest.out`
8969 if test -z "$ac_err"; then 9208 if test -z "$ac_err"; then
8970 rm -rf conftest* 9209 rm -rf conftest*
8971 eval "ac_cv_header_$ac_safe=yes" 9210 eval "ac_cv_header_$ac_safe=yes"
8972 else 9211 else
8987 #define HAVE_SOCKETS 1 9226 #define HAVE_SOCKETS 1
8988 EOF 9227 EOF
8989 } 9228 }
8990 9229
8991 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9230 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8992 echo "configure:8993: checking "for sun_len member in struct sockaddr_un"" >&5 9231 echo "configure:9232: checking "for sun_len member in struct sockaddr_un"" >&5
8993 cat > conftest.$ac_ext <<EOF 9232 cat > conftest.$ac_ext <<EOF
8994 #line 8995 "configure" 9233 #line 9234 "configure"
8995 #include "confdefs.h" 9234 #include "confdefs.h"
8996 9235
8997 #include <sys/types.h> 9236 #include <sys/types.h>
8998 #include <sys/socket.h> 9237 #include <sys/socket.h>
8999 #include <sys/un.h> 9238 #include <sys/un.h>
9000 9239
9001 int main() { 9240 int main() {
9002 static struct sockaddr_un x; x.sun_len = 1; 9241 static struct sockaddr_un x; x.sun_len = 1;
9003 ; return 0; } 9242 ; return 0; }
9004 EOF 9243 EOF
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9006 rm -rf conftest* 9245 rm -rf conftest*
9007 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9246 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9008 Defining HAVE_SOCKADDR_SUN_LEN 9247 Defining HAVE_SOCKADDR_SUN_LEN
9009 EOF 9248 EOF
9010 cat >> confdefs.h <<\EOF 9249 cat >> confdefs.h <<\EOF
9018 rm -rf conftest* 9257 rm -rf conftest*
9019 echo "$ac_t""no" 1>&6 9258 echo "$ac_t""no" 1>&6
9020 fi 9259 fi
9021 rm -f conftest* 9260 rm -f conftest*
9022 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9261 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
9023 echo "configure:9024: checking "for ip_mreq struct in netinet/in.h"" >&5 9262 echo "configure:9263: checking "for ip_mreq struct in netinet/in.h"" >&5
9024 cat > conftest.$ac_ext <<EOF 9263 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure" 9264 #line 9265 "configure"
9026 #include "confdefs.h" 9265 #include "confdefs.h"
9027 9266
9028 #include <netinet/in.h> 9267 #include <netinet/in.h>
9029 9268
9030 int main() { 9269 int main() {
9031 static struct ip_mreq x; 9270 static struct ip_mreq x;
9032 ; return 0; } 9271 ; return 0; }
9033 EOF 9272 EOF
9034 if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9035 rm -rf conftest* 9274 rm -rf conftest*
9036 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9275 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9037 Defining HAVE_MULTICAST 9276 Defining HAVE_MULTICAST
9038 EOF 9277 EOF
9039 cat >> confdefs.h <<\EOF 9278 cat >> confdefs.h <<\EOF
9060 echo "$ac_t""no" 1>&6 9299 echo "$ac_t""no" 1>&6
9061 fi 9300 fi
9062 9301
9063 9302
9064 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9303 echo $ac_n "checking for msgget""... $ac_c" 1>&6
9065 echo "configure:9066: checking for msgget" >&5 9304 echo "configure:9305: checking for msgget" >&5
9066 9305
9067 cat > conftest.$ac_ext <<EOF 9306 cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure" 9307 #line 9308 "configure"
9069 #include "confdefs.h" 9308 #include "confdefs.h"
9070 /* System header to define __stub macros and hopefully few prototypes, 9309 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char msgget(); below. */ 9310 which can conflict with char msgget(); below. */
9072 #include <assert.h> 9311 #include <assert.h>
9073 /* Override any gcc2 internal prototype to avoid an error. */ 9312 /* Override any gcc2 internal prototype to avoid an error. */
9086 msgget(); 9325 msgget();
9087 #endif 9326 #endif
9088 9327
9089 ; return 0; } 9328 ; return 0; }
9090 EOF 9329 EOF
9091 if { (eval echo configure:9092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9092 rm -rf conftest* 9331 rm -rf conftest*
9093 eval "ac_cv_func_msgget=yes" 9332 eval "ac_cv_func_msgget=yes"
9094 else 9333 else
9095 echo "configure: failed program was:" >&5 9334 echo "configure: failed program was:" >&5
9096 cat conftest.$ac_ext >&5 9335 cat conftest.$ac_ext >&5
9101 9340
9102 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9341 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6 9342 echo "$ac_t""yes" 1>&6
9104 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9343 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
9105 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9344 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
9106 echo "configure:9107: checking for sys/ipc.h" >&5 9345 echo "configure:9346: checking for sys/ipc.h" >&5
9107 9346
9108 cat > conftest.$ac_ext <<EOF 9347 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure" 9348 #line 9349 "configure"
9110 #include "confdefs.h" 9349 #include "confdefs.h"
9111 #include <sys/ipc.h> 9350 #include <sys/ipc.h>
9112 EOF 9351 EOF
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9353 { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out` 9354 ac_err=`grep -v '^ *+' conftest.out`
9116 if test -z "$ac_err"; then 9355 if test -z "$ac_err"; then
9117 rm -rf conftest* 9356 rm -rf conftest*
9118 eval "ac_cv_header_$ac_safe=yes" 9357 eval "ac_cv_header_$ac_safe=yes"
9119 else 9358 else
9126 rm -f conftest* 9365 rm -f conftest*
9127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9128 echo "$ac_t""yes" 1>&6 9367 echo "$ac_t""yes" 1>&6
9129 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9368 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
9130 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9369 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
9131 echo "configure:9132: checking for sys/msg.h" >&5 9370 echo "configure:9371: checking for sys/msg.h" >&5
9132 9371
9133 cat > conftest.$ac_ext <<EOF 9372 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure" 9373 #line 9374 "configure"
9135 #include "confdefs.h" 9374 #include "confdefs.h"
9136 #include <sys/msg.h> 9375 #include <sys/msg.h>
9137 EOF 9376 EOF
9138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9139 { (eval echo configure:9140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9378 { (eval echo configure:9379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9140 ac_err=`grep -v '^ *+' conftest.out` 9379 ac_err=`grep -v '^ *+' conftest.out`
9141 if test -z "$ac_err"; then 9380 if test -z "$ac_err"; then
9142 rm -rf conftest* 9381 rm -rf conftest*
9143 eval "ac_cv_header_$ac_safe=yes" 9382 eval "ac_cv_header_$ac_safe=yes"
9144 else 9383 else
9172 fi 9411 fi
9173 9412
9174 9413
9175 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 9414 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
9176 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 9415 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
9177 echo "configure:9178: checking for dirent.h" >&5 9416 echo "configure:9417: checking for dirent.h" >&5
9178 9417
9179 cat > conftest.$ac_ext <<EOF 9418 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure" 9419 #line 9420 "configure"
9181 #include "confdefs.h" 9420 #include "confdefs.h"
9182 #include <dirent.h> 9421 #include <dirent.h>
9183 EOF 9422 EOF
9184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9185 { (eval echo configure:9186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9424 { (eval echo configure:9425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9186 ac_err=`grep -v '^ *+' conftest.out` 9425 ac_err=`grep -v '^ *+' conftest.out`
9187 if test -z "$ac_err"; then 9426 if test -z "$ac_err"; then
9188 rm -rf conftest* 9427 rm -rf conftest*
9189 eval "ac_cv_header_$ac_safe=yes" 9428 eval "ac_cv_header_$ac_safe=yes"
9190 else 9429 else
9207 9446
9208 else 9447 else
9209 echo "$ac_t""no" 1>&6 9448 echo "$ac_t""no" 1>&6
9210 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 9449 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
9211 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 9450 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
9212 echo "configure:9213: checking for sys/dir.h" >&5 9451 echo "configure:9452: checking for sys/dir.h" >&5
9213 9452
9214 cat > conftest.$ac_ext <<EOF 9453 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure" 9454 #line 9455 "configure"
9216 #include "confdefs.h" 9455 #include "confdefs.h"
9217 #include <sys/dir.h> 9456 #include <sys/dir.h>
9218 EOF 9457 EOF
9219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9220 { (eval echo configure:9221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9459 { (eval echo configure:9460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9221 ac_err=`grep -v '^ *+' conftest.out` 9460 ac_err=`grep -v '^ *+' conftest.out`
9222 if test -z "$ac_err"; then 9461 if test -z "$ac_err"; then
9223 rm -rf conftest* 9462 rm -rf conftest*
9224 eval "ac_cv_header_$ac_safe=yes" 9463 eval "ac_cv_header_$ac_safe=yes"
9225 else 9464 else
9248 fi 9487 fi
9249 9488
9250 9489
9251 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 9490 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
9252 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 9491 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
9253 echo "configure:9254: checking for nlist.h" >&5 9492 echo "configure:9493: checking for nlist.h" >&5
9254 9493
9255 cat > conftest.$ac_ext <<EOF 9494 cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure" 9495 #line 9496 "configure"
9257 #include "confdefs.h" 9496 #include "confdefs.h"
9258 #include <nlist.h> 9497 #include <nlist.h>
9259 EOF 9498 EOF
9260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9261 { (eval echo configure:9262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9500 { (eval echo configure:9501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9262 ac_err=`grep -v '^ *+' conftest.out` 9501 ac_err=`grep -v '^ *+' conftest.out`
9263 if test -z "$ac_err"; then 9502 if test -z "$ac_err"; then
9264 rm -rf conftest* 9503 rm -rf conftest*
9265 eval "ac_cv_header_$ac_safe=yes" 9504 eval "ac_cv_header_$ac_safe=yes"
9266 else 9505 else
9286 fi 9525 fi
9287 9526
9288 9527
9289 9528
9290 echo "checking "for sound support"" 1>&6 9529 echo "checking "for sound support"" 1>&6
9291 echo "configure:9292: checking "for sound support"" >&5 9530 echo "configure:9531: checking "for sound support"" >&5
9292 case "$with_sound" in 9531 case "$with_sound" in
9293 native | both ) with_native_sound=yes;; 9532 native | both ) with_native_sound=yes;;
9294 nas | no ) with_native_sound=no;; 9533 nas | no ) with_native_sound=no;;
9295 esac 9534 esac
9296 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 9535 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
9297 9536
9298 if test "$with_native_sound" != "no"; then 9537 if test "$with_native_sound" != "no"; then
9299 if test -n "$native_sound_lib"; then 9538 if test -n "$native_sound_lib"; then
9300 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 9539 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
9301 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 9540 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
9302 echo "configure:9303: checking for multimedia/audio_device.h" >&5 9541 echo "configure:9542: checking for multimedia/audio_device.h" >&5
9303 9542
9304 cat > conftest.$ac_ext <<EOF 9543 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure" 9544 #line 9545 "configure"
9306 #include "confdefs.h" 9545 #include "confdefs.h"
9307 #include <multimedia/audio_device.h> 9546 #include <multimedia/audio_device.h>
9308 EOF 9547 EOF
9309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9310 { (eval echo configure:9311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9549 { (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9311 ac_err=`grep -v '^ *+' conftest.out` 9550 ac_err=`grep -v '^ *+' conftest.out`
9312 if test -z "$ac_err"; then 9551 if test -z "$ac_err"; then
9313 rm -rf conftest* 9552 rm -rf conftest*
9314 eval "ac_cv_header_$ac_safe=yes" 9553 eval "ac_cv_header_$ac_safe=yes"
9315 else 9554 else
9353 case "$canonical" in 9592 case "$canonical" in
9354 *-sgi-* ) 9593 *-sgi-* )
9355 if test -z "$native_sound_lib"; then 9594 if test -z "$native_sound_lib"; then
9356 9595
9357 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9596 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
9358 echo "configure:9359: checking for ALopenport in -laudio" >&5 9597 echo "configure:9598: checking for ALopenport in -laudio" >&5
9359 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9598 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
9360 9599
9361 xe_check_libs=" -laudio " 9600 xe_check_libs=" -laudio "
9362 cat > conftest.$ac_ext <<EOF 9601 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure" 9602 #line 9603 "configure"
9364 #include "confdefs.h" 9603 #include "confdefs.h"
9365 /* Override any gcc2 internal prototype to avoid an error. */ 9604 /* Override any gcc2 internal prototype to avoid an error. */
9366 /* We use char because int might match the return type of a gcc2 9605 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */ 9606 builtin and then its argument prototype would still apply. */
9368 char ALopenport(); 9607 char ALopenport();
9369 9608
9370 int main() { 9609 int main() {
9371 ALopenport() 9610 ALopenport()
9372 ; return 0; } 9611 ; return 0; }
9373 EOF 9612 EOF
9374 if { (eval echo configure:9375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9613 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9375 rm -rf conftest* 9614 rm -rf conftest*
9376 eval "ac_cv_lib_$ac_lib_var=yes" 9615 eval "ac_cv_lib_$ac_lib_var=yes"
9377 else 9616 else
9378 echo "configure: failed program was:" >&5 9617 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5 9618 cat conftest.$ac_ext >&5
9400 fi ;; 9639 fi ;;
9401 hppa*-hp-hpux* ) 9640 hppa*-hp-hpux* )
9402 if test -z "$native_sound_lib"; then 9641 if test -z "$native_sound_lib"; then
9403 9642
9404 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9643 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9405 echo "configure:9406: checking for AOpenAudio in -lAlib" >&5 9644 echo "configure:9645: checking for AOpenAudio in -lAlib" >&5
9406 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9645 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9407 9646
9408 xe_check_libs=" -lAlib " 9647 xe_check_libs=" -lAlib "
9409 cat > conftest.$ac_ext <<EOF 9648 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure" 9649 #line 9650 "configure"
9411 #include "confdefs.h" 9650 #include "confdefs.h"
9412 /* Override any gcc2 internal prototype to avoid an error. */ 9651 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2 9652 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */ 9653 builtin and then its argument prototype would still apply. */
9415 char AOpenAudio(); 9654 char AOpenAudio();
9416 9655
9417 int main() { 9656 int main() {
9418 AOpenAudio() 9657 AOpenAudio()
9419 ; return 0; } 9658 ; return 0; }
9420 EOF 9659 EOF
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9660 if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9422 rm -rf conftest* 9661 rm -rf conftest*
9423 eval "ac_cv_lib_$ac_lib_var=yes" 9662 eval "ac_cv_lib_$ac_lib_var=yes"
9424 else 9663 else
9425 echo "configure: failed program was:" >&5 9664 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5 9665 cat conftest.$ac_ext >&5
9454 9693
9455 if test -z "$sound_found"; then 9694 if test -z "$sound_found"; then
9456 for dir in "machine" "sys" "linux"; do 9695 for dir in "machine" "sys" "linux"; do
9457 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9696 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9458 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9697 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9459 echo "configure:9460: checking for ${dir}/soundcard.h" >&5 9698 echo "configure:9699: checking for ${dir}/soundcard.h" >&5
9460 9699
9461 cat > conftest.$ac_ext <<EOF 9700 cat > conftest.$ac_ext <<EOF
9462 #line 9463 "configure" 9701 #line 9702 "configure"
9463 #include "confdefs.h" 9702 #include "confdefs.h"
9464 #include <${dir}/soundcard.h> 9703 #include <${dir}/soundcard.h>
9465 EOF 9704 EOF
9466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9467 { (eval echo configure:9468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9706 { (eval echo configure:9707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9468 ac_err=`grep -v '^ *+' conftest.out` 9707 ac_err=`grep -v '^ *+' conftest.out`
9469 if test -z "$ac_err"; then 9708 if test -z "$ac_err"; then
9470 rm -rf conftest* 9709 rm -rf conftest*
9471 eval "ac_cv_header_$ac_safe=yes" 9710 eval "ac_cv_header_$ac_safe=yes"
9472 else 9711 else
9532 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9771 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9533 echo " xemacs will be linked with \"nas.o\"" 9772 echo " xemacs will be linked with \"nas.o\""
9534 fi 9773 fi
9535 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9774 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9536 cat > conftest.$ac_ext <<EOF 9775 cat > conftest.$ac_ext <<EOF
9537 #line 9538 "configure" 9776 #line 9777 "configure"
9538 #include "confdefs.h" 9777 #include "confdefs.h"
9539 #include <audio/Xtutil.h> 9778 #include <audio/Xtutil.h>
9540 EOF 9779 EOF
9541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9542 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9781 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9559 9798
9560 test -z "$with_tty" && with_tty=yes 9799 test -z "$with_tty" && with_tty=yes
9561 9800
9562 if test "$with_tty" = "yes" ; then 9801 if test "$with_tty" = "yes" ; then
9563 echo "checking for TTY-related features" 1>&6 9802 echo "checking for TTY-related features" 1>&6
9564 echo "configure:9565: checking for TTY-related features" >&5 9803 echo "configure:9804: checking for TTY-related features" >&5
9565 { test "$extra_verbose" = "yes" && cat << \EOF 9804 { test "$extra_verbose" = "yes" && cat << \EOF
9566 Defining HAVE_TTY 9805 Defining HAVE_TTY
9567 EOF 9806 EOF
9568 cat >> confdefs.h <<\EOF 9807 cat >> confdefs.h <<\EOF
9569 #define HAVE_TTY 1 9808 #define HAVE_TTY 1
9575 fi 9814 fi
9576 9815
9577 if test -z "$with_ncurses"; then 9816 if test -z "$with_ncurses"; then
9578 9817
9579 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9818 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9580 echo "configure:9581: checking for tgetent in -lncurses" >&5 9819 echo "configure:9820: checking for tgetent in -lncurses" >&5
9581 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9820 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9582 9821
9583 xe_check_libs=" -lncurses " 9822 xe_check_libs=" -lncurses "
9584 cat > conftest.$ac_ext <<EOF 9823 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure" 9824 #line 9825 "configure"
9586 #include "confdefs.h" 9825 #include "confdefs.h"
9587 /* Override any gcc2 internal prototype to avoid an error. */ 9826 /* Override any gcc2 internal prototype to avoid an error. */
9588 /* We use char because int might match the return type of a gcc2 9827 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */ 9828 builtin and then its argument prototype would still apply. */
9590 char tgetent(); 9829 char tgetent();
9591 9830
9592 int main() { 9831 int main() {
9593 tgetent() 9832 tgetent()
9594 ; return 0; } 9833 ; return 0; }
9595 EOF 9834 EOF
9596 if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9835 if { (eval echo configure:9836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9597 rm -rf conftest* 9836 rm -rf conftest*
9598 eval "ac_cv_lib_$ac_lib_var=yes" 9837 eval "ac_cv_lib_$ac_lib_var=yes"
9599 else 9838 else
9600 echo "configure: failed program was:" >&5 9839 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5 9840 cat conftest.$ac_ext >&5
9624 EOF 9863 EOF
9625 } 9864 }
9626 9865
9627 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9866 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9628 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9867 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9629 echo "configure:9630: checking for ncurses/curses.h" >&5 9868 echo "configure:9869: checking for ncurses/curses.h" >&5
9630 9869
9631 cat > conftest.$ac_ext <<EOF 9870 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure" 9871 #line 9872 "configure"
9633 #include "confdefs.h" 9872 #include "confdefs.h"
9634 #include <ncurses/curses.h> 9873 #include <ncurses/curses.h>
9635 EOF 9874 EOF
9636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9637 { (eval echo configure:9638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9876 { (eval echo configure:9877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9638 ac_err=`grep -v '^ *+' conftest.out` 9877 ac_err=`grep -v '^ *+' conftest.out`
9639 if test -z "$ac_err"; then 9878 if test -z "$ac_err"; then
9640 rm -rf conftest* 9879 rm -rf conftest*
9641 eval "ac_cv_header_$ac_safe=yes" 9880 eval "ac_cv_header_$ac_safe=yes"
9642 else 9881 else
9654 echo "$ac_t""no" 1>&6 9893 echo "$ac_t""no" 1>&6
9655 fi 9894 fi
9656 9895
9657 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9896 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9658 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9897 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9659 echo "configure:9660: checking for ncurses/term.h" >&5 9898 echo "configure:9899: checking for ncurses/term.h" >&5
9660 9899
9661 cat > conftest.$ac_ext <<EOF 9900 cat > conftest.$ac_ext <<EOF
9662 #line 9663 "configure" 9901 #line 9902 "configure"
9663 #include "confdefs.h" 9902 #include "confdefs.h"
9664 #include <ncurses/term.h> 9903 #include <ncurses/term.h>
9665 EOF 9904 EOF
9666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9667 { (eval echo configure:9668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9906 { (eval echo configure:9907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9668 ac_err=`grep -v '^ *+' conftest.out` 9907 ac_err=`grep -v '^ *+' conftest.out`
9669 if test -z "$ac_err"; then 9908 if test -z "$ac_err"; then
9670 rm -rf conftest* 9909 rm -rf conftest*
9671 eval "ac_cv_header_$ac_safe=yes" 9910 eval "ac_cv_header_$ac_safe=yes"
9672 else 9911 else
9692 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9931 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9693 save_c_switch_site="$c_switch_site" 9932 save_c_switch_site="$c_switch_site"
9694 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9933 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9695 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9934 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9696 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9935 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9697 echo "configure:9698: checking for ncurses/curses.h" >&5 9936 echo "configure:9937: checking for ncurses/curses.h" >&5
9698 9937
9699 cat > conftest.$ac_ext <<EOF 9938 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure" 9939 #line 9940 "configure"
9701 #include "confdefs.h" 9940 #include "confdefs.h"
9702 #include <ncurses/curses.h> 9941 #include <ncurses/curses.h>
9703 EOF 9942 EOF
9704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9705 { (eval echo configure:9706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9944 { (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9706 ac_err=`grep -v '^ *+' conftest.out` 9945 ac_err=`grep -v '^ *+' conftest.out`
9707 if test -z "$ac_err"; then 9946 if test -z "$ac_err"; then
9708 rm -rf conftest* 9947 rm -rf conftest*
9709 eval "ac_cv_header_$ac_safe=yes" 9948 eval "ac_cv_header_$ac_safe=yes"
9710 else 9949 else
9735 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9974 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9736 else 9975 else
9737 for lib in curses termlib termcap; do 9976 for lib in curses termlib termcap; do
9738 9977
9739 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9978 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9740 echo "configure:9741: checking for tgetent in -l$lib" >&5 9979 echo "configure:9980: checking for tgetent in -l$lib" >&5
9741 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9980 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9742 9981
9743 xe_check_libs=" -l$lib " 9982 xe_check_libs=" -l$lib "
9744 cat > conftest.$ac_ext <<EOF 9983 cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure" 9984 #line 9985 "configure"
9746 #include "confdefs.h" 9985 #include "confdefs.h"
9747 /* Override any gcc2 internal prototype to avoid an error. */ 9986 /* Override any gcc2 internal prototype to avoid an error. */
9748 /* We use char because int might match the return type of a gcc2 9987 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */ 9988 builtin and then its argument prototype would still apply. */
9750 char tgetent(); 9989 char tgetent();
9751 9990
9752 int main() { 9991 int main() {
9753 tgetent() 9992 tgetent()
9754 ; return 0; } 9993 ; return 0; }
9755 EOF 9994 EOF
9756 if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9995 if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9757 rm -rf conftest* 9996 rm -rf conftest*
9758 eval "ac_cv_lib_$ac_lib_var=yes" 9997 eval "ac_cv_lib_$ac_lib_var=yes"
9759 else 9998 else
9760 echo "configure: failed program was:" >&5 9999 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5 10000 cat conftest.$ac_ext >&5
9782 if test -n "$libs_termcap"; then 10021 if test -n "$libs_termcap"; then
9783 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10022 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9784 else 10023 else
9785 10024
9786 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10025 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9787 echo "configure:9788: checking for tgetent in -lcurses" >&5 10026 echo "configure:10027: checking for tgetent in -lcurses" >&5
9788 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10027 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9789 10028
9790 xe_check_libs=" -lcurses " 10029 xe_check_libs=" -lcurses "
9791 cat > conftest.$ac_ext <<EOF 10030 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure" 10031 #line 10032 "configure"
9793 #include "confdefs.h" 10032 #include "confdefs.h"
9794 /* Override any gcc2 internal prototype to avoid an error. */ 10033 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2 10034 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */ 10035 builtin and then its argument prototype would still apply. */
9797 char tgetent(); 10036 char tgetent();
9798 10037
9799 int main() { 10038 int main() {
9800 tgetent() 10039 tgetent()
9801 ; return 0; } 10040 ; return 0; }
9802 EOF 10041 EOF
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10042 if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9804 rm -rf conftest* 10043 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=yes" 10044 eval "ac_cv_lib_$ac_lib_var=yes"
9806 else 10045 else
9807 echo "configure: failed program was:" >&5 10046 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5 10047 cat conftest.$ac_ext >&5
9816 echo "$ac_t""yes" 1>&6 10055 echo "$ac_t""yes" 1>&6
9817 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10056 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9818 else 10057 else
9819 echo "$ac_t""no" 1>&6 10058 echo "$ac_t""no" 1>&6
9820 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10059 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9821 echo "configure:9822: checking for tgetent in -ltermcap" >&5 10060 echo "configure:10061: checking for tgetent in -ltermcap" >&5
9822 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10061 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9823 10062
9824 xe_check_libs=" -ltermcap " 10063 xe_check_libs=" -ltermcap "
9825 cat > conftest.$ac_ext <<EOF 10064 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure" 10065 #line 10066 "configure"
9827 #include "confdefs.h" 10066 #include "confdefs.h"
9828 /* Override any gcc2 internal prototype to avoid an error. */ 10067 /* Override any gcc2 internal prototype to avoid an error. */
9829 /* We use char because int might match the return type of a gcc2 10068 /* We use char because int might match the return type of a gcc2
9830 builtin and then its argument prototype would still apply. */ 10069 builtin and then its argument prototype would still apply. */
9831 char tgetent(); 10070 char tgetent();
9832 10071
9833 int main() { 10072 int main() {
9834 tgetent() 10073 tgetent()
9835 ; return 0; } 10074 ; return 0; }
9836 EOF 10075 EOF
9837 if { (eval echo configure:9838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9838 rm -rf conftest* 10077 rm -rf conftest*
9839 eval "ac_cv_lib_$ac_lib_var=yes" 10078 eval "ac_cv_lib_$ac_lib_var=yes"
9840 else 10079 else
9841 echo "configure: failed program was:" >&5 10080 echo "configure: failed program was:" >&5
9842 cat conftest.$ac_ext >&5 10081 cat conftest.$ac_ext >&5
9880 } 10119 }
9881 10120
9882 10121
9883 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10122 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9884 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10123 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9885 echo "configure:9886: checking for gpm.h" >&5 10124 echo "configure:10125: checking for gpm.h" >&5
9886 10125
9887 cat > conftest.$ac_ext <<EOF 10126 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure" 10127 #line 10128 "configure"
9889 #include "confdefs.h" 10128 #include "confdefs.h"
9890 #include <gpm.h> 10129 #include <gpm.h>
9891 EOF 10130 EOF
9892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9893 { (eval echo configure:9894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10132 { (eval echo configure:10133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9894 ac_err=`grep -v '^ *+' conftest.out` 10133 ac_err=`grep -v '^ *+' conftest.out`
9895 if test -z "$ac_err"; then 10134 if test -z "$ac_err"; then
9896 rm -rf conftest* 10135 rm -rf conftest*
9897 eval "ac_cv_header_$ac_safe=yes" 10136 eval "ac_cv_header_$ac_safe=yes"
9898 else 10137 else
9911 with_gpm=no 10150 with_gpm=no
9912 fi 10151 fi
9913 } 10152 }
9914 test -z "$with_gpm" && { 10153 test -z "$with_gpm" && {
9915 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10154 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9916 echo "configure:9917: checking for Gpm_Open in -lgpm" >&5 10155 echo "configure:10156: checking for Gpm_Open in -lgpm" >&5
9917 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10156 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9918 10157
9919 xe_check_libs=" -lgpm " 10158 xe_check_libs=" -lgpm "
9920 cat > conftest.$ac_ext <<EOF 10159 cat > conftest.$ac_ext <<EOF
9921 #line 9922 "configure" 10160 #line 10161 "configure"
9922 #include "confdefs.h" 10161 #include "confdefs.h"
9923 /* Override any gcc2 internal prototype to avoid an error. */ 10162 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2 10163 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */ 10164 builtin and then its argument prototype would still apply. */
9926 char Gpm_Open(); 10165 char Gpm_Open();
9927 10166
9928 int main() { 10167 int main() {
9929 Gpm_Open() 10168 Gpm_Open()
9930 ; return 0; } 10169 ; return 0; }
9931 EOF 10170 EOF
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10171 if { (eval echo configure:10172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9933 rm -rf conftest* 10172 rm -rf conftest*
9934 eval "ac_cv_lib_$ac_lib_var=yes" 10173 eval "ac_cv_lib_$ac_lib_var=yes"
9935 else 10174 else
9936 echo "configure: failed program was:" >&5 10175 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5 10176 cat conftest.$ac_ext >&5
9976 echo " xemacs will be linked with \"event-unixoid.o\"" 10215 echo " xemacs will be linked with \"event-unixoid.o\""
9977 fi 10216 fi
9978 10217
9979 10218
9980 echo "checking for database support" 1>&6 10219 echo "checking for database support" 1>&6
9981 echo "configure:9982: checking for database support" >&5 10220 echo "configure:10221: checking for database support" >&5
9982 10221
9983 if test "$with_database_gnudbm" != "no"; then 10222 if test "$with_database_gnudbm" != "no"; then
9984 for ac_hdr in ndbm.h 10223 for ac_hdr in ndbm.h
9985 do 10224 do
9986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9988 echo "configure:9989: checking for $ac_hdr" >&5 10227 echo "configure:10228: checking for $ac_hdr" >&5
9989 10228
9990 cat > conftest.$ac_ext <<EOF 10229 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure" 10230 #line 10231 "configure"
9992 #include "confdefs.h" 10231 #include "confdefs.h"
9993 #include <$ac_hdr> 10232 #include <$ac_hdr>
9994 EOF 10233 EOF
9995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9996 { (eval echo configure:9997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10235 { (eval echo configure:10236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9997 ac_err=`grep -v '^ *+' conftest.out` 10236 ac_err=`grep -v '^ *+' conftest.out`
9998 if test -z "$ac_err"; then 10237 if test -z "$ac_err"; then
9999 rm -rf conftest* 10238 rm -rf conftest*
10000 eval "ac_cv_header_$ac_safe=yes" 10239 eval "ac_cv_header_$ac_safe=yes"
10001 else 10240 else
10023 done 10262 done
10024 10263
10025 if test "$have_ndbm_h" = "yes"; then 10264 if test "$have_ndbm_h" = "yes"; then
10026 10265
10027 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10266 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10028 echo "configure:10029: checking for dbm_open in -lgdbm" >&5 10267 echo "configure:10268: checking for dbm_open in -lgdbm" >&5
10029 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10268 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10030 10269
10031 xe_check_libs=" -lgdbm " 10270 xe_check_libs=" -lgdbm "
10032 cat > conftest.$ac_ext <<EOF 10271 cat > conftest.$ac_ext <<EOF
10033 #line 10034 "configure" 10272 #line 10273 "configure"
10034 #include "confdefs.h" 10273 #include "confdefs.h"
10035 /* Override any gcc2 internal prototype to avoid an error. */ 10274 /* Override any gcc2 internal prototype to avoid an error. */
10036 /* We use char because int might match the return type of a gcc2 10275 /* We use char because int might match the return type of a gcc2
10037 builtin and then its argument prototype would still apply. */ 10276 builtin and then its argument prototype would still apply. */
10038 char dbm_open(); 10277 char dbm_open();
10039 10278
10040 int main() { 10279 int main() {
10041 dbm_open() 10280 dbm_open()
10042 ; return 0; } 10281 ; return 0; }
10043 EOF 10282 EOF
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10045 rm -rf conftest* 10284 rm -rf conftest*
10046 eval "ac_cv_lib_$ac_lib_var=yes" 10285 eval "ac_cv_lib_$ac_lib_var=yes"
10047 else 10286 else
10048 echo "configure: failed program was:" >&5 10287 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5 10288 cat conftest.$ac_ext >&5
10062 10301
10063 10302
10064 fi 10303 fi
10065 if test "$with_database_gnudbm" != "yes"; then 10304 if test "$with_database_gnudbm" != "yes"; then
10066 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10305 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10067 echo "configure:10068: checking for dbm_open" >&5 10306 echo "configure:10307: checking for dbm_open" >&5
10068 10307
10069 cat > conftest.$ac_ext <<EOF 10308 cat > conftest.$ac_ext <<EOF
10070 #line 10071 "configure" 10309 #line 10310 "configure"
10071 #include "confdefs.h" 10310 #include "confdefs.h"
10072 /* System header to define __stub macros and hopefully few prototypes, 10311 /* System header to define __stub macros and hopefully few prototypes,
10073 which can conflict with char dbm_open(); below. */ 10312 which can conflict with char dbm_open(); below. */
10074 #include <assert.h> 10313 #include <assert.h>
10075 /* Override any gcc2 internal prototype to avoid an error. */ 10314 /* Override any gcc2 internal prototype to avoid an error. */
10088 dbm_open(); 10327 dbm_open();
10089 #endif 10328 #endif
10090 10329
10091 ; return 0; } 10330 ; return 0; }
10092 EOF 10331 EOF
10093 if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10094 rm -rf conftest* 10333 rm -rf conftest*
10095 eval "ac_cv_func_dbm_open=yes" 10334 eval "ac_cv_func_dbm_open=yes"
10096 else 10335 else
10097 echo "configure: failed program was:" >&5 10336 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5 10337 cat conftest.$ac_ext >&5
10124 fi 10363 fi
10125 fi 10364 fi
10126 10365
10127 if test "$with_database_dbm" != "no"; then 10366 if test "$with_database_dbm" != "no"; then
10128 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10367 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10129 echo "configure:10130: checking for dbm_open" >&5 10368 echo "configure:10369: checking for dbm_open" >&5
10130 10369
10131 cat > conftest.$ac_ext <<EOF 10370 cat > conftest.$ac_ext <<EOF
10132 #line 10133 "configure" 10371 #line 10372 "configure"
10133 #include "confdefs.h" 10372 #include "confdefs.h"
10134 /* System header to define __stub macros and hopefully few prototypes, 10373 /* System header to define __stub macros and hopefully few prototypes,
10135 which can conflict with char dbm_open(); below. */ 10374 which can conflict with char dbm_open(); below. */
10136 #include <assert.h> 10375 #include <assert.h>
10137 /* Override any gcc2 internal prototype to avoid an error. */ 10376 /* Override any gcc2 internal prototype to avoid an error. */
10150 dbm_open(); 10389 dbm_open();
10151 #endif 10390 #endif
10152 10391
10153 ; return 0; } 10392 ; return 0; }
10154 EOF 10393 EOF
10155 if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10156 rm -rf conftest* 10395 rm -rf conftest*
10157 eval "ac_cv_func_dbm_open=yes" 10396 eval "ac_cv_func_dbm_open=yes"
10158 else 10397 else
10159 echo "configure: failed program was:" >&5 10398 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5 10399 cat conftest.$ac_ext >&5
10171 fi 10410 fi
10172 10411
10173 if test "$need_libdbm" != "no"; then 10412 if test "$need_libdbm" != "no"; then
10174 10413
10175 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 10414 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10176 echo "configure:10177: checking for dbm_open in -ldbm" >&5 10415 echo "configure:10416: checking for dbm_open in -ldbm" >&5
10177 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 10416 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
10178 10417
10179 xe_check_libs=" -ldbm " 10418 xe_check_libs=" -ldbm "
10180 cat > conftest.$ac_ext <<EOF 10419 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure" 10420 #line 10421 "configure"
10182 #include "confdefs.h" 10421 #include "confdefs.h"
10183 /* Override any gcc2 internal prototype to avoid an error. */ 10422 /* Override any gcc2 internal prototype to avoid an error. */
10184 /* We use char because int might match the return type of a gcc2 10423 /* We use char because int might match the return type of a gcc2
10185 builtin and then its argument prototype would still apply. */ 10424 builtin and then its argument prototype would still apply. */
10186 char dbm_open(); 10425 char dbm_open();
10187 10426
10188 int main() { 10427 int main() {
10189 dbm_open() 10428 dbm_open()
10190 ; return 0; } 10429 ; return 0; }
10191 EOF 10430 EOF
10192 if { (eval echo configure:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10193 rm -rf conftest* 10432 rm -rf conftest*
10194 eval "ac_cv_lib_$ac_lib_var=yes" 10433 eval "ac_cv_lib_$ac_lib_var=yes"
10195 else 10434 else
10196 echo "configure: failed program was:" >&5 10435 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5 10436 cat conftest.$ac_ext >&5
10224 fi 10463 fi
10225 fi 10464 fi
10226 10465
10227 if test "$with_database_berkdb" != "no"; then 10466 if test "$with_database_berkdb" != "no"; then
10228 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 10467 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10229 echo "configure:10230: checking for dbopen" >&5 10468 echo "configure:10469: checking for dbopen" >&5
10230 10469
10231 cat > conftest.$ac_ext <<EOF 10470 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure" 10471 #line 10472 "configure"
10233 #include "confdefs.h" 10472 #include "confdefs.h"
10234 /* System header to define __stub macros and hopefully few prototypes, 10473 /* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char dbopen(); below. */ 10474 which can conflict with char dbopen(); below. */
10236 #include <assert.h> 10475 #include <assert.h>
10237 /* Override any gcc2 internal prototype to avoid an error. */ 10476 /* Override any gcc2 internal prototype to avoid an error. */
10250 dbopen(); 10489 dbopen();
10251 #endif 10490 #endif
10252 10491
10253 ; return 0; } 10492 ; return 0; }
10254 EOF 10493 EOF
10255 if { (eval echo configure:10256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10494 if { (eval echo configure:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10256 rm -rf conftest* 10495 rm -rf conftest*
10257 eval "ac_cv_func_dbopen=yes" 10496 eval "ac_cv_func_dbopen=yes"
10258 else 10497 else
10259 echo "configure: failed program was:" >&5 10498 echo "configure: failed program was:" >&5
10260 cat conftest.$ac_ext >&5 10499 cat conftest.$ac_ext >&5
10271 fi 10510 fi
10272 10511
10273 if test "$need_libdb" != "no"; then 10512 if test "$need_libdb" != "no"; then
10274 10513
10275 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 10514 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10276 echo "configure:10277: checking for dbopen in -ldb" >&5 10515 echo "configure:10516: checking for dbopen in -ldb" >&5
10277 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 10516 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
10278 10517
10279 xe_check_libs=" -ldb " 10518 xe_check_libs=" -ldb "
10280 cat > conftest.$ac_ext <<EOF 10519 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure" 10520 #line 10521 "configure"
10282 #include "confdefs.h" 10521 #include "confdefs.h"
10283 /* Override any gcc2 internal prototype to avoid an error. */ 10522 /* Override any gcc2 internal prototype to avoid an error. */
10284 /* We use char because int might match the return type of a gcc2 10523 /* We use char because int might match the return type of a gcc2
10285 builtin and then its argument prototype would still apply. */ 10524 builtin and then its argument prototype would still apply. */
10286 char dbopen(); 10525 char dbopen();
10287 10526
10288 int main() { 10527 int main() {
10289 dbopen() 10528 dbopen()
10290 ; return 0; } 10529 ; return 0; }
10291 EOF 10530 EOF
10292 if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10531 if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10293 rm -rf conftest* 10532 rm -rf conftest*
10294 eval "ac_cv_lib_$ac_lib_var=yes" 10533 eval "ac_cv_lib_$ac_lib_var=yes"
10295 else 10534 else
10296 echo "configure: failed program was:" >&5 10535 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5 10536 cat conftest.$ac_ext >&5
10311 10550
10312 fi 10551 fi
10313 if test "$with_database_berkdb" = "yes"; then 10552 if test "$with_database_berkdb" = "yes"; then
10314 for path in "db/db.h" "db.h"; do 10553 for path in "db/db.h" "db.h"; do
10315 cat > conftest.$ac_ext <<EOF 10554 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure" 10555 #line 10556 "configure"
10317 #include "confdefs.h" 10556 #include "confdefs.h"
10318 #ifdef HAVE_INTTYPES_H 10557 #ifdef HAVE_INTTYPES_H
10319 #define __BIT_TYPES_DEFINED__ 10558 #define __BIT_TYPES_DEFINED__
10320 #include <inttypes.h> 10559 #include <inttypes.h>
10321 typedef uint8_t u_int8_t; 10560 typedef uint8_t u_int8_t;
10329 10568
10330 int main() { 10569 int main() {
10331 10570
10332 ; return 0; } 10571 ; return 0; }
10333 EOF 10572 EOF
10334 if { (eval echo configure:10335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10573 if { (eval echo configure:10574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 rm -rf conftest* 10574 rm -rf conftest*
10336 db_h_path="$path"; break 10575 db_h_path="$path"; break
10337 else 10576 else
10338 echo "configure: failed program was:" >&5 10577 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5 10578 cat conftest.$ac_ext >&5
10362 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi 10601 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
10363 else with_database_berkdb=no 10602 else with_database_berkdb=no
10364 fi 10603 fi
10365 fi 10604 fi
10366 10605
10367 if test "$with_database_gnudbm" = "yes" -o \ 10606 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
10368 "$with_database_dbm" = "yes" -o \ 10607 != "no no no"; then
10369 "$with_database_berkdb" = "yes"; then
10370 { test "$extra_verbose" = "yes" && cat << \EOF 10608 { test "$extra_verbose" = "yes" && cat << \EOF
10371 Defining HAVE_DATABASE 10609 Defining HAVE_DATABASE
10372 EOF 10610 EOF
10373 cat >> confdefs.h <<\EOF 10611 cat >> confdefs.h <<\EOF
10374 #define HAVE_DATABASE 1 10612 #define HAVE_DATABASE 1
10381 fi 10619 fi
10382 10620
10383 if test "$with_socks" = "yes"; then 10621 if test "$with_socks" = "yes"; then
10384 10622
10385 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 10623 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
10386 echo "configure:10387: checking for SOCKSinit in -lsocks" >&5 10624 echo "configure:10625: checking for SOCKSinit in -lsocks" >&5
10387 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 10625 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
10388 10626
10389 xe_check_libs=" -lsocks " 10627 xe_check_libs=" -lsocks "
10390 cat > conftest.$ac_ext <<EOF 10628 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure" 10629 #line 10630 "configure"
10392 #include "confdefs.h" 10630 #include "confdefs.h"
10393 /* Override any gcc2 internal prototype to avoid an error. */ 10631 /* Override any gcc2 internal prototype to avoid an error. */
10394 /* We use char because int might match the return type of a gcc2 10632 /* We use char because int might match the return type of a gcc2
10395 builtin and then its argument prototype would still apply. */ 10633 builtin and then its argument prototype would still apply. */
10396 char SOCKSinit(); 10634 char SOCKSinit();
10397 10635
10398 int main() { 10636 int main() {
10399 SOCKSinit() 10637 SOCKSinit()
10400 ; return 0; } 10638 ; return 0; }
10401 EOF 10639 EOF
10402 if { (eval echo configure:10403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10640 if { (eval echo configure:10641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10403 rm -rf conftest* 10641 rm -rf conftest*
10404 eval "ac_cv_lib_$ac_lib_var=yes" 10642 eval "ac_cv_lib_$ac_lib_var=yes"
10405 else 10643 else
10406 echo "configure: failed program was:" >&5 10644 echo "configure: failed program was:" >&5
10407 cat conftest.$ac_ext >&5 10645 cat conftest.$ac_ext >&5
10454 10692
10455 for ac_hdr in dlfcn.h 10693 for ac_hdr in dlfcn.h
10456 do 10694 do
10457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10459 echo "configure:10460: checking for $ac_hdr" >&5 10697 echo "configure:10698: checking for $ac_hdr" >&5
10460 10698
10461 cat > conftest.$ac_ext <<EOF 10699 cat > conftest.$ac_ext <<EOF
10462 #line 10463 "configure" 10700 #line 10701 "configure"
10463 #include "confdefs.h" 10701 #include "confdefs.h"
10464 #include <$ac_hdr> 10702 #include <$ac_hdr>
10465 EOF 10703 EOF
10466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10467 { (eval echo configure:10468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10705 { (eval echo configure:10706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10468 ac_err=`grep -v '^ *+' conftest.out` 10706 ac_err=`grep -v '^ *+' conftest.out`
10469 if test -z "$ac_err"; then 10707 if test -z "$ac_err"; then
10470 rm -rf conftest* 10708 rm -rf conftest*
10471 eval "ac_cv_header_$ac_safe=yes" 10709 eval "ac_cv_header_$ac_safe=yes"
10472 else 10710 else
10493 fi 10731 fi
10494 done 10732 done
10495 10733
10496 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 10734 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
10497 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 10735 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
10498 echo "configure:10499: checking for dlopen in -ldl" >&5 10736 echo "configure:10737: checking for dlopen in -ldl" >&5
10499 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 10737 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
10500 10738
10501 xe_check_libs=" -ldl " 10739 xe_check_libs=" -ldl "
10502 cat > conftest.$ac_ext <<EOF 10740 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure" 10741 #line 10742 "configure"
10504 #include "confdefs.h" 10742 #include "confdefs.h"
10505 /* Override any gcc2 internal prototype to avoid an error. */ 10743 /* Override any gcc2 internal prototype to avoid an error. */
10506 /* We use char because int might match the return type of a gcc2 10744 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */ 10745 builtin and then its argument prototype would still apply. */
10508 char dlopen(); 10746 char dlopen();
10509 10747
10510 int main() { 10748 int main() {
10511 dlopen() 10749 dlopen()
10512 ; return 0; } 10750 ; return 0; }
10513 EOF 10751 EOF
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10515 rm -rf conftest* 10753 rm -rf conftest*
10516 eval "ac_cv_lib_$ac_lib_var=yes" 10754 eval "ac_cv_lib_$ac_lib_var=yes"
10517 else 10755 else
10518 echo "configure: failed program was:" >&5 10756 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5 10757 cat conftest.$ac_ext >&5
10538 fi 10776 fi
10539 10777
10540 } 10778 }
10541 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 10779 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
10542 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 10780 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
10543 echo "configure:10544: checking for _dlopen in -lc" >&5 10781 echo "configure:10782: checking for _dlopen in -lc" >&5
10544 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 10782 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
10545 10783
10546 xe_check_libs=" -lc " 10784 xe_check_libs=" -lc "
10547 cat > conftest.$ac_ext <<EOF 10785 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure" 10786 #line 10787 "configure"
10549 #include "confdefs.h" 10787 #include "confdefs.h"
10550 /* Override any gcc2 internal prototype to avoid an error. */ 10788 /* Override any gcc2 internal prototype to avoid an error. */
10551 /* We use char because int might match the return type of a gcc2 10789 /* We use char because int might match the return type of a gcc2
10552 builtin and then its argument prototype would still apply. */ 10790 builtin and then its argument prototype would still apply. */
10553 char _dlopen(); 10791 char _dlopen();
10554 10792
10555 int main() { 10793 int main() {
10556 _dlopen() 10794 _dlopen()
10557 ; return 0; } 10795 ; return 0; }
10558 EOF 10796 EOF
10559 if { (eval echo configure:10560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10797 if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10560 rm -rf conftest* 10798 rm -rf conftest*
10561 eval "ac_cv_lib_$ac_lib_var=yes" 10799 eval "ac_cv_lib_$ac_lib_var=yes"
10562 else 10800 else
10563 echo "configure: failed program was:" >&5 10801 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5 10802 cat conftest.$ac_ext >&5
10583 fi 10821 fi
10584 10822
10585 } 10823 }
10586 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 10824 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
10587 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 10825 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
10588 echo "configure:10589: checking for dlopen in -lc" >&5 10826 echo "configure:10827: checking for dlopen in -lc" >&5
10589 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 10827 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
10590 10828
10591 xe_check_libs=" -lc " 10829 xe_check_libs=" -lc "
10592 cat > conftest.$ac_ext <<EOF 10830 cat > conftest.$ac_ext <<EOF
10593 #line 10594 "configure" 10831 #line 10832 "configure"
10594 #include "confdefs.h" 10832 #include "confdefs.h"
10595 /* Override any gcc2 internal prototype to avoid an error. */ 10833 /* Override any gcc2 internal prototype to avoid an error. */
10596 /* We use char because int might match the return type of a gcc2 10834 /* We use char because int might match the return type of a gcc2
10597 builtin and then its argument prototype would still apply. */ 10835 builtin and then its argument prototype would still apply. */
10598 char dlopen(); 10836 char dlopen();
10599 10837
10600 int main() { 10838 int main() {
10601 dlopen() 10839 dlopen()
10602 ; return 0; } 10840 ; return 0; }
10603 EOF 10841 EOF
10604 if { (eval echo configure:10605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10605 rm -rf conftest* 10843 rm -rf conftest*
10606 eval "ac_cv_lib_$ac_lib_var=yes" 10844 eval "ac_cv_lib_$ac_lib_var=yes"
10607 else 10845 else
10608 echo "configure: failed program was:" >&5 10846 echo "configure: failed program was:" >&5
10609 cat conftest.$ac_ext >&5 10847 cat conftest.$ac_ext >&5
10628 fi 10866 fi
10629 10867
10630 } 10868 }
10631 test -z "$with_shlib" && { 10869 test -z "$with_shlib" && {
10632 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 10870 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
10633 echo "configure:10634: checking for shl_load in -ldld" >&5 10871 echo "configure:10872: checking for shl_load in -ldld" >&5
10634 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 10872 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
10635 10873
10636 xe_check_libs=" -ldld " 10874 xe_check_libs=" -ldld "
10637 cat > conftest.$ac_ext <<EOF 10875 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure" 10876 #line 10877 "configure"
10639 #include "confdefs.h" 10877 #include "confdefs.h"
10640 /* Override any gcc2 internal prototype to avoid an error. */ 10878 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2 10879 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */ 10880 builtin and then its argument prototype would still apply. */
10643 char shl_load(); 10881 char shl_load();
10644 10882
10645 int main() { 10883 int main() {
10646 shl_load() 10884 shl_load()
10647 ; return 0; } 10885 ; return 0; }
10648 EOF 10886 EOF
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10887 if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10650 rm -rf conftest* 10888 rm -rf conftest*
10651 eval "ac_cv_lib_$ac_lib_var=yes" 10889 eval "ac_cv_lib_$ac_lib_var=yes"
10652 else 10890 else
10653 echo "configure: failed program was:" >&5 10891 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5 10892 cat conftest.$ac_ext >&5
10673 fi 10911 fi
10674 10912
10675 } 10913 }
10676 test -z "$with_shlib" && { 10914 test -z "$with_shlib" && {
10677 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 10915 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
10678 echo "configure:10679: checking for dld_init in -ldld" >&5 10916 echo "configure:10917: checking for dld_init in -ldld" >&5
10679 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 10917 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
10680 10918
10681 xe_check_libs=" -ldld " 10919 xe_check_libs=" -ldld "
10682 cat > conftest.$ac_ext <<EOF 10920 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure" 10921 #line 10922 "configure"
10684 #include "confdefs.h" 10922 #include "confdefs.h"
10685 /* Override any gcc2 internal prototype to avoid an error. */ 10923 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2 10924 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */ 10925 builtin and then its argument prototype would still apply. */
10688 char dld_init(); 10926 char dld_init();
10689 10927
10690 int main() { 10928 int main() {
10691 dld_init() 10929 dld_init()
10692 ; return 0; } 10930 ; return 0; }
10693 EOF 10931 EOF
10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10932 if { (eval echo configure:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10695 rm -rf conftest* 10933 rm -rf conftest*
10696 eval "ac_cv_lib_$ac_lib_var=yes" 10934 eval "ac_cv_lib_$ac_lib_var=yes"
10697 else 10935 else
10698 echo "configure: failed program was:" >&5 10936 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5 10937 cat conftest.$ac_ext >&5
10739 dll_lflags="-shared" 10977 dll_lflags="-shared"
10740 dll_cflags="-r" 10978 dll_cflags="-r"
10741 dll_oflags="-o " 10979 dll_oflags="-o "
10742 10980
10743 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 10981 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
10744 echo "configure:10745: checking how to build a shared library" >&5 10982 echo "configure:10983: checking how to build a shared library" >&5
10745 case `uname -rs` in 10983 case `uname -rs` in
10746 UNIX_SV*|UNIX_System_V*) 10984 UNIX_SV*|UNIX_System_V*)
10747 dll_lflags="-G" 10985 dll_lflags="-G"
10748 dll_cflags=-Kpic 10986 dll_cflags=-Kpic
10749 dll_ld="ld" 10987 dll_ld="ld"
10835 linux*) ld_dynamic_link_flags="-rdynamic" ;; 11073 linux*) ld_dynamic_link_flags="-rdynamic" ;;
10836 *) ;; 11074 *) ;;
10837 esac 11075 esac
10838 fi 11076 fi
10839 11077
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11081 int main(int c,char *v[]){return 0;}
11082 EOF
11083 if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
11084 then
11085 :
11086 else
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -fr conftest*
11090
11091 echo ""
11092 echo "*** PANIC *** The C compiler can no longer build working executables."
11093 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
11094 echo "*** PANIC *** The most likely reason for this problem is that configure"
11095 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
11096 echo "*** PANIC *** found at run time."
11097 echo "*** PANIC ***"
11098 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
11099 echo "*** PANIC *** On other systems, try telling configure where to find the"
11100 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
11101 echo "*** PANIC ***"
11102 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
11103 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
11104 echo "*** PANIC *** on your system. Don't do that."
11105 exit 1
11106 fi
11107 rm -fr conftest*
11108
10840 11109
10841 { test "$extra_verbose" = "yes" && cat << \EOF 11110 { test "$extra_verbose" = "yes" && cat << \EOF
10842 Defining HAVE_UNIX_PROCESSES 11111 Defining HAVE_UNIX_PROCESSES
10843 EOF 11112 EOF
10844 cat >> confdefs.h <<\EOF 11113 cat >> confdefs.h <<\EOF
11191 cat >> confdefs.h <<\EOF 11460 cat >> confdefs.h <<\EOF
11192 #define NO_DOC_FILE 1 11461 #define NO_DOC_FILE 1
11193 EOF 11462 EOF
11194 } 11463 }
11195 11464
11196 test "$const_is_losing" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11197 Defining CONST_IS_LOSING
11198 EOF
11199 cat >> confdefs.h <<\EOF
11200 #define CONST_IS_LOSING 1
11201 EOF
11202 }
11203
11204 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 11465 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11205 Defining QUANTIFY 11466 Defining QUANTIFY
11206 EOF 11467 EOF
11207 cat >> confdefs.h <<\EOF 11468 cat >> confdefs.h <<\EOF
11208 #define QUANTIFY 1 11469 #define QUANTIFY 1
11231 cat >> confdefs.h <<\EOF 11492 cat >> confdefs.h <<\EOF
11232 #define HESIOD 1 11493 #define HESIOD 1
11233 EOF 11494 EOF
11234 } 11495 }
11235 11496
11236 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF 11497 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11237 Defining NO_UNION_TYPE 11498 Defining USE_UNION_TYPE
11238 EOF 11499 EOF
11239 cat >> confdefs.h <<\EOF 11500 cat >> confdefs.h <<\EOF
11240 #define NO_UNION_TYPE 1 11501 #define USE_UNION_TYPE 1
11241 EOF 11502 EOF
11242 } 11503 }
11243 11504
11244 11505
11245 11506
11364 echo " Clash detection will use \"$lockdir\" for locking files." 11625 echo " Clash detection will use \"$lockdir\" for locking files."
11365 echo " movemail will use \"$mail_locking\" for locking mail spool files." 11626 echo " movemail will use \"$mail_locking\" for locking mail spool files."
11366 test "$with_pop" = yes && echo " Using POP for mail access" 11627 test "$with_pop" = yes && echo " Using POP for mail access"
11367 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" 11628 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
11368 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" 11629 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
11369 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 11630 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
11370 test "$with_minimal_tagbits" != "no" -o "$with_gung" != "no" && \ 11631 test "$use_minimal_tagbits" = yes && echo " Using Lisp_Objects with minimal tagbits."
11371 echo " Using Lisp_Objects with minimal tagbits." 11632 test "$use_indexed_lrecord_implementation" = yes && echo " Using indexed lrecord implementation."
11372 test "$with_gung" != "no" && echo " Using indexed lrecord implementation."
11373 test "$debug" = yes && echo " Compiling in extra code for debugging." 11633 test "$debug" = yes && echo " Compiling in extra code for debugging."
11374 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." 11634 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
11375 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." 11635 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
11376 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ 11636 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
11377 != "no no no no no"; then 11637 != "no no no no no"; then
11395 test -n "$prefix" && 11655 test -n "$prefix" &&
11396 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'` 11656 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
11397 test -n "$exec_prefix" && 11657 test -n "$exec_prefix" &&
11398 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'` 11658 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
11399 11659
11660
11661 for file in $internal_makefile_list; do
11662 test "$file" = src/Makefile.in && \
11663 file="src/Makefile.in:src/Makefile.in.in:src/depend"
11664 ac_output_files="${ac_output_files+$ac_output_files }$file"
11665 done
11666 ac_output_files="$ac_output_files lib-src/config.values"
11400 11667
11401 trap '' 1 2 15 11668 trap '' 1 2 15
11402 11669
11403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 11670 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11404 11671
11451 done 11718 done
11452 11719
11453 ac_given_srcdir=$srcdir 11720 ac_given_srcdir=$srcdir
11454 ac_given_INSTALL="$INSTALL" 11721 ac_given_INSTALL="$INSTALL"
11455 11722
11456 trap 'rm -fr `echo "$internal_makefile_list lib-src/config.values src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 11723 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11457 EOF 11724 EOF
11458 cat >> $CONFIG_STATUS <<EOF 11725 cat >> $CONFIG_STATUS <<EOF
11459 11726
11460 # Protect against being on the right side of a sed subst in config.status. 11727 # Protect against being on the right side of a sed subst in config.status.
11461 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 11728 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11500 s%@X_CFLAGS@%$X_CFLAGS%g 11767 s%@X_CFLAGS@%$X_CFLAGS%g
11501 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 11768 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
11502 s%@X_LIBS@%$X_LIBS%g 11769 s%@X_LIBS@%$X_LIBS%g
11503 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 11770 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
11504 s%@libs_xauth@%$libs_xauth%g 11771 s%@libs_xauth@%$libs_xauth%g
11505 s%@OFFIX_O@%$OFFIX_O%g
11506 s%@lwlib_objs@%$lwlib_objs%g 11772 s%@lwlib_objs@%$lwlib_objs%g
11507 s%@ALLOCA@%$ALLOCA%g 11773 s%@ALLOCA@%$ALLOCA%g
11508 s%@dll_ld@%$dll_ld%g 11774 s%@dll_ld@%$dll_ld%g
11509 s%@dll_cflags@%$dll_cflags%g 11775 s%@dll_cflags@%$dll_cflags%g
11510 s%@dll_oflags@%$dll_oflags%g 11776 s%@dll_oflags@%$dll_oflags%g
11592 fi 11858 fi
11593 EOF 11859 EOF
11594 11860
11595 cat >> $CONFIG_STATUS <<EOF 11861 cat >> $CONFIG_STATUS <<EOF
11596 11862
11597 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list lib-src/config.values"} 11863 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
11598 EOF 11864 EOF
11599 cat >> $CONFIG_STATUS <<\EOF 11865 cat >> $CONFIG_STATUS <<\EOF
11600 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 11866 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11602 case "$ac_file" in 11868 case "$ac_file" in
11767 top_srcdir="$srcdir" 12033 top_srcdir="$srcdir"
11768 MAKE_SUBDIR="$MAKE_SUBDIR" 12034 MAKE_SUBDIR="$MAKE_SUBDIR"
11769 12035
11770 EOF 12036 EOF
11771 cat >> $CONFIG_STATUS <<\EOF 12037 cat >> $CONFIG_STATUS <<\EOF
11772
11773 for dir in $MAKE_SUBDIR; do 12038 for dir in $MAKE_SUBDIR; do
11774 echo creating $dir/Makefile 12039 echo creating $dir/Makefile
11775 ( 12040 (
11776 cd $dir 12041 cd $dir
11777 rm -f junk.c 12042 rm -f junk.c
11794 -e 's/^[ ][ ]*$//' \ 12059 -e 's/^[ ][ ]*$//' \
11795 -e 's/^ / /' \ 12060 -e 's/^ / /' \
11796 | sed -n -e '/^..*$/p' \ 12061 | sed -n -e '/^..*$/p' \
11797 | sed '/^"/ { 12062 | sed '/^"/ {
11798 s/\\\([\"]\)/\1/g 12063 s/\\\([\"]\)/\1/g
11799 s/^"// 12064 s/^[ ]*"//
11800 s/"$// 12065 s/"[ ]*$//
11801 }' > Makefile.new 12066 }' > Makefile.new
11802 chmod 444 Makefile.new 12067 chmod 444 Makefile.new
11803 mv -f Makefile.new Makefile 12068 mv -f Makefile.new Makefile
11804 rm -f junk.c junk.cpp 12069 rm -f junk.c junk.cpp
11805 ) 12070 )