comparison configure @ 157:6b37e6ddd302 r20-3b5

Import from CVS: tag r20-3b5
author cvs
date Mon, 13 Aug 2007 09:40:41 +0200
parents 43dd3413c7c7
children 3bb7ccffb0c0
comparison
equal deleted inserted replaced
156:60baf0b43294 157:6b37e6ddd302
231 with_menubars='' 231 with_menubars=''
232 with_scrollbars='' 232 with_scrollbars=''
233 with_dialogs='' 233 with_dialogs=''
234 const_is_losing='yes' 234 const_is_losing='yes'
235 puresize='' 235 puresize=''
236 cflags='NO_CFLAGS_DEFINED' 236 cflags='UNSPECIFIED'
237 dynamic='' 237 dynamic=''
238 with_x11='' 238 with_x11=''
239 rel_alloc='default' 239 rel_alloc='default'
240 use_system_malloc='default' 240 use_system_malloc='default'
241 energize_version='' 241 energize_version=''
249 debug=$error_check_default 249 debug=$error_check_default
250 extra_verbose=$error_check_default 250 extra_verbose=$error_check_default
251 use_assertions="yes" 251 use_assertions="yes"
252 with_gif="" 252 with_gif=""
253 with_toolbars="" 253 with_toolbars=""
254 with_tty=""
254 use_union_type="no" 255 use_union_type="no"
255 with_dnet="" 256 with_dnet=""
256 257
257 test -n "$CPP" -a -d "$CPP" && CPP= 258 test -n "$CPP" -a -d "$CPP" && CPP=
258 259
443 If successful, $progname leaves its status in config.status. If 444 If successful, $progname leaves its status in config.status. If
444 unsuccessful after disturbing the status quo, it removes config.status. 445 unsuccessful after disturbing the status quo, it removes config.status.
445 446
446 The configure build process also used the following environment variables: 447 The configure build process also used the following environment variables:
447 CC C compiler to use (but configure flags take precedence) 448 CC C compiler to use (but configure flags take precedence)
449 CPP C preprocessor to use (such as /usr/ccs/lib/cpp or cc -E)
448 CFLAGS C compiler compilation flags (such as -O) 450 CFLAGS C compiler compilation flags (such as -O)
449 CPPFLAGS Additional compilation flags (sucha s -I) used only by the preprocessor 451 CPPFLAGS Additional compilation flags (such as -I/foo) used only by the preprocessor
450 LDFLAGS Additional linker flags 452 LDFLAGS Additional linker flags (such as -L/foo)
453 LIBS Additional libraries (such as -lfoo)
451 454
452 For more details on the install process, consult the INSTALL file. 455 For more details on the install process, consult the INSTALL file.
453 " 456 "
454 457
455 458
472 done 475 done
473 476
474 while test $# != 0; do 477 while test $# != 0; do
475 arg="$1"; shift 478 arg="$1"; shift
476 case "$arg" in 479 case "$arg" in
477 480 --no-create|--no-recursion) ;;
478 -* ) 481 -* )
479 case "$arg" in 482 case "$arg" in
480 -*=*) 483 -*=*)
481 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'` 484 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
482 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'` 485 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
550 eval "$opt=\"$val\"" ;; 553 eval "$opt=\"$val\"" ;;
551 554
552 555
553 srcdir | \ 556 srcdir | \
554 compiler | \ 557 compiler | \
558 cflags | \
555 puresize | \ 559 puresize | \
556 cache_file | \ 560 cache_file | \
557 native_sound_lib | \ 561 native_sound_lib | \
558 x_includes | \ 562 x_includes | \
559 x_libraries | \ 563 x_libraries | \
723 statedir | lockdir ) lockdir_user_defined=yes ;; 727 statedir | lockdir ) lockdir_user_defined=yes ;;
724 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;; 728 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;;
725 esac 729 esac
726 ;; 730 ;;
727 731
728 cflags )
729 if test "$valomitted" = "yes" ; then
730 if test "$#" = 0; then
731 (echo "$progname: Usage error:"
732 echo " " "The \`--$optname' option requires a value."
733 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
734 fi
735 val="$1"; shift
736 fi
737 eval "$opt=\"$val\""
738 eval "${opt}_specified=1"
739 ;;
740
741 "no_create" ) ;; 732 "no_create" ) ;;
742 733
743 "usage" | "help" ) echo "$usage" | ${PAGER-more}; exit 0 ;; 734 "usage" | "help" ) echo "$usage" | ${PAGER-more}; exit 0 ;;
744 735
745 "with_menubars" | "with_scrollbars" | "with_dialogs" ) 736 "with_menubars" | "with_scrollbars" | "with_dialogs" )
837 fi 828 fi
838 ;; 829 ;;
839 esac 830 esac
840 831
841 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 832 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
842 echo "configure:843: checking whether ln -s works" >&5 833 echo "configure:834: checking whether ln -s works" >&5
843 834
844 rm -f conftestdata 835 rm -f conftestdata
845 if ln -s X conftestdata 2>/dev/null 836 if ln -s X conftestdata 2>/dev/null
846 then 837 then
847 rm -f conftestdata 838 rm -f conftestdata
855 else 846 else
856 echo "$ac_t""no" 1>&6 847 echo "$ac_t""no" 1>&6
857 fi 848 fi
858 849
859 850
860 for dir in lisp etc man info site-lisp 851 for dir in lisp etc man info site-lisp; do
861 do
862 if test ! -d "$dir" ; then 852 if test ! -d "$dir" ; then
863 echo Making symbolic link to "$srcdir/$dir" 853 echo Making symbolic link to "$srcdir/$dir"
864 ${LN_S} "$srcdir/$dir" . 854 ${LN_S} "$srcdir/$dir" "$dir"
865 fi 855 fi
866 done 856 done
867 857
868 case "$srcdir" in 858 case "$srcdir" in
869 /* ) ;; 859 /* ) ;;
894 vpath %.in $(srcdir)' 884 vpath %.in $(srcdir)'
895 fi 885 fi
896 886
897 887
898 echo "checking "the configuration name"" 1>&6 888 echo "checking "the configuration name"" 1>&6
899 echo "configure:900: checking "the configuration name"" >&5 889 echo "configure:890: checking "the configuration name"" >&5
900 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` 890 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'`
901 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 891 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
902 exit $? 892 exit $?
903 fi 893 fi
904 894
1010 NON_GNU_CPP="cc -E -P" 1000 NON_GNU_CPP="cc -E -P"
1011 ;; 1001 ;;
1012 1002
1013 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; 1003 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1014 1004
1015 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
1016
1017 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; 1005 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1018 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;; 1006 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1019 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;; 1007 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1020 m88k-dg-dgux* ) opsys=dgux ;; 1008 m88k-dg-dgux* ) opsys=dgux ;;
1021 1009
1025 ;; 1013 ;;
1026 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;; 1014 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
1027 1015
1028 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;; 1016 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
1029 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;; 1017 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
1030
1031 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
1032 1018
1033 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;; 1019 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
1034 1020
1035 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;; 1021 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
1036 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;; 1022 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
1171 canonical="`echo \"$canonical\" | sed -e s/sunos5/solaris2/`";; 1157 canonical="`echo \"$canonical\" | sed -e s/sunos5/solaris2/`";;
1172 esac 1158 esac
1173 1159
1174 case "$canonical" in 1160 case "$canonical" in
1175 *-sunos4* ) 1161 *-sunos4* )
1176 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; 1162 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1163 : ;;
1177 *-solaris2* ) 1164 *-solaris2* )
1178 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp 1165 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1179 RANLIB=':' 1166 RANLIB=':' ;;
1180 esac 1167 esac
1181 1168
1182 case "$canonical" in 1169 case "$canonical" in
1183 i[3-9]86-*-sunos4*) opsys=sunos4-0 ;; 1170 i[3-9]86-*-sunos4*) opsys=sunos4-0 ;;
1184 *-sunos4.0* ) opsys=sunos4-0 ;; 1171 *-sunos4.0* ) opsys=sunos4-0 ;;
1312 with_tooltalk=yes 1299 with_tooltalk=yes
1313 fi 1300 fi
1314 1301
1315 test -n "$CC" && cc_specified=yes 1302 test -n "$CC" && cc_specified=yes
1316 1303
1317 SPECIFIED_CFLAGS="$CFLAGS"
1318
1319 if test -n "$compiler"; then CC="$compiler"; fi 1304 if test -n "$compiler"; then CC="$compiler"; fi
1305
1306 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags"
1307 xe_save_CFLAGS="$CFLAGS"
1320 1308
1321 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC" 1309 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC"
1322 # Extract the first word of "gcc", so it can be a program name with args. 1310 # Extract the first word of "gcc", so it can be a program name with args.
1323 set dummy gcc; ac_word=$2 1311 set dummy gcc; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5 1313 echo "configure:1314: checking for $ac_word" >&5
1326 1314
1327 if test -n "$CC"; then 1315 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test. 1316 ac_cv_prog_CC="$CC" # Let the user override the test.
1329 else 1317 else
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1346 1334
1347 if test -z "$CC"; then 1335 if test -z "$CC"; then
1348 # Extract the first word of "cc", so it can be a program name with args. 1336 # Extract the first word of "cc", so it can be a program name with args.
1349 set dummy cc; ac_word=$2 1337 set dummy cc; ac_word=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5 1339 echo "configure:1340: checking for $ac_word" >&5
1352 1340
1353 if test -n "$CC"; then 1341 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test. 1342 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 else 1343 else
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1391 1379
1392 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1380 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1393 fi 1381 fi
1394 1382
1395 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1383 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1384 echo "configure:1385: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1397 1385
1398 ac_ext=c 1386 ac_ext=c
1399 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1387 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1400 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1388 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1401 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1389 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1403 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1391 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1404 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1392 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1405 cross_compiling=no 1393 cross_compiling=no
1406 1394
1407 cat > conftest.$ac_ext <<EOF 1395 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure" 1396 #line 1397 "configure"
1409 #include "confdefs.h" 1397 #include "confdefs.h"
1410 main(){return(0);} 1398 main(){return(0);}
1411 EOF 1399 EOF
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1413 ac_cv_prog_cc_works=yes 1401 ac_cv_prog_cc_works=yes
1414 # If we can't run a trivial program, we are probably using a cross compiler. 1402 # If we can't run a trivial program, we are probably using a cross compiler.
1415 if (./conftest; exit) 2>/dev/null; then 1403 if (./conftest; exit) 2>/dev/null; then
1416 ac_cv_prog_cc_cross=no 1404 ac_cv_prog_cc_cross=no
1417 else 1405 else
1427 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1415 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1428 if test $ac_cv_prog_cc_works = no; then 1416 if test $ac_cv_prog_cc_works = no; then
1429 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1417 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1430 fi 1418 fi
1431 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1419 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1432 echo "configure:1433: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1420 echo "configure:1421: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1433 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1421 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1434 cross_compiling=$ac_cv_prog_cc_cross 1422 cross_compiling=$ac_cv_prog_cc_cross
1435 1423
1436 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1424 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether we are using GNU C" >&5 1425 echo "configure:1426: checking whether we are using GNU C" >&5
1438 1426
1439 cat > conftest.c <<EOF 1427 cat > conftest.c <<EOF
1440 #ifdef __GNUC__ 1428 #ifdef __GNUC__
1441 yes; 1429 yes;
1442 #endif 1430 #endif
1443 EOF 1431 EOF
1444 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1432 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1445 ac_cv_prog_gcc=yes 1433 ac_cv_prog_gcc=yes
1446 else 1434 else
1447 ac_cv_prog_gcc=no 1435 ac_cv_prog_gcc=no
1448 fi 1436 fi
1449 1437
1453 GCC=yes 1441 GCC=yes
1454 ac_test_CFLAGS="${CFLAGS+set}" 1442 ac_test_CFLAGS="${CFLAGS+set}"
1455 ac_save_CFLAGS="$CFLAGS" 1443 ac_save_CFLAGS="$CFLAGS"
1456 CFLAGS= 1444 CFLAGS=
1457 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1445 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1458 echo "configure:1459: checking whether ${CC-cc} accepts -g" >&5 1446 echo "configure:1447: checking whether ${CC-cc} accepts -g" >&5
1459 1447
1460 echo 'void f(){}' > conftest.c 1448 echo 'void f(){}' > conftest.c
1461 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1449 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1462 ac_cv_prog_cc_g=yes 1450 ac_cv_prog_cc_g=yes
1463 else 1451 else
1483 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then 1471 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then
1484 CC=${NON_GNU_CC-cc} 1472 CC=${NON_GNU_CC-cc}
1485 # Extract the first word of "gcc", so it can be a program name with args. 1473 # Extract the first word of "gcc", so it can be a program name with args.
1486 set dummy gcc; ac_word=$2 1474 set dummy gcc; ac_word=$2
1487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_word" >&5 1476 echo "configure:1477: checking for $ac_word" >&5
1489 1477
1490 if test -n "$CC"; then 1478 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test. 1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else 1480 else
1493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1509 1497
1510 if test -z "$CC"; then 1498 if test -z "$CC"; then
1511 # Extract the first word of "cc", so it can be a program name with args. 1499 # Extract the first word of "cc", so it can be a program name with args.
1512 set dummy cc; ac_word=$2 1500 set dummy cc; ac_word=$2
1513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1514 echo "configure:1515: checking for $ac_word" >&5 1502 echo "configure:1503: checking for $ac_word" >&5
1515 1503
1516 if test -n "$CC"; then 1504 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test. 1505 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 else 1506 else
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1554 1542
1555 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1543 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1556 fi 1544 fi
1557 1545
1558 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1546 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1547 echo "configure:1548: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1560 1548
1561 ac_ext=c 1549 ac_ext=c
1562 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1550 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1563 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1551 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1564 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1552 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1566 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1554 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1567 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1555 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1568 cross_compiling=no 1556 cross_compiling=no
1569 1557
1570 cat > conftest.$ac_ext <<EOF 1558 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure" 1559 #line 1560 "configure"
1572 #include "confdefs.h" 1560 #include "confdefs.h"
1573 main(){return(0);} 1561 main(){return(0);}
1574 EOF 1562 EOF
1575 if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1563 if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1576 ac_cv_prog_cc_works=yes 1564 ac_cv_prog_cc_works=yes
1577 # If we can't run a trivial program, we are probably using a cross compiler. 1565 # If we can't run a trivial program, we are probably using a cross compiler.
1578 if (./conftest; exit) 2>/dev/null; then 1566 if (./conftest; exit) 2>/dev/null; then
1579 ac_cv_prog_cc_cross=no 1567 ac_cv_prog_cc_cross=no
1580 else 1568 else
1590 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1578 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1591 if test $ac_cv_prog_cc_works = no; then 1579 if test $ac_cv_prog_cc_works = no; then
1592 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1580 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1593 fi 1581 fi
1594 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1582 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1583 echo "configure:1584: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1596 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1584 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1597 cross_compiling=$ac_cv_prog_cc_cross 1585 cross_compiling=$ac_cv_prog_cc_cross
1598 1586
1599 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1587 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1600 echo "configure:1601: checking whether we are using GNU C" >&5 1588 echo "configure:1589: checking whether we are using GNU C" >&5
1601 1589
1602 cat > conftest.c <<EOF 1590 cat > conftest.c <<EOF
1603 #ifdef __GNUC__ 1591 #ifdef __GNUC__
1604 yes; 1592 yes;
1605 #endif 1593 #endif
1606 EOF 1594 EOF
1607 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1595 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1608 ac_cv_prog_gcc=yes 1596 ac_cv_prog_gcc=yes
1609 else 1597 else
1610 ac_cv_prog_gcc=no 1598 ac_cv_prog_gcc=no
1611 fi 1599 fi
1612 1600
1616 GCC=yes 1604 GCC=yes
1617 ac_test_CFLAGS="${CFLAGS+set}" 1605 ac_test_CFLAGS="${CFLAGS+set}"
1618 ac_save_CFLAGS="$CFLAGS" 1606 ac_save_CFLAGS="$CFLAGS"
1619 CFLAGS= 1607 CFLAGS=
1620 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1608 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1621 echo "configure:1622: checking whether ${CC-cc} accepts -g" >&5 1609 echo "configure:1610: checking whether ${CC-cc} accepts -g" >&5
1622 1610
1623 echo 'void f(){}' > conftest.c 1611 echo 'void f(){}' > conftest.c
1624 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1612 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1625 ac_cv_prog_cc_g=yes 1613 ac_cv_prog_cc_g=yes
1626 else 1614 else
1645 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then 1633 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then
1646 CC=gcc 1634 CC=gcc
1647 # Extract the first word of "gcc", so it can be a program name with args. 1635 # Extract the first word of "gcc", so it can be a program name with args.
1648 set dummy gcc; ac_word=$2 1636 set dummy gcc; ac_word=$2
1649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1650 echo "configure:1651: checking for $ac_word" >&5 1638 echo "configure:1639: checking for $ac_word" >&5
1651 1639
1652 if test -n "$CC"; then 1640 if test -n "$CC"; then
1653 ac_cv_prog_CC="$CC" # Let the user override the test. 1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1654 else 1642 else
1655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1671 1659
1672 if test -z "$CC"; then 1660 if test -z "$CC"; then
1673 # Extract the first word of "cc", so it can be a program name with args. 1661 # Extract the first word of "cc", so it can be a program name with args.
1674 set dummy cc; ac_word=$2 1662 set dummy cc; ac_word=$2
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_word" >&5 1664 echo "configure:1665: checking for $ac_word" >&5
1677 1665
1678 if test -n "$CC"; then 1666 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test. 1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 else 1668 else
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1716 1704
1717 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1705 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1718 fi 1706 fi
1719 1707
1720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1721 echo "configure:1722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1709 echo "configure:1710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1722 1710
1723 ac_ext=c 1711 ac_ext=c
1724 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1712 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1725 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1713 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1726 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1714 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1728 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1716 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1729 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1717 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1730 cross_compiling=no 1718 cross_compiling=no
1731 1719
1732 cat > conftest.$ac_ext <<EOF 1720 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure" 1721 #line 1722 "configure"
1734 #include "confdefs.h" 1722 #include "confdefs.h"
1735 main(){return(0);} 1723 main(){return(0);}
1736 EOF 1724 EOF
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1725 if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1738 ac_cv_prog_cc_works=yes 1726 ac_cv_prog_cc_works=yes
1739 # If we can't run a trivial program, we are probably using a cross compiler. 1727 # If we can't run a trivial program, we are probably using a cross compiler.
1740 if (./conftest; exit) 2>/dev/null; then 1728 if (./conftest; exit) 2>/dev/null; then
1741 ac_cv_prog_cc_cross=no 1729 ac_cv_prog_cc_cross=no
1742 else 1730 else
1752 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1753 if test $ac_cv_prog_cc_works = no; then 1741 if test $ac_cv_prog_cc_works = no; then
1754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1755 fi 1743 fi
1756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1757 echo "configure:1758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1745 echo "configure:1746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1758 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1759 cross_compiling=$ac_cv_prog_cc_cross 1747 cross_compiling=$ac_cv_prog_cc_cross
1760 1748
1761 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1762 echo "configure:1763: checking whether we are using GNU C" >&5 1750 echo "configure:1751: checking whether we are using GNU C" >&5
1763 1751
1764 cat > conftest.c <<EOF 1752 cat > conftest.c <<EOF
1765 #ifdef __GNUC__ 1753 #ifdef __GNUC__
1766 yes; 1754 yes;
1767 #endif 1755 #endif
1768 EOF 1756 EOF
1769 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1757 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1770 ac_cv_prog_gcc=yes 1758 ac_cv_prog_gcc=yes
1771 else 1759 else
1772 ac_cv_prog_gcc=no 1760 ac_cv_prog_gcc=no
1773 fi 1761 fi
1774 1762
1778 GCC=yes 1766 GCC=yes
1779 ac_test_CFLAGS="${CFLAGS+set}" 1767 ac_test_CFLAGS="${CFLAGS+set}"
1780 ac_save_CFLAGS="$CFLAGS" 1768 ac_save_CFLAGS="$CFLAGS"
1781 CFLAGS= 1769 CFLAGS=
1782 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1770 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether ${CC-cc} accepts -g" >&5 1771 echo "configure:1772: checking whether ${CC-cc} accepts -g" >&5
1784 1772
1785 echo 'void f(){}' > conftest.c 1773 echo 'void f(){}' > conftest.c
1786 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1774 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1787 ac_cv_prog_cc_g=yes 1775 ac_cv_prog_cc_g=yes
1788 else 1776 else
1803 GCC= 1791 GCC=
1804 test "${CFLAGS+set}" = set || CFLAGS="-g" 1792 test "${CFLAGS+set}" = set || CFLAGS="-g"
1805 fi 1793 fi
1806 1794
1807 fi 1795 fi
1796 CFLAGS="$xe_save_CFLAGS"
1808 1797
1809 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi 1798 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi
1810 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1799 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1811 1800
1812 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1801 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1813 echo "configure:1814: checking how to run the C preprocessor" >&5 1802 echo "configure:1803: checking how to run the C preprocessor" >&5
1814 # On Suns, sometimes $CPP names a directory. 1803 # On Suns, sometimes $CPP names a directory.
1815 if test -n "$CPP" && test -d "$CPP"; then 1804 if test -n "$CPP" && test -d "$CPP"; then
1816 CPP= 1805 CPP=
1817 fi 1806 fi
1818 if test -z "$CPP"; then 1807 if test -z "$CPP"; then
1821 # substituted into the Makefile and "${CC-cc}" will confuse make. 1810 # substituted into the Makefile and "${CC-cc}" will confuse make.
1822 CPP="${CC-cc} -E" 1811 CPP="${CC-cc} -E"
1823 # On the NeXT, cc -E runs the code through the compiler's parser, 1812 # On the NeXT, cc -E runs the code through the compiler's parser,
1824 # not just through cpp. 1813 # not just through cpp.
1825 cat > conftest.$ac_ext <<EOF 1814 cat > conftest.$ac_ext <<EOF
1826 #line 1827 "configure" 1815 #line 1816 "configure"
1827 #include "confdefs.h" 1816 #include "confdefs.h"
1828 #include <assert.h> 1817 #include <assert.h>
1829 Syntax Error 1818 Syntax Error
1830 EOF 1819 EOF
1831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1832 { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1833 ac_err=`grep -v '^ *+' conftest.out` 1822 ac_err=`grep -v '^ *+' conftest.out`
1834 if test -z "$ac_err"; then 1823 if test -z "$ac_err"; then
1835 : 1824 :
1836 else 1825 else
1837 echo "$ac_err" >&5 1826 echo "$ac_err" >&5
1838 echo "configure: failed program was:" >&5 1827 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5 1828 cat conftest.$ac_ext >&5
1840 rm -rf conftest* 1829 rm -rf conftest*
1841 CPP="${CC-cc} -E -traditional-cpp" 1830 CPP="${CC-cc} -E -traditional-cpp"
1842 cat > conftest.$ac_ext <<EOF 1831 cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure" 1832 #line 1833 "configure"
1844 #include "confdefs.h" 1833 #include "confdefs.h"
1845 #include <assert.h> 1834 #include <assert.h>
1846 Syntax Error 1835 Syntax Error
1847 EOF 1836 EOF
1848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1849 { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1850 ac_err=`grep -v '^ *+' conftest.out` 1839 ac_err=`grep -v '^ *+' conftest.out`
1851 if test -z "$ac_err"; then 1840 if test -z "$ac_err"; then
1852 : 1841 :
1853 else 1842 else
1854 echo "$ac_err" >&5 1843 echo "$ac_err" >&5
1866 ac_cv_prog_CPP="$CPP" 1855 ac_cv_prog_CPP="$CPP"
1867 fi 1856 fi
1868 echo "$ac_t""$CPP" 1>&6 1857 echo "$ac_t""$CPP" 1>&6
1869 1858
1870 1859
1871 case "$canonical" in 1860 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1872 *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; 1861 echo "configure:1862: checking for AIX" >&5
1873 esac 1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 #ifdef _AIX
1866 yes
1867 #endif
1868
1869 EOF
1870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1871 egrep "yes" >/dev/null 2>&1; then
1872 rm -rf conftest*
1873 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
1874 Defining _ALL_SOURCE
1875 EOF
1876 cat >> confdefs.h <<\EOF
1877 #define _ALL_SOURCE 1
1878 EOF
1879 }
1880
1881 else
1882 rm -rf conftest*
1883 echo "$ac_t""no" 1>&6
1884 fi
1885 rm -f conftest*
1886
1887
1888
1889 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether we are using SunPro C" >&5
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894
1895 int main() {
1896 #ifndef __SUNPRO_C
1897 #error Not a SunPro compiler :-(
1898 #endif
1899
1900 ; return 0; }
1901 EOF
1902 if { (eval echo configure:1903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1903 rm -rf conftest*
1904 __sunpro_c=yes
1905 else
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 rm -rf conftest*
1909 __sunpro_c=no
1910 fi
1911 rm -f conftest*
1912 echo "$ac_t""$__sunpro_c" 1>&6
1913
1874 1914
1875 1915
1876 echo "Extracting information from the machine- and system-dependent headers..." 1916 echo "Extracting information from the machine- and system-dependent headers..."
1877
1878
1879 1917
1880 tempcname="conftest.c" 1918 tempcname="conftest.c"
1881 1919
1882 1920
1883 1921
1912 #ifndef LIB_STANDARD 1950 #ifndef LIB_STANDARD
1913 #define LIB_STANDARD 1951 #define LIB_STANDARD
1914 #endif 1952 #endif
1915 configure___ libs_standard=LIB_STANDARD 1953 configure___ libs_standard=LIB_STANDARD
1916 1954
1955
1956 #ifndef C_SWITCH_MACHINE
1957 #define C_SWITCH_MACHINE
1958 #endif
1959 configure___ c_switch_machine=C_SWITCH_MACHINE
1960
1917 #ifndef C_SWITCH_SYSTEM 1961 #ifndef C_SWITCH_SYSTEM
1918 #define C_SWITCH_SYSTEM 1962 #define C_SWITCH_SYSTEM
1919 #endif 1963 #endif
1920 configure___ c_switch_system=C_SWITCH_SYSTEM 1964 configure___ c_switch_system=C_SWITCH_SYSTEM
1921 1965
1922 #ifndef C_SWITCH_MACHINE
1923 #define C_SWITCH_MACHINE
1924 #endif
1925 configure___ c_switch_machine=C_SWITCH_MACHINE
1926
1927 #ifndef C_SWITCH_X_SYSTEM 1966 #ifndef C_SWITCH_X_SYSTEM
1928 #define C_SWITCH_X_SYSTEM 1967 #define C_SWITCH_X_SYSTEM
1929 #endif 1968 #endif
1930 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM 1969 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
1931 1970
1971
1972 #ifndef LD_SWITCH_MACHINE
1973 #define LD_SWITCH_MACHINE
1974 #endif
1975 configure___ ld_switch_machine=LD_SWITCH_MACHINE
1976
1977 #ifndef LD_SWITCH_SYSTEM
1978 #define LD_SWITCH_SYSTEM
1979 #endif
1980 configure___ ld_switch_system=LD_SWITCH_SYSTEM
1981
1932 #ifndef LD_SWITCH_X_SYSTEM 1982 #ifndef LD_SWITCH_X_SYSTEM
1933 #define LD_SWITCH_X_SYSTEM 1983 #define LD_SWITCH_X_SYSTEM
1934 #endif 1984 #endif
1935 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM 1985 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
1936 1986
1937 #ifndef LD_SWITCH_SYSTEM
1938 #define LD_SWITCH_SYSTEM
1939 #endif
1940 configure___ ld_switch_system=LD_SWITCH_SYSTEM
1941 1987
1942 #ifndef UNEXEC 1988 #ifndef UNEXEC
1943 #define UNEXEC unexec.o 1989 #define UNEXEC "unexec.o"
1944 #endif 1990 #endif
1945 configure___ unexec=UNEXEC 1991 configure___ unexec=UNEXEC
1946
1947 #ifndef C_DEBUG_SWITCH
1948 #define C_DEBUG_SWITCH -g
1949 #endif
1950 configure___ c_debug_switch=C_DEBUG_SWITCH
1951
1952 #ifndef C_OPTIMIZE_SWITCH
1953 #define C_OPTIMIZE_SWITCH -O
1954 #endif
1955 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
1956 1992
1957 1993
1958 #ifdef ORDINARY_LINK 1994 #ifdef ORDINARY_LINK
1959 configure___ ordinary_link=yes 1995 configure___ ordinary_link=yes
1960 #else 1996 #else
1984 #else 2020 #else
1985 configure___ mail_use_lockf=no 2021 configure___ mail_use_lockf=no
1986 #endif 2022 #endif
1987 2023
1988 2024
2025 #if 0
1989 #ifdef THIS_IS_CONFIGURE 2026 #ifdef THIS_IS_CONFIGURE
1990 2027
1991 /* Get the CFLAGS for tests in configure. */ 2028 /* Get the CFLAGS for tests in configure. */
2029 #ifndef C_DEBUG_SWITCH
2030 #define C_DEBUG_SWITCH "-g"
2031 #endif
2032 configure___ c_debug_switch=C_DEBUG_SWITCH
2033
2034 #ifndef C_OPTIMIZE_SWITCH
2035 #define C_OPTIMIZE_SWITCH "-O"
2036 #endif
2037 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
2038
1992 #ifdef __GNUC__ 2039 #ifdef __GNUC__
1993 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS' 2040 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
1994 #else 2041 #else
1995 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS' 2042 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
1996 #endif 2043 #endif
2003 #else 2050 #else
2004 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS' 2051 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
2005 #endif 2052 #endif
2006 2053
2007 #endif /* not THIS_IS_CONFIGURE */ 2054 #endif /* not THIS_IS_CONFIGURE */
2055 #endif /* 0 */
2008 ' > $tempcname 2056 ' > $tempcname
2009 CPP=`eval "echo $CPP"` 2057 CPP=`eval "echo $CPP"`
2010 eval `$CPP -Isrc $tempcname \ 2058 eval `$CPP -Isrc $tempcname \
2011 | sed -n -e "s/ *= */='/" -e "s/ *\$/'/" -e "s/^configure___//p"` 2059 | sed -n -e "s/ *=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
2012 if test -z "$SPECIFIED_CFLAGS"; then 2060
2013 eval `$CPP -Isrc -DTHIS_IS_CONFIGURE $tempcname \
2014 | sed -n -e "s/ *= */='/" -e "s/ *\$/'/" -e "s/^configure___//p"`
2015 else
2016 REAL_CFLAGS="$CFLAGS"
2017 fi
2018 2061
2019 rm $tempcname 2062 rm $tempcname
2020 2063
2021 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2064 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2022 2065
2023 test "$cflags" != "NO_CFLAGS_DEFINED" && REAL_CFLAGS="$cflags" 2066 if test -z "$CFLAGS"; then
2067 if test "$GCC" = "yes"; then
2068 CFLAGS="-g -O2"
2069 test "$opsys" = "linux" -a "$machine" = "intel386" && \
2070 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2"
2071 elif test "$__sunpro_c" = "yes"; then
2072 case "$opsys" in
2073 sol2* ) CFLAGS="-v -xO4" ;;
2074 sunos4* ) CFLAGS="-xO3";;
2075 esac
2076 else
2077 CFLAGS="-O" # The only POSIX-approved flag
2078 fi
2079 fi
2024 2080
2025 extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2081 extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2026 echo " xemacs will be linked with \"$unexec\"" 2082 echo " xemacs will be linked with \"$unexec\""
2027 fi 2083 fi
2028 2084
2037 if test -n "$site_includes" ; then 2093 if test -n "$site_includes" ; then
2038 for arg in $site_includes; do 2094 for arg in $site_includes; do
2039 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac 2095 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
2040 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi 2096 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2041 done 2097 done
2098 fi
2099
2100 if test -d "/usr/local/include" -a -d "/usr/local/lib"; then
2101 ld_switch_site="$ld_switch_site "-L/usr/local/lib"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L/usr/local/lib"\" to \$ld_switch_site"; fi
2102 c_switch_site="$c_switch_site "-I/usr/local/include"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I/usr/local/include"\" to \$c_switch_site"; fi
2042 fi 2103 fi
2043 2104
2044 for dir in "/usr/ccs/lib"; do 2105 for dir in "/usr/ccs/lib"; do
2045 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 2106 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
2046 done 2107 done
2059 esac 2120 esac
2060 fi 2121 fi
2061 2122
2062 if test "$add_runtime_path" = "yes"; then 2123 if test "$add_runtime_path" = "yes"; then
2063 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2124 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2064 echo "configure:2065: checking "for runtime libraries flag"" >&5 2125 echo "configure:2126: checking "for runtime libraries flag"" >&5
2065 dash_r="" 2126 dash_r=""
2066 for try_dash_r in "-R" "-R " "-rpath "; do 2127 for try_dash_r in "-R" "-R " "-rpath "; do
2067 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2128 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2068 cat > conftest.$ac_ext <<EOF 2129 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure" 2130 #line 2131 "configure"
2070 #include "confdefs.h" 2131 #include "confdefs.h"
2071 2132
2072 int main() { 2133 int main() {
2073 2134
2074 ; return 0; } 2135 ; return 0; }
2075 EOF 2136 EOF
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2077 rm -rf conftest* 2138 rm -rf conftest*
2078 dash_r="$try_dash_r" 2139 dash_r="$try_dash_r"
2079 else 2140 else
2080 echo "configure: failed program was:" >&5 2141 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5 2142 cat conftest.$ac_ext >&5
2155 2216
2156 2217
2157 # Extract the first word of "ranlib", so it can be a program name with args. 2218 # Extract the first word of "ranlib", so it can be a program name with args.
2158 set dummy ranlib; ac_word=$2 2219 set dummy ranlib; ac_word=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5 2221 echo "configure:2222: checking for $ac_word" >&5
2161 2222
2162 if test -n "$RANLIB"; then 2223 if test -n "$RANLIB"; then
2163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2164 else 2225 else
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2208 # AIX /bin/install 2269 # AIX /bin/install
2209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2211 # ./install, which can be erroneously created by make from ./install.sh. 2272 # ./install, which can be erroneously created by make from ./install.sh.
2212 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2273 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2213 echo "configure:2214: checking for a BSD compatible install" >&5 2274 echo "configure:2275: checking for a BSD compatible install" >&5
2214 if test -z "$INSTALL"; then 2275 if test -z "$INSTALL"; then
2215 2276
2216 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2277 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2217 for ac_dir in $PATH; do 2278 for ac_dir in $PATH; do
2218 # Account for people who put trailing slashes in PATH elements. 2279 # Account for people who put trailing slashes in PATH elements.
2259 for ac_prog in 'bison -y' byacc 2320 for ac_prog in 'bison -y' byacc
2260 do 2321 do
2261 # Extract the first word of "$ac_prog", so it can be a program name with args. 2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2 2323 set dummy $ac_prog; ac_word=$2
2263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_word" >&5 2325 echo "configure:2326: checking for $ac_word" >&5
2265 2326
2266 if test -n "$YACC"; then 2327 if test -n "$YACC"; then
2267 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2328 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2268 else 2329 else
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2286 test -n "$YACC" && break 2347 test -n "$YACC" && break
2287 done 2348 done
2288 test -n "$YACC" || YACC="yacc" 2349 test -n "$YACC" || YACC="yacc"
2289 2350
2290 2351
2291 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2292 echo "configure:2293: checking for AIX" >&5
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #ifdef _AIX
2297 yes
2298 #endif
2299
2300 EOF
2301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2302 egrep "yes" >/dev/null 2>&1; then
2303 rm -rf conftest*
2304 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
2305 Defining _ALL_SOURCE
2306 EOF
2307 cat >> confdefs.h <<\EOF
2308 #define _ALL_SOURCE 1
2309 EOF
2310 }
2311
2312 else
2313 rm -rf conftest*
2314 echo "$ac_t""no" 1>&6
2315 fi
2316 rm -f conftest*
2317
2318
2319
2320 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2352 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2321 do 2353 do
2322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_hdr" >&5 2356 echo "configure:2357: checking for $ac_hdr" >&5
2325 2357
2326 cat > conftest.$ac_ext <<EOF 2358 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure" 2359 #line 2360 "configure"
2328 #include "confdefs.h" 2360 #include "confdefs.h"
2329 #include <$ac_hdr> 2361 #include <$ac_hdr>
2330 EOF 2362 EOF
2331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2332 { (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2333 ac_err=`grep -v '^ *+' conftest.out` 2365 ac_err=`grep -v '^ *+' conftest.out`
2334 if test -z "$ac_err"; then 2366 if test -z "$ac_err"; then
2335 rm -rf conftest* 2367 rm -rf conftest*
2336 eval "ac_cv_header_$ac_safe=yes" 2368 eval "ac_cv_header_$ac_safe=yes"
2337 else 2369 else
2360 2392
2361 for ac_hdr in utime.h locale.h libgen.h 2393 for ac_hdr in utime.h locale.h libgen.h
2362 do 2394 do
2363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2365 echo "configure:2366: checking for $ac_hdr" >&5 2397 echo "configure:2398: checking for $ac_hdr" >&5
2366 2398
2367 cat > conftest.$ac_ext <<EOF 2399 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure" 2400 #line 2401 "configure"
2369 #include "confdefs.h" 2401 #include "confdefs.h"
2370 #include <$ac_hdr> 2402 #include <$ac_hdr>
2371 EOF 2403 EOF
2372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2373 { (eval echo configure:2374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2405 { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2374 ac_err=`grep -v '^ *+' conftest.out` 2406 ac_err=`grep -v '^ *+' conftest.out`
2375 if test -z "$ac_err"; then 2407 if test -z "$ac_err"; then
2376 rm -rf conftest* 2408 rm -rf conftest*
2377 eval "ac_cv_header_$ac_safe=yes" 2409 eval "ac_cv_header_$ac_safe=yes"
2378 else 2410 else
2397 else 2429 else
2398 echo "$ac_t""no" 1>&6 2430 echo "$ac_t""no" 1>&6
2399 fi 2431 fi
2400 done 2432 done
2401 2433
2402 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h 2434 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2403 do 2435 do
2404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2406 echo "configure:2407: checking for $ac_hdr" >&5 2438 echo "configure:2439: checking for $ac_hdr" >&5
2407 2439
2408 cat > conftest.$ac_ext <<EOF 2440 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure" 2441 #line 2442 "configure"
2410 #include "confdefs.h" 2442 #include "confdefs.h"
2411 #include <$ac_hdr> 2443 #include <$ac_hdr>
2412 EOF 2444 EOF
2413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err=`grep -v '^ *+' conftest.out` 2447 ac_err=`grep -v '^ *+' conftest.out`
2416 if test -z "$ac_err"; then 2448 if test -z "$ac_err"; then
2417 rm -rf conftest* 2449 rm -rf conftest*
2418 eval "ac_cv_header_$ac_safe=yes" 2450 eval "ac_cv_header_$ac_safe=yes"
2419 else 2451 else
2439 echo "$ac_t""no" 1>&6 2471 echo "$ac_t""no" 1>&6
2440 fi 2472 fi
2441 done 2473 done
2442 2474
2443 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2475 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2444 echo "configure:2445: checking for sys/wait.h that is POSIX.1 compatible" >&5 2476 echo "configure:2477: checking for sys/wait.h that is POSIX.1 compatible" >&5
2445 2477
2446 cat > conftest.$ac_ext <<EOF 2478 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure" 2479 #line 2480 "configure"
2448 #include "confdefs.h" 2480 #include "confdefs.h"
2449 #include <sys/types.h> 2481 #include <sys/types.h>
2450 #include <sys/wait.h> 2482 #include <sys/wait.h>
2451 #ifndef WEXITSTATUS 2483 #ifndef WEXITSTATUS
2452 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2458 int s; 2490 int s;
2459 wait (&s); 2491 wait (&s);
2460 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2461 ; return 0; } 2493 ; return 0; }
2462 EOF 2494 EOF
2463 if { (eval echo configure:2464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2495 if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2464 rm -rf conftest* 2496 rm -rf conftest*
2465 ac_cv_header_sys_wait_h=yes 2497 ac_cv_header_sys_wait_h=yes
2466 else 2498 else
2467 echo "configure: failed program was:" >&5 2499 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5 2500 cat conftest.$ac_ext >&5
2482 } 2514 }
2483 2515
2484 fi 2516 fi
2485 2517
2486 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2487 echo "configure:2488: checking for ANSI C header files" >&5 2519 echo "configure:2520: checking for ANSI C header files" >&5
2488 2520
2489 cat > conftest.$ac_ext <<EOF 2521 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure" 2522 #line 2523 "configure"
2491 #include "confdefs.h" 2523 #include "confdefs.h"
2492 #include <stdlib.h> 2524 #include <stdlib.h>
2493 #include <stdarg.h> 2525 #include <stdarg.h>
2494 #include <string.h> 2526 #include <string.h>
2495 #include <float.h> 2527 #include <float.h>
2496 EOF 2528 EOF
2497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2530 { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err=`grep -v '^ *+' conftest.out` 2531 ac_err=`grep -v '^ *+' conftest.out`
2500 if test -z "$ac_err"; then 2532 if test -z "$ac_err"; then
2501 rm -rf conftest* 2533 rm -rf conftest*
2502 ac_cv_header_stdc=yes 2534 ac_cv_header_stdc=yes
2503 else 2535 else
2510 rm -f conftest* 2542 rm -f conftest*
2511 2543
2512 if test $ac_cv_header_stdc = yes; then 2544 if test $ac_cv_header_stdc = yes; then
2513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2514 cat > conftest.$ac_ext <<EOF 2546 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure" 2547 #line 2548 "configure"
2516 #include "confdefs.h" 2548 #include "confdefs.h"
2517 #include <string.h> 2549 #include <string.h>
2518 EOF 2550 EOF
2519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2520 egrep "memchr" >/dev/null 2>&1; then 2552 egrep "memchr" >/dev/null 2>&1; then
2528 fi 2560 fi
2529 2561
2530 if test $ac_cv_header_stdc = yes; then 2562 if test $ac_cv_header_stdc = yes; then
2531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2532 cat > conftest.$ac_ext <<EOF 2564 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure" 2565 #line 2566 "configure"
2534 #include "confdefs.h" 2566 #include "confdefs.h"
2535 #include <stdlib.h> 2567 #include <stdlib.h>
2536 EOF 2568 EOF
2537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2538 egrep "free" >/dev/null 2>&1; then 2570 egrep "free" >/dev/null 2>&1; then
2546 fi 2578 fi
2547 2579
2548 if test $ac_cv_header_stdc = yes; then 2580 if test $ac_cv_header_stdc = yes; then
2549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2550 cat > conftest.$ac_ext <<EOF 2582 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure" 2583 #line 2584 "configure"
2552 #include "confdefs.h" 2584 #include "confdefs.h"
2553 #include <ctype.h> 2585 #include <ctype.h>
2554 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2586 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2555 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2587 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2557 int main () { int i; for (i = 0; i < 256; i++) 2589 int main () { int i; for (i = 0; i < 256; i++)
2558 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2590 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2559 exit (0); } 2591 exit (0); }
2560 2592
2561 EOF 2593 EOF
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2563 then 2595 then
2564 : 2596 :
2565 else 2597 else
2566 echo "configure: failed program was:" >&5 2598 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5 2599 cat conftest.$ac_ext >&5
2582 } 2614 }
2583 2615
2584 fi 2616 fi
2585 2617
2586 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2618 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2587 echo "configure:2588: checking whether time.h and sys/time.h may both be included" >&5 2619 echo "configure:2620: checking whether time.h and sys/time.h may both be included" >&5
2588 2620
2589 cat > conftest.$ac_ext <<EOF 2621 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure" 2622 #line 2623 "configure"
2591 #include "confdefs.h" 2623 #include "confdefs.h"
2592 #include <sys/types.h> 2624 #include <sys/types.h>
2593 #include <sys/time.h> 2625 #include <sys/time.h>
2594 #include <time.h> 2626 #include <time.h>
2595 int main() { 2627 int main() {
2596 struct tm *tp; 2628 struct tm *tp;
2597 ; return 0; } 2629 ; return 0; }
2598 EOF 2630 EOF
2599 if { (eval echo configure:2600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2631 if { (eval echo configure:2632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2600 rm -rf conftest* 2632 rm -rf conftest*
2601 ac_cv_header_time=yes 2633 ac_cv_header_time=yes
2602 else 2634 else
2603 echo "configure: failed program was:" >&5 2635 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5 2636 cat conftest.$ac_ext >&5
2618 } 2650 }
2619 2651
2620 fi 2652 fi
2621 2653
2622 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2654 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2623 echo "configure:2624: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2655 echo "configure:2656: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2624 2656
2625 cat > conftest.$ac_ext <<EOF 2657 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure" 2658 #line 2659 "configure"
2627 #include "confdefs.h" 2659 #include "confdefs.h"
2628 #include <sys/types.h> 2660 #include <sys/types.h>
2629 #include <signal.h> 2661 #include <signal.h>
2630 /* NetBSD declares sys_siglist in unistd.h. */ 2662 /* NetBSD declares sys_siglist in unistd.h. */
2631 #ifdef HAVE_UNISTD_H 2663 #ifdef HAVE_UNISTD_H
2633 #endif 2665 #endif
2634 int main() { 2666 int main() {
2635 char *msg = *(sys_siglist + 1); 2667 char *msg = *(sys_siglist + 1);
2636 ; return 0; } 2668 ; return 0; }
2637 EOF 2669 EOF
2638 if { (eval echo configure:2639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2670 if { (eval echo configure:2671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2639 rm -rf conftest* 2671 rm -rf conftest*
2640 ac_cv_decl_sys_siglist=yes 2672 ac_cv_decl_sys_siglist=yes
2641 else 2673 else
2642 echo "configure: failed program was:" >&5 2674 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5 2675 cat conftest.$ac_ext >&5
2658 2690
2659 fi 2691 fi
2660 2692
2661 2693
2662 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2694 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2663 echo "configure:2664: checking for struct utimbuf" >&5 2695 echo "configure:2696: checking for struct utimbuf" >&5
2664 cat > conftest.$ac_ext <<EOF 2696 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure" 2697 #line 2698 "configure"
2666 #include "confdefs.h" 2698 #include "confdefs.h"
2667 #ifdef TIME_WITH_SYS_TIME 2699 #ifdef TIME_WITH_SYS_TIME
2668 #include <sys/time.h> 2700 #include <sys/time.h>
2669 #include <time.h> 2701 #include <time.h>
2670 #else 2702 #else
2679 #endif 2711 #endif
2680 int main() { 2712 int main() {
2681 static struct utimbuf x; x.actime = x.modtime; 2713 static struct utimbuf x; x.actime = x.modtime;
2682 ; return 0; } 2714 ; return 0; }
2683 EOF 2715 EOF
2684 if { (eval echo configure:2685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2716 if { (eval echo configure:2717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2685 rm -rf conftest* 2717 rm -rf conftest*
2686 echo "$ac_t""yes" 1>&6 2718 echo "$ac_t""yes" 1>&6
2687 { test "$extra_verbose" = "yes" && cat << \EOF 2719 { test "$extra_verbose" = "yes" && cat << \EOF
2688 Defining HAVE_STRUCT_UTIMBUF 2720 Defining HAVE_STRUCT_UTIMBUF
2689 EOF 2721 EOF
2699 echo "$ac_t""no" 1>&6 2731 echo "$ac_t""no" 1>&6
2700 fi 2732 fi
2701 rm -f conftest* 2733 rm -f conftest*
2702 2734
2703 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2735 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2704 echo "configure:2705: checking return type of signal handlers" >&5 2736 echo "configure:2737: checking return type of signal handlers" >&5
2705 2737
2706 cat > conftest.$ac_ext <<EOF 2738 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure" 2739 #line 2740 "configure"
2708 #include "confdefs.h" 2740 #include "confdefs.h"
2709 #include <sys/types.h> 2741 #include <sys/types.h>
2710 #include <signal.h> 2742 #include <signal.h>
2711 #ifdef signal 2743 #ifdef signal
2712 #undef signal 2744 #undef signal
2719 2751
2720 int main() { 2752 int main() {
2721 int i; 2753 int i;
2722 ; return 0; } 2754 ; return 0; }
2723 EOF 2755 EOF
2724 if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2756 if { (eval echo configure:2757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2725 rm -rf conftest* 2757 rm -rf conftest*
2726 ac_cv_type_signal=void 2758 ac_cv_type_signal=void
2727 else 2759 else
2728 echo "configure: failed program was:" >&5 2760 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5 2761 cat conftest.$ac_ext >&5
2742 } 2774 }
2743 2775
2744 2776
2745 2777
2746 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2778 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2747 echo "configure:2748: checking for struct timeval" >&5 2779 echo "configure:2780: checking for struct timeval" >&5
2748 cat > conftest.$ac_ext <<EOF 2780 cat > conftest.$ac_ext <<EOF
2749 #line 2750 "configure" 2781 #line 2782 "configure"
2750 #include "confdefs.h" 2782 #include "confdefs.h"
2751 #ifdef TIME_WITH_SYS_TIME 2783 #ifdef TIME_WITH_SYS_TIME
2752 #include <sys/time.h> 2784 #include <sys/time.h>
2753 #include <time.h> 2785 #include <time.h>
2754 #else 2786 #else
2760 #endif 2792 #endif
2761 int main() { 2793 int main() {
2762 static struct timeval x; x.tv_sec = x.tv_usec; 2794 static struct timeval x; x.tv_sec = x.tv_usec;
2763 ; return 0; } 2795 ; return 0; }
2764 EOF 2796 EOF
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2797 if { (eval echo configure:2798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766 rm -rf conftest* 2798 rm -rf conftest*
2767 echo "$ac_t""yes" 1>&6 2799 echo "$ac_t""yes" 1>&6
2768 HAVE_TIMEVAL=yes 2800 HAVE_TIMEVAL=yes
2769 { test "$extra_verbose" = "yes" && cat << \EOF 2801 { test "$extra_verbose" = "yes" && cat << \EOF
2770 Defining HAVE_TIMEVAL 2802 Defining HAVE_TIMEVAL
2782 HAVE_TIMEVAL=no 2814 HAVE_TIMEVAL=no
2783 fi 2815 fi
2784 rm -f conftest* 2816 rm -f conftest*
2785 2817
2786 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2818 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2787 echo "configure:2788: checking whether struct tm is in sys/time.h or time.h" >&5 2819 echo "configure:2820: checking whether struct tm is in sys/time.h or time.h" >&5
2788 2820
2789 cat > conftest.$ac_ext <<EOF 2821 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure" 2822 #line 2823 "configure"
2791 #include "confdefs.h" 2823 #include "confdefs.h"
2792 #include <sys/types.h> 2824 #include <sys/types.h>
2793 #include <time.h> 2825 #include <time.h>
2794 int main() { 2826 int main() {
2795 struct tm *tp; tp->tm_sec; 2827 struct tm *tp; tp->tm_sec;
2796 ; return 0; } 2828 ; return 0; }
2797 EOF 2829 EOF
2798 if { (eval echo configure:2799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2830 if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2799 rm -rf conftest* 2831 rm -rf conftest*
2800 ac_cv_struct_tm=time.h 2832 ac_cv_struct_tm=time.h
2801 else 2833 else
2802 echo "configure: failed program was:" >&5 2834 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5 2835 cat conftest.$ac_ext >&5
2817 } 2849 }
2818 2850
2819 fi 2851 fi
2820 2852
2821 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2853 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2822 echo "configure:2823: checking for tm_zone in struct tm" >&5 2854 echo "configure:2855: checking for tm_zone in struct tm" >&5
2823 2855
2824 cat > conftest.$ac_ext <<EOF 2856 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure" 2857 #line 2858 "configure"
2826 #include "confdefs.h" 2858 #include "confdefs.h"
2827 #include <sys/types.h> 2859 #include <sys/types.h>
2828 #include <$ac_cv_struct_tm> 2860 #include <$ac_cv_struct_tm>
2829 int main() { 2861 int main() {
2830 struct tm tm; tm.tm_zone; 2862 struct tm tm; tm.tm_zone;
2831 ; return 0; } 2863 ; return 0; }
2832 EOF 2864 EOF
2833 if { (eval echo configure:2834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2834 rm -rf conftest* 2866 rm -rf conftest*
2835 ac_cv_struct_tm_zone=yes 2867 ac_cv_struct_tm_zone=yes
2836 else 2868 else
2837 echo "configure: failed program was:" >&5 2869 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5 2870 cat conftest.$ac_ext >&5
2851 EOF 2883 EOF
2852 } 2884 }
2853 2885
2854 else 2886 else
2855 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2887 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2856 echo "configure:2857: checking for tzname" >&5 2888 echo "configure:2889: checking for tzname" >&5
2857 2889
2858 cat > conftest.$ac_ext <<EOF 2890 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure" 2891 #line 2892 "configure"
2860 #include "confdefs.h" 2892 #include "confdefs.h"
2861 #include <time.h> 2893 #include <time.h>
2862 #ifndef tzname /* For SGI. */ 2894 #ifndef tzname /* For SGI. */
2863 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2895 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2864 #endif 2896 #endif
2865 int main() { 2897 int main() {
2866 atoi(*tzname); 2898 atoi(*tzname);
2867 ; return 0; } 2899 ; return 0; }
2868 EOF 2900 EOF
2869 if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2870 rm -rf conftest* 2902 rm -rf conftest*
2871 ac_cv_var_tzname=yes 2903 ac_cv_var_tzname=yes
2872 else 2904 else
2873 echo "configure: failed program was:" >&5 2905 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5 2906 cat conftest.$ac_ext >&5
2890 fi 2922 fi
2891 fi 2923 fi
2892 2924
2893 2925
2894 echo $ac_n "checking for working const""... $ac_c" 1>&6 2926 echo $ac_n "checking for working const""... $ac_c" 1>&6
2895 echo "configure:2896: checking for working const" >&5 2927 echo "configure:2928: checking for working const" >&5
2896 2928
2897 cat > conftest.$ac_ext <<EOF 2929 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure" 2930 #line 2931 "configure"
2899 #include "confdefs.h" 2931 #include "confdefs.h"
2900 2932
2901 int main() { 2933 int main() {
2902 2934
2903 /* Ultrix mips cc rejects this. */ 2935 /* Ultrix mips cc rejects this. */
2942 const int foo = 10; 2974 const int foo = 10;
2943 } 2975 }
2944 2976
2945 ; return 0; } 2977 ; return 0; }
2946 EOF 2978 EOF
2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2979 if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2948 rm -rf conftest* 2980 rm -rf conftest*
2949 ac_cv_c_const=yes 2981 ac_cv_c_const=yes
2950 else 2982 else
2951 echo "configure: failed program was:" >&5 2983 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5 2984 cat conftest.$ac_ext >&5
2967 2999
2968 fi 3000 fi
2969 3001
2970 3002
2971 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3003 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2972 echo "configure:2973: checking whether ${MAKE-make} sets \${MAKE}" >&5 3004 echo "configure:3005: checking whether ${MAKE-make} sets \${MAKE}" >&5
2973 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3005 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2974 3006
2975 cat > conftestmake <<\EOF 3007 cat > conftestmake <<\EOF
2976 all: 3008 all:
2977 @echo 'ac_maketemp="${MAKE}"' 3009 @echo 'ac_maketemp="${MAKE}"'
2992 SET_MAKE="MAKE=${MAKE-make}" 3024 SET_MAKE="MAKE=${MAKE-make}"
2993 fi 3025 fi
2994 3026
2995 3027
2996 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3028 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2997 echo "configure:2998: checking whether byte ordering is bigendian" >&5 3029 echo "configure:3030: checking whether byte ordering is bigendian" >&5
2998 3030
2999 ac_cv_c_bigendian=unknown 3031 ac_cv_c_bigendian=unknown
3000 # See if sys/param.h defines the BYTE_ORDER macro. 3032 # See if sys/param.h defines the BYTE_ORDER macro.
3001 cat > conftest.$ac_ext <<EOF 3033 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure" 3034 #line 3035 "configure"
3003 #include "confdefs.h" 3035 #include "confdefs.h"
3004 #include <sys/types.h> 3036 #include <sys/types.h>
3005 #include <sys/param.h> 3037 #include <sys/param.h>
3006 int main() { 3038 int main() {
3007 3039
3008 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3040 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3009 bogus endian macros 3041 bogus endian macros
3010 #endif 3042 #endif
3011 ; return 0; } 3043 ; return 0; }
3012 EOF 3044 EOF
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3014 rm -rf conftest* 3046 rm -rf conftest*
3015 # It does; now see whether it defined to BIG_ENDIAN or not. 3047 # It does; now see whether it defined to BIG_ENDIAN or not.
3016 cat > conftest.$ac_ext <<EOF 3048 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure" 3049 #line 3050 "configure"
3018 #include "confdefs.h" 3050 #include "confdefs.h"
3019 #include <sys/types.h> 3051 #include <sys/types.h>
3020 #include <sys/param.h> 3052 #include <sys/param.h>
3021 int main() { 3053 int main() {
3022 3054
3023 #if BYTE_ORDER != BIG_ENDIAN 3055 #if BYTE_ORDER != BIG_ENDIAN
3024 not big endian 3056 not big endian
3025 #endif 3057 #endif
3026 ; return 0; } 3058 ; return 0; }
3027 EOF 3059 EOF
3028 if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3060 if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029 rm -rf conftest* 3061 rm -rf conftest*
3030 ac_cv_c_bigendian=yes 3062 ac_cv_c_bigendian=yes
3031 else 3063 else
3032 echo "configure: failed program was:" >&5 3064 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5 3065 cat conftest.$ac_ext >&5
3040 cat conftest.$ac_ext >&5 3072 cat conftest.$ac_ext >&5
3041 fi 3073 fi
3042 rm -f conftest* 3074 rm -f conftest*
3043 if test $ac_cv_c_bigendian = unknown; then 3075 if test $ac_cv_c_bigendian = unknown; then
3044 cat > conftest.$ac_ext <<EOF 3076 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure" 3077 #line 3078 "configure"
3046 #include "confdefs.h" 3078 #include "confdefs.h"
3047 main () { 3079 main () {
3048 /* Are we little or big endian? From Harbison&Steele. */ 3080 /* Are we little or big endian? From Harbison&Steele. */
3049 union 3081 union
3050 { 3082 {
3053 } u; 3085 } u;
3054 u.l = 1; 3086 u.l = 1;
3055 exit (u.c[sizeof (long) - 1] == 1); 3087 exit (u.c[sizeof (long) - 1] == 1);
3056 } 3088 }
3057 EOF 3089 EOF
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3059 then 3091 then
3060 ac_cv_c_bigendian=no 3092 ac_cv_c_bigendian=no
3061 else 3093 else
3062 echo "configure: failed program was:" >&5 3094 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5 3095 cat conftest.$ac_ext >&5
3079 3111
3080 fi 3112 fi
3081 3113
3082 3114
3083 echo $ac_n "checking size of short""... $ac_c" 1>&6 3115 echo $ac_n "checking size of short""... $ac_c" 1>&6
3084 echo "configure:3085: checking size of short" >&5 3116 echo "configure:3117: checking size of short" >&5
3085 3117
3086 cat > conftest.$ac_ext <<EOF 3118 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure" 3119 #line 3120 "configure"
3088 #include "confdefs.h" 3120 #include "confdefs.h"
3089 #include <stdio.h> 3121 #include <stdio.h>
3090 main() 3122 main()
3091 { 3123 {
3092 FILE *f=fopen("conftestval", "w"); 3124 FILE *f=fopen("conftestval", "w");
3093 if (!f) exit(1); 3125 if (!f) exit(1);
3094 fprintf(f, "%d\n", sizeof(short)); 3126 fprintf(f, "%d\n", sizeof(short));
3095 exit(0); 3127 exit(0);
3096 } 3128 }
3097 EOF 3129 EOF
3098 if { (eval echo configure:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3099 then 3131 then
3100 ac_cv_sizeof_short=`cat conftestval` 3132 ac_cv_sizeof_short=`cat conftestval`
3101 else 3133 else
3102 echo "configure: failed program was:" >&5 3134 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5 3135 cat conftest.$ac_ext >&5
3114 EOF 3146 EOF
3115 } 3147 }
3116 3148
3117 3149
3118 echo $ac_n "checking size of int""... $ac_c" 1>&6 3150 echo $ac_n "checking size of int""... $ac_c" 1>&6
3119 echo "configure:3120: checking size of int" >&5 3151 echo "configure:3152: checking size of int" >&5
3120 3152
3121 cat > conftest.$ac_ext <<EOF 3153 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure" 3154 #line 3155 "configure"
3123 #include "confdefs.h" 3155 #include "confdefs.h"
3124 #include <stdio.h> 3156 #include <stdio.h>
3125 main() 3157 main()
3126 { 3158 {
3127 FILE *f=fopen("conftestval", "w"); 3159 FILE *f=fopen("conftestval", "w");
3128 if (!f) exit(1); 3160 if (!f) exit(1);
3129 fprintf(f, "%d\n", sizeof(int)); 3161 fprintf(f, "%d\n", sizeof(int));
3130 exit(0); 3162 exit(0);
3131 } 3163 }
3132 EOF 3164 EOF
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3134 then 3166 then
3135 ac_cv_sizeof_int=`cat conftestval` 3167 ac_cv_sizeof_int=`cat conftestval`
3136 else 3168 else
3137 echo "configure: failed program was:" >&5 3169 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5 3170 cat conftest.$ac_ext >&5
3149 EOF 3181 EOF
3150 } 3182 }
3151 3183
3152 3184
3153 echo $ac_n "checking size of long""... $ac_c" 1>&6 3185 echo $ac_n "checking size of long""... $ac_c" 1>&6
3154 echo "configure:3155: checking size of long" >&5 3186 echo "configure:3187: checking size of long" >&5
3155 3187
3156 cat > conftest.$ac_ext <<EOF 3188 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure" 3189 #line 3190 "configure"
3158 #include "confdefs.h" 3190 #include "confdefs.h"
3159 #include <stdio.h> 3191 #include <stdio.h>
3160 main() 3192 main()
3161 { 3193 {
3162 FILE *f=fopen("conftestval", "w"); 3194 FILE *f=fopen("conftestval", "w");
3163 if (!f) exit(1); 3195 if (!f) exit(1);
3164 fprintf(f, "%d\n", sizeof(long)); 3196 fprintf(f, "%d\n", sizeof(long));
3165 exit(0); 3197 exit(0);
3166 } 3198 }
3167 EOF 3199 EOF
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3169 then 3201 then
3170 ac_cv_sizeof_long=`cat conftestval` 3202 ac_cv_sizeof_long=`cat conftestval`
3171 else 3203 else
3172 echo "configure: failed program was:" >&5 3204 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5 3205 cat conftest.$ac_ext >&5
3185 } 3217 }
3186 3218
3187 3219
3188 3220
3189 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3221 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3190 echo "configure:3191: checking for long file names" >&5 3222 echo "configure:3223: checking for long file names" >&5
3191 3223
3192 ac_cv_sys_long_file_names=yes 3224 ac_cv_sys_long_file_names=yes
3193 # Test for long file names in all the places we know might matter: 3225 # Test for long file names in all the places we know might matter:
3194 # . the current directory, where building will happen 3226 # . the current directory, where building will happen
3195 # $prefix/lib where we will be installing things 3227 # $prefix/lib where we will be installing things
3233 3265
3234 3266
3235 3267
3236 3268
3237 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3269 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3238 echo "configure:3239: checking for sqrt in -lm" >&5 3270 echo "configure:3271: checking for sqrt in -lm" >&5
3239 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3271 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3240 3272
3241 xe_check_libs=" -lm " 3273 xe_check_libs=" -lm "
3242 cat > conftest.$ac_ext <<EOF 3274 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure" 3275 #line 3276 "configure"
3244 #include "confdefs.h" 3276 #include "confdefs.h"
3245 /* Override any gcc2 internal prototype to avoid an error. */ 3277 /* Override any gcc2 internal prototype to avoid an error. */
3246 /* We use char because int might match the return type of a gcc2 3278 /* We use char because int might match the return type of a gcc2
3247 builtin and then its argument prototype would still apply. */ 3279 builtin and then its argument prototype would still apply. */
3248 char sqrt(); 3280 char sqrt();
3249 3281
3250 int main() { 3282 int main() {
3251 sqrt() 3283 sqrt()
3252 ; return 0; } 3284 ; return 0; }
3253 EOF 3285 EOF
3254 if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3286 if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3255 rm -rf conftest* 3287 rm -rf conftest*
3256 eval "ac_cv_lib_$ac_lib_var=yes" 3288 eval "ac_cv_lib_$ac_lib_var=yes"
3257 else 3289 else
3258 echo "configure: failed program was:" >&5 3290 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5 3291 cat conftest.$ac_ext >&5
3291 EOF 3323 EOF
3292 } 3324 }
3293 3325
3294 3326
3295 echo "checking type of mail spool file locking" 1>&6 3327 echo "checking type of mail spool file locking" 1>&6
3296 echo "configure:3297: checking type of mail spool file locking" >&5 3328 echo "configure:3329: checking type of mail spool file locking" >&5
3297 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3329 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3298 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3330 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3299 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3331 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3300 Defining REAL_MAIL_USE_LOCKF 3332 Defining REAL_MAIL_USE_LOCKF
3301 EOF 3333 EOF
3310 cat >> confdefs.h <<\EOF 3342 cat >> confdefs.h <<\EOF
3311 #define REAL_MAIL_USE_FLOCK 1 3343 #define REAL_MAIL_USE_FLOCK 1
3312 EOF 3344 EOF
3313 } 3345 }
3314 3346
3347 else mail_locking="dot-locking"
3315 fi 3348 fi
3316 3349
3317 3350
3318 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3351 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3319 echo "configure:3320: checking for kstat_open in -lkstat" >&5 3352 echo "configure:3353: checking for kstat_open in -lkstat" >&5
3320 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3353 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3321 3354
3322 xe_check_libs=" -lkstat " 3355 xe_check_libs=" -lkstat "
3323 cat > conftest.$ac_ext <<EOF 3356 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure" 3357 #line 3358 "configure"
3325 #include "confdefs.h" 3358 #include "confdefs.h"
3326 /* Override any gcc2 internal prototype to avoid an error. */ 3359 /* Override any gcc2 internal prototype to avoid an error. */
3327 /* We use char because int might match the return type of a gcc2 3360 /* We use char because int might match the return type of a gcc2
3328 builtin and then its argument prototype would still apply. */ 3361 builtin and then its argument prototype would still apply. */
3329 char kstat_open(); 3362 char kstat_open();
3330 3363
3331 int main() { 3364 int main() {
3332 kstat_open() 3365 kstat_open()
3333 ; return 0; } 3366 ; return 0; }
3334 EOF 3367 EOF
3335 if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3336 rm -rf conftest* 3369 rm -rf conftest*
3337 eval "ac_cv_lib_$ac_lib_var=yes" 3370 eval "ac_cv_lib_$ac_lib_var=yes"
3338 else 3371 else
3339 echo "configure: failed program was:" >&5 3372 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5 3373 cat conftest.$ac_ext >&5
3364 3397
3365 3398
3366 3399
3367 3400
3368 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3401 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3369 echo "configure:3370: checking for kvm_read in -lkvm" >&5 3402 echo "configure:3403: checking for kvm_read in -lkvm" >&5
3370 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3403 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3371 3404
3372 xe_check_libs=" -lkvm " 3405 xe_check_libs=" -lkvm "
3373 cat > conftest.$ac_ext <<EOF 3406 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure" 3407 #line 3408 "configure"
3375 #include "confdefs.h" 3408 #include "confdefs.h"
3376 /* Override any gcc2 internal prototype to avoid an error. */ 3409 /* Override any gcc2 internal prototype to avoid an error. */
3377 /* We use char because int might match the return type of a gcc2 3410 /* We use char because int might match the return type of a gcc2
3378 builtin and then its argument prototype would still apply. */ 3411 builtin and then its argument prototype would still apply. */
3379 char kvm_read(); 3412 char kvm_read();
3380 3413
3381 int main() { 3414 int main() {
3382 kvm_read() 3415 kvm_read()
3383 ; return 0; } 3416 ; return 0; }
3384 EOF 3417 EOF
3385 if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3418 if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3386 rm -rf conftest* 3419 rm -rf conftest*
3387 eval "ac_cv_lib_$ac_lib_var=yes" 3420 eval "ac_cv_lib_$ac_lib_var=yes"
3388 else 3421 else
3389 echo "configure: failed program was:" >&5 3422 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5 3423 cat conftest.$ac_ext >&5
3414 3447
3415 3448
3416 3449
3417 3450
3418 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3451 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3419 echo "configure:3420: checking for cma_open in -lpthreads" >&5 3452 echo "configure:3453: checking for cma_open in -lpthreads" >&5
3420 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3453 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3421 3454
3422 xe_check_libs=" -lpthreads " 3455 xe_check_libs=" -lpthreads "
3423 cat > conftest.$ac_ext <<EOF 3456 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure" 3457 #line 3458 "configure"
3425 #include "confdefs.h" 3458 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */ 3459 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2 3460 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */ 3461 builtin and then its argument prototype would still apply. */
3429 char cma_open(); 3462 char cma_open();
3430 3463
3431 int main() { 3464 int main() {
3432 cma_open() 3465 cma_open()
3433 ; return 0; } 3466 ; return 0; }
3434 EOF 3467 EOF
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3436 rm -rf conftest* 3469 rm -rf conftest*
3437 eval "ac_cv_lib_$ac_lib_var=yes" 3470 eval "ac_cv_lib_$ac_lib_var=yes"
3438 else 3471 else
3439 echo "configure: failed program was:" >&5 3472 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5 3473 cat conftest.$ac_ext >&5
3466 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 3499 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3467 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 3500 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3468 fi 3501 fi
3469 3502
3470 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 3503 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3471 echo "configure:3472: checking whether the -xildoff compiler flag is required" >&5 3504 echo "configure:3505: checking whether the -xildoff compiler flag is required" >&5
3472 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 3505 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3473 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 3506 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3474 then echo "$ac_t""no" 1>&6; 3507 then echo "$ac_t""no" 1>&6;
3475 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 3508 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
3476 fi 3509 fi
3477 else echo "$ac_t""no" 1>&6 3510 else echo "$ac_t""no" 1>&6
3478 fi 3511 fi
3479 3512
3480 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3513 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
3481 echo "configure:3482: checking for dynodump" >&5 3514 echo "configure:3515: checking for dynodump" >&5
3482 case "$opsys" in sol2* ) 3515 case "$opsys" in sol2* )
3483 echo "$ac_t""yes" 1>&6 3516 echo "$ac_t""yes" 1>&6
3484 { test "$extra_verbose" = "yes" && cat << \EOF 3517 { test "$extra_verbose" = "yes" && cat << \EOF
3485 Defining DYNODUMP 3518 Defining DYNODUMP
3486 EOF 3519 EOF
3499 *) echo "$ac_t""no" 1>&6 ;; 3532 *) echo "$ac_t""no" 1>&6 ;;
3500 esac 3533 esac
3501 3534
3502 case "$opsys" in sol2-[6-9]* ) 3535 case "$opsys" in sol2-[6-9]* )
3503 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 3536 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3504 echo "configure:3505: checking for \"-z ignore\" linker flag" >&5 3537 echo "configure:3538: checking for \"-z ignore\" linker flag" >&5
3505 case "`ld -h 2>&1`" in 3538 case "`ld -h 2>&1`" in
3506 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 3539 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3507 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 3540 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3508 *) echo "$ac_t""no" 1>&6 ;; 3541 *) echo "$ac_t""no" 1>&6 ;;
3509 esac ;; 3542 esac ;;
3510 esac 3543 esac
3511 3544
3512 3545
3513 echo "checking "for specified window system"" 1>&6 3546 echo "checking "for specified window system"" 1>&6
3514 echo "configure:3515: checking "for specified window system"" >&5 3547 echo "configure:3548: checking "for specified window system"" >&5
3515 3548
3516 if test "$x_includes $x_libraries" = "NONE NONE"; then 3549 if test "$x_includes $x_libraries" = "NONE NONE"; then
3517 if test -n "$OPENWINHOME" \ 3550 if test -n "$OPENWINHOME" \
3518 -a "$OPENWINHOME" != "/usr/openwin" \ 3551 -a "$OPENWINHOME" != "/usr/openwin" \
3519 -a -d "$OPENWINHOME"; then 3552 -a -d "$OPENWINHOME"; then
3530 # If we find X, set shell vars x_includes and x_libraries to the 3563 # If we find X, set shell vars x_includes and x_libraries to the
3531 # paths, otherwise set no_x=yes. 3564 # paths, otherwise set no_x=yes.
3532 # Uses ac_ vars as temps to allow command line to override cache and checks. 3565 # Uses ac_ vars as temps to allow command line to override cache and checks.
3533 # --without-x overrides everything else, but does not touch the cache. 3566 # --without-x overrides everything else, but does not touch the cache.
3534 echo $ac_n "checking for X""... $ac_c" 1>&6 3567 echo $ac_n "checking for X""... $ac_c" 1>&6
3535 echo "configure:3536: checking for X" >&5 3568 echo "configure:3569: checking for X" >&5
3536 3569
3537 # Check whether --with-x or --without-x was given. 3570 # Check whether --with-x or --without-x was given.
3538 if test "${with_x+set}" = set; then 3571 if test "${with_x+set}" = set; then
3539 withval="$with_x" 3572 withval="$with_x"
3540 : 3573 :
3590 # Guess where to find include files, by looking for this one X11 .h file. 3623 # Guess where to find include files, by looking for this one X11 .h file.
3591 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3624 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3592 3625
3593 # First, try using that file with no special directory specified. 3626 # First, try using that file with no special directory specified.
3594 cat > conftest.$ac_ext <<EOF 3627 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure" 3628 #line 3629 "configure"
3596 #include "confdefs.h" 3629 #include "confdefs.h"
3597 #include <$x_direct_test_include> 3630 #include <$x_direct_test_include>
3598 EOF 3631 EOF
3599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3600 { (eval echo configure:3601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3633 { (eval echo configure:3634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3601 ac_err=`grep -v '^ *+' conftest.out` 3634 ac_err=`grep -v '^ *+' conftest.out`
3602 if test -z "$ac_err"; then 3635 if test -z "$ac_err"; then
3603 rm -rf conftest* 3636 rm -rf conftest*
3604 # We can compile using X headers with no special include directory. 3637 # We can compile using X headers with no special include directory.
3605 ac_x_includes= 3638 ac_x_includes=
3664 # See if we find them without any special options. 3697 # See if we find them without any special options.
3665 # Don't add to $LIBS permanently. 3698 # Don't add to $LIBS permanently.
3666 ac_save_LIBS="$LIBS" 3699 ac_save_LIBS="$LIBS"
3667 LIBS="-l$x_direct_test_library $LIBS" 3700 LIBS="-l$x_direct_test_library $LIBS"
3668 cat > conftest.$ac_ext <<EOF 3701 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure" 3702 #line 3703 "configure"
3670 #include "confdefs.h" 3703 #include "confdefs.h"
3671 3704
3672 int main() { 3705 int main() {
3673 ${x_direct_test_function}() 3706 ${x_direct_test_function}()
3674 ; return 0; } 3707 ; return 0; }
3675 EOF 3708 EOF
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3677 rm -rf conftest* 3710 rm -rf conftest*
3678 LIBS="$ac_save_LIBS" 3711 LIBS="$ac_save_LIBS"
3679 # We can link X programs with no special library path. 3712 # We can link X programs with no special library path.
3680 ac_x_libraries= 3713 ac_x_libraries=
3681 else 3714 else
3780 # For Solaris; some versions of Sun CC require a space after -R and 3813 # For Solaris; some versions of Sun CC require a space after -R and
3781 # others require no space. Words are not sufficient . . . . 3814 # others require no space. Words are not sufficient . . . .
3782 case "`(uname -sr) 2>/dev/null`" in 3815 case "`(uname -sr) 2>/dev/null`" in
3783 "SunOS 5"*) 3816 "SunOS 5"*)
3784 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 3817 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3785 echo "configure:3786: checking whether -R must be followed by a space" >&5 3818 echo "configure:3819: checking whether -R must be followed by a space" >&5
3786 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 3819 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3787 cat > conftest.$ac_ext <<EOF 3820 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure" 3821 #line 3822 "configure"
3789 #include "confdefs.h" 3822 #include "confdefs.h"
3790 3823
3791 int main() { 3824 int main() {
3792 3825
3793 ; return 0; } 3826 ; return 0; }
3794 EOF 3827 EOF
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3796 rm -rf conftest* 3829 rm -rf conftest*
3797 ac_R_nospace=yes 3830 ac_R_nospace=yes
3798 else 3831 else
3799 echo "configure: failed program was:" >&5 3832 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5 3833 cat conftest.$ac_ext >&5
3806 echo "$ac_t""no" 1>&6 3839 echo "$ac_t""no" 1>&6
3807 X_LIBS="$X_LIBS -R$x_libraries" 3840 X_LIBS="$X_LIBS -R$x_libraries"
3808 else 3841 else
3809 LIBS="$ac_xsave_LIBS -R $x_libraries" 3842 LIBS="$ac_xsave_LIBS -R $x_libraries"
3810 cat > conftest.$ac_ext <<EOF 3843 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure" 3844 #line 3845 "configure"
3812 #include "confdefs.h" 3845 #include "confdefs.h"
3813 3846
3814 int main() { 3847 int main() {
3815 3848
3816 ; return 0; } 3849 ; return 0; }
3817 EOF 3850 EOF
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3819 rm -rf conftest* 3852 rm -rf conftest*
3820 ac_R_space=yes 3853 ac_R_space=yes
3821 else 3854 else
3822 echo "configure: failed program was:" >&5 3855 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5 3856 cat conftest.$ac_ext >&5
3849 if test "$with_dnet" = "no" ; then 3882 if test "$with_dnet" = "no" ; then
3850 ac_cv_lib_dnet_dnet_ntoa=no 3883 ac_cv_lib_dnet_dnet_ntoa=no
3851 else 3884 else
3852 3885
3853 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3886 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3854 echo "configure:3855: checking for dnet_ntoa in -ldnet" >&5 3887 echo "configure:3888: checking for dnet_ntoa in -ldnet" >&5
3855 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3888 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3856 3889
3857 xe_check_libs=" -ldnet " 3890 xe_check_libs=" -ldnet "
3858 cat > conftest.$ac_ext <<EOF 3891 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure" 3892 #line 3893 "configure"
3860 #include "confdefs.h" 3893 #include "confdefs.h"
3861 /* Override any gcc2 internal prototype to avoid an error. */ 3894 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2 3895 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */ 3896 builtin and then its argument prototype would still apply. */
3864 char dnet_ntoa(); 3897 char dnet_ntoa();
3865 3898
3866 int main() { 3899 int main() {
3867 dnet_ntoa() 3900 dnet_ntoa()
3868 ; return 0; } 3901 ; return 0; }
3869 EOF 3902 EOF
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3871 rm -rf conftest* 3904 rm -rf conftest*
3872 eval "ac_cv_lib_$ac_lib_var=yes" 3905 eval "ac_cv_lib_$ac_lib_var=yes"
3873 else 3906 else
3874 echo "configure: failed program was:" >&5 3907 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5 3908 cat conftest.$ac_ext >&5
3889 fi 3922 fi
3890 3923
3891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3924 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3892 3925
3893 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 3926 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3894 echo "configure:3895: checking for dnet_ntoa in -ldnet_stub" >&5 3927 echo "configure:3928: checking for dnet_ntoa in -ldnet_stub" >&5
3895 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3928 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3896 3929
3897 xe_check_libs=" -ldnet_stub " 3930 xe_check_libs=" -ldnet_stub "
3898 cat > conftest.$ac_ext <<EOF 3931 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure" 3932 #line 3933 "configure"
3900 #include "confdefs.h" 3933 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */ 3934 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2 3935 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */ 3936 builtin and then its argument prototype would still apply. */
3904 char dnet_ntoa(); 3937 char dnet_ntoa();
3905 3938
3906 int main() { 3939 int main() {
3907 dnet_ntoa() 3940 dnet_ntoa()
3908 ; return 0; } 3941 ; return 0; }
3909 EOF 3942 EOF
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3911 rm -rf conftest* 3944 rm -rf conftest*
3912 eval "ac_cv_lib_$ac_lib_var=yes" 3945 eval "ac_cv_lib_$ac_lib_var=yes"
3913 else 3946 else
3914 echo "configure: failed program was:" >&5 3947 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5 3948 cat conftest.$ac_ext >&5
3934 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 3967 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3935 # needs -lnsl. 3968 # needs -lnsl.
3936 # The nsl library prevents programs from opening the X display 3969 # The nsl library prevents programs from opening the X display
3937 # on Irix 5.2, according to dickey@clark.net. 3970 # on Irix 5.2, according to dickey@clark.net.
3938 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 3971 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3939 echo "configure:3940: checking for gethostbyname" >&5 3972 echo "configure:3973: checking for gethostbyname" >&5
3940 3973
3941 cat > conftest.$ac_ext <<EOF 3974 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure" 3975 #line 3976 "configure"
3943 #include "confdefs.h" 3976 #include "confdefs.h"
3944 /* System header to define __stub macros and hopefully few prototypes, 3977 /* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char gethostbyname(); below. */ 3978 which can conflict with char gethostbyname(); below. */
3946 #include <assert.h> 3979 #include <assert.h>
3947 /* Override any gcc2 internal prototype to avoid an error. */ 3980 /* Override any gcc2 internal prototype to avoid an error. */
3960 gethostbyname(); 3993 gethostbyname();
3961 #endif 3994 #endif
3962 3995
3963 ; return 0; } 3996 ; return 0; }
3964 EOF 3997 EOF
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3966 rm -rf conftest* 3999 rm -rf conftest*
3967 eval "ac_cv_func_gethostbyname=yes" 4000 eval "ac_cv_func_gethostbyname=yes"
3968 else 4001 else
3969 echo "configure: failed program was:" >&5 4002 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5 4003 cat conftest.$ac_ext >&5
3981 fi 4014 fi
3982 4015
3983 if test $ac_cv_func_gethostbyname = no; then 4016 if test $ac_cv_func_gethostbyname = no; then
3984 4017
3985 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4018 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3986 echo "configure:3987: checking for gethostbyname in -lnsl" >&5 4019 echo "configure:4020: checking for gethostbyname in -lnsl" >&5
3987 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4020 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3988 4021
3989 xe_check_libs=" -lnsl " 4022 xe_check_libs=" -lnsl "
3990 cat > conftest.$ac_ext <<EOF 4023 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure" 4024 #line 4025 "configure"
3992 #include "confdefs.h" 4025 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */ 4026 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2 4027 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */ 4028 builtin and then its argument prototype would still apply. */
3996 char gethostbyname(); 4029 char gethostbyname();
3997 4030
3998 int main() { 4031 int main() {
3999 gethostbyname() 4032 gethostbyname()
4000 ; return 0; } 4033 ; return 0; }
4001 EOF 4034 EOF
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4003 rm -rf conftest* 4036 rm -rf conftest*
4004 eval "ac_cv_lib_$ac_lib_var=yes" 4037 eval "ac_cv_lib_$ac_lib_var=yes"
4005 else 4038 else
4006 echo "configure: failed program was:" >&5 4039 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5 4040 cat conftest.$ac_ext >&5
4027 # on later versions), says simon@lia.di.epfl.ch: it contains 4060 # on later versions), says simon@lia.di.epfl.ch: it contains
4028 # gethostby* variants that don't use the nameserver (or something). 4061 # gethostby* variants that don't use the nameserver (or something).
4029 # -lsocket must be given before -lnsl if both are needed. 4062 # -lsocket must be given before -lnsl if both are needed.
4030 # We assume that if connect needs -lnsl, so does gethostbyname. 4063 # We assume that if connect needs -lnsl, so does gethostbyname.
4031 echo $ac_n "checking for connect""... $ac_c" 1>&6 4064 echo $ac_n "checking for connect""... $ac_c" 1>&6
4032 echo "configure:4033: checking for connect" >&5 4065 echo "configure:4066: checking for connect" >&5
4033 4066
4034 cat > conftest.$ac_ext <<EOF 4067 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure" 4068 #line 4069 "configure"
4036 #include "confdefs.h" 4069 #include "confdefs.h"
4037 /* System header to define __stub macros and hopefully few prototypes, 4070 /* System header to define __stub macros and hopefully few prototypes,
4038 which can conflict with char connect(); below. */ 4071 which can conflict with char connect(); below. */
4039 #include <assert.h> 4072 #include <assert.h>
4040 /* Override any gcc2 internal prototype to avoid an error. */ 4073 /* Override any gcc2 internal prototype to avoid an error. */
4053 connect(); 4086 connect();
4054 #endif 4087 #endif
4055 4088
4056 ; return 0; } 4089 ; return 0; }
4057 EOF 4090 EOF
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4059 rm -rf conftest* 4092 rm -rf conftest*
4060 eval "ac_cv_func_connect=yes" 4093 eval "ac_cv_func_connect=yes"
4061 else 4094 else
4062 echo "configure: failed program was:" >&5 4095 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5 4096 cat conftest.$ac_ext >&5
4076 if test $ac_cv_func_connect = no; then 4109 if test $ac_cv_func_connect = no; then
4077 4110
4078 xe_msg_checking="for connect in -lsocket" 4111 xe_msg_checking="for connect in -lsocket"
4079 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4112 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4080 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4113 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4081 echo "configure:4082: checking "$xe_msg_checking"" >&5 4114 echo "configure:4115: checking "$xe_msg_checking"" >&5
4082 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4115 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4083 4116
4084 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4117 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4085 cat > conftest.$ac_ext <<EOF 4118 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure" 4119 #line 4120 "configure"
4087 #include "confdefs.h" 4120 #include "confdefs.h"
4088 /* Override any gcc2 internal prototype to avoid an error. */ 4121 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2 4122 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */ 4123 builtin and then its argument prototype would still apply. */
4091 char connect(); 4124 char connect();
4092 4125
4093 int main() { 4126 int main() {
4094 connect() 4127 connect()
4095 ; return 0; } 4128 ; return 0; }
4096 EOF 4129 EOF
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4098 rm -rf conftest* 4131 rm -rf conftest*
4099 eval "ac_cv_lib_$ac_lib_var=yes" 4132 eval "ac_cv_lib_$ac_lib_var=yes"
4100 else 4133 else
4101 echo "configure: failed program was:" >&5 4134 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5 4135 cat conftest.$ac_ext >&5
4116 4149
4117 fi 4150 fi
4118 4151
4119 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4152 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4120 echo $ac_n "checking for remove""... $ac_c" 1>&6 4153 echo $ac_n "checking for remove""... $ac_c" 1>&6
4121 echo "configure:4122: checking for remove" >&5 4154 echo "configure:4155: checking for remove" >&5
4122 4155
4123 cat > conftest.$ac_ext <<EOF 4156 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure" 4157 #line 4158 "configure"
4125 #include "confdefs.h" 4158 #include "confdefs.h"
4126 /* System header to define __stub macros and hopefully few prototypes, 4159 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char remove(); below. */ 4160 which can conflict with char remove(); below. */
4128 #include <assert.h> 4161 #include <assert.h>
4129 /* Override any gcc2 internal prototype to avoid an error. */ 4162 /* Override any gcc2 internal prototype to avoid an error. */
4142 remove(); 4175 remove();
4143 #endif 4176 #endif
4144 4177
4145 ; return 0; } 4178 ; return 0; }
4146 EOF 4179 EOF
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4148 rm -rf conftest* 4181 rm -rf conftest*
4149 eval "ac_cv_func_remove=yes" 4182 eval "ac_cv_func_remove=yes"
4150 else 4183 else
4151 echo "configure: failed program was:" >&5 4184 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5 4185 cat conftest.$ac_ext >&5
4163 fi 4196 fi
4164 4197
4165 if test $ac_cv_func_remove = no; then 4198 if test $ac_cv_func_remove = no; then
4166 4199
4167 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4168 echo "configure:4169: checking for remove in -lposix" >&5 4201 echo "configure:4202: checking for remove in -lposix" >&5
4169 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4202 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4170 4203
4171 xe_check_libs=" -lposix " 4204 xe_check_libs=" -lposix "
4172 cat > conftest.$ac_ext <<EOF 4205 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure" 4206 #line 4207 "configure"
4174 #include "confdefs.h" 4207 #include "confdefs.h"
4175 /* Override any gcc2 internal prototype to avoid an error. */ 4208 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2 4209 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */ 4210 builtin and then its argument prototype would still apply. */
4178 char remove(); 4211 char remove();
4179 4212
4180 int main() { 4213 int main() {
4181 remove() 4214 remove()
4182 ; return 0; } 4215 ; return 0; }
4183 EOF 4216 EOF
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4185 rm -rf conftest* 4218 rm -rf conftest*
4186 eval "ac_cv_lib_$ac_lib_var=yes" 4219 eval "ac_cv_lib_$ac_lib_var=yes"
4187 else 4220 else
4188 echo "configure: failed program was:" >&5 4221 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 4222 cat conftest.$ac_ext >&5
4203 4236
4204 fi 4237 fi
4205 4238
4206 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4239 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4207 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4240 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4208 echo "configure:4209: checking for shmat" >&5 4241 echo "configure:4242: checking for shmat" >&5
4209 4242
4210 cat > conftest.$ac_ext <<EOF 4243 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure" 4244 #line 4245 "configure"
4212 #include "confdefs.h" 4245 #include "confdefs.h"
4213 /* System header to define __stub macros and hopefully few prototypes, 4246 /* System header to define __stub macros and hopefully few prototypes,
4214 which can conflict with char shmat(); below. */ 4247 which can conflict with char shmat(); below. */
4215 #include <assert.h> 4248 #include <assert.h>
4216 /* Override any gcc2 internal prototype to avoid an error. */ 4249 /* Override any gcc2 internal prototype to avoid an error. */
4229 shmat(); 4262 shmat();
4230 #endif 4263 #endif
4231 4264
4232 ; return 0; } 4265 ; return 0; }
4233 EOF 4266 EOF
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4235 rm -rf conftest* 4268 rm -rf conftest*
4236 eval "ac_cv_func_shmat=yes" 4269 eval "ac_cv_func_shmat=yes"
4237 else 4270 else
4238 echo "configure: failed program was:" >&5 4271 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5 4272 cat conftest.$ac_ext >&5
4250 fi 4283 fi
4251 4284
4252 if test $ac_cv_func_shmat = no; then 4285 if test $ac_cv_func_shmat = no; then
4253 4286
4254 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4287 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4255 echo "configure:4256: checking for shmat in -lipc" >&5 4288 echo "configure:4289: checking for shmat in -lipc" >&5
4256 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4289 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4257 4290
4258 xe_check_libs=" -lipc " 4291 xe_check_libs=" -lipc "
4259 cat > conftest.$ac_ext <<EOF 4292 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure" 4293 #line 4294 "configure"
4261 #include "confdefs.h" 4294 #include "confdefs.h"
4262 /* Override any gcc2 internal prototype to avoid an error. */ 4295 /* Override any gcc2 internal prototype to avoid an error. */
4263 /* We use char because int might match the return type of a gcc2 4296 /* We use char because int might match the return type of a gcc2
4264 builtin and then its argument prototype would still apply. */ 4297 builtin and then its argument prototype would still apply. */
4265 char shmat(); 4298 char shmat();
4266 4299
4267 int main() { 4300 int main() {
4268 shmat() 4301 shmat()
4269 ; return 0; } 4302 ; return 0; }
4270 EOF 4303 EOF
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4272 rm -rf conftest* 4305 rm -rf conftest*
4273 eval "ac_cv_lib_$ac_lib_var=yes" 4306 eval "ac_cv_lib_$ac_lib_var=yes"
4274 else 4307 else
4275 echo "configure: failed program was:" >&5 4308 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5 4309 cat conftest.$ac_ext >&5
4300 # These have to be linked with before -lX11, unlike the other 4333 # These have to be linked with before -lX11, unlike the other
4301 # libraries we check for below, so use a different variable. 4334 # libraries we check for below, so use a different variable.
4302 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4335 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4303 4336
4304 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4337 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4305 echo "configure:4306: checking for IceConnectionNumber in -lICE" >&5 4338 echo "configure:4339: checking for IceConnectionNumber in -lICE" >&5
4306 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4339 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4307 4340
4308 xe_check_libs=" -lICE " 4341 xe_check_libs=" -lICE "
4309 cat > conftest.$ac_ext <<EOF 4342 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure" 4343 #line 4344 "configure"
4311 #include "confdefs.h" 4344 #include "confdefs.h"
4312 /* Override any gcc2 internal prototype to avoid an error. */ 4345 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2 4346 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */ 4347 builtin and then its argument prototype would still apply. */
4315 char IceConnectionNumber(); 4348 char IceConnectionNumber();
4316 4349
4317 int main() { 4350 int main() {
4318 IceConnectionNumber() 4351 IceConnectionNumber()
4319 ; return 0; } 4352 ; return 0; }
4320 EOF 4353 EOF
4321 if { (eval echo configure:4322: \"$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
4322 rm -rf conftest* 4355 rm -rf conftest*
4323 eval "ac_cv_lib_$ac_lib_var=yes" 4356 eval "ac_cv_lib_$ac_lib_var=yes"
4324 else 4357 else
4325 echo "configure: failed program was:" >&5 4358 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5 4359 cat conftest.$ac_ext >&5
4455 echo 4488 echo
4456 fi 4489 fi
4457 4490
4458 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 4491 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4459 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 4492 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4460 echo "configure:4461: checking for X11/Intrinsic.h" >&5 4493 echo "configure:4494: checking for X11/Intrinsic.h" >&5
4461 4494
4462 cat > conftest.$ac_ext <<EOF 4495 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure" 4496 #line 4497 "configure"
4464 #include "confdefs.h" 4497 #include "confdefs.h"
4465 #include <X11/Intrinsic.h> 4498 #include <X11/Intrinsic.h>
4466 EOF 4499 EOF
4467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4468 { (eval echo configure:4469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4501 { (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4469 ac_err=`grep -v '^ *+' conftest.out` 4502 ac_err=`grep -v '^ *+' conftest.out`
4470 if test -z "$ac_err"; then 4503 if test -z "$ac_err"; then
4471 rm -rf conftest* 4504 rm -rf conftest*
4472 eval "ac_cv_header_$ac_safe=yes" 4505 eval "ac_cv_header_$ac_safe=yes"
4473 else 4506 else
4487 fi 4520 fi
4488 4521
4489 4522
4490 4523
4491 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 4524 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4492 echo "configure:4493: checking for XOpenDisplay in -lX11" >&5 4525 echo "configure:4526: checking for XOpenDisplay in -lX11" >&5
4493 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 4526 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4494 4527
4495 xe_check_libs=" -lX11 " 4528 xe_check_libs=" -lX11 "
4496 cat > conftest.$ac_ext <<EOF 4529 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure" 4530 #line 4531 "configure"
4498 #include "confdefs.h" 4531 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */ 4532 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2 4533 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */ 4534 builtin and then its argument prototype would still apply. */
4502 char XOpenDisplay(); 4535 char XOpenDisplay();
4503 4536
4504 int main() { 4537 int main() {
4505 XOpenDisplay() 4538 XOpenDisplay()
4506 ; return 0; } 4539 ; return 0; }
4507 EOF 4540 EOF
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4541 if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4509 rm -rf conftest* 4542 rm -rf conftest*
4510 eval "ac_cv_lib_$ac_lib_var=yes" 4543 eval "ac_cv_lib_$ac_lib_var=yes"
4511 else 4544 else
4512 echo "configure: failed program was:" >&5 4545 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5 4546 cat conftest.$ac_ext >&5
4528 if test "$have_lib_x11" != "yes"; then 4561 if test "$have_lib_x11" != "yes"; then
4529 4562
4530 xe_msg_checking="for XGetFontProperty in -lX11" 4563 xe_msg_checking="for XGetFontProperty in -lX11"
4531 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 4564 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
4532 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4565 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4533 echo "configure:4534: checking "$xe_msg_checking"" >&5 4566 echo "configure:4567: checking "$xe_msg_checking"" >&5
4534 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 4567 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
4535 4568
4536 xe_check_libs=" -lX11 -b i486-linuxaout" 4569 xe_check_libs=" -lX11 -b i486-linuxaout"
4537 cat > conftest.$ac_ext <<EOF 4570 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure" 4571 #line 4572 "configure"
4539 #include "confdefs.h" 4572 #include "confdefs.h"
4540 /* Override any gcc2 internal prototype to avoid an error. */ 4573 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2 4574 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */ 4575 builtin and then its argument prototype would still apply. */
4543 char XGetFontProperty(); 4576 char XGetFontProperty();
4544 4577
4545 int main() { 4578 int main() {
4546 XGetFontProperty() 4579 XGetFontProperty()
4547 ; return 0; } 4580 ; return 0; }
4548 EOF 4581 EOF
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4550 rm -rf conftest* 4583 rm -rf conftest*
4551 eval "ac_cv_lib_$ac_lib_var=yes" 4584 eval "ac_cv_lib_$ac_lib_var=yes"
4552 else 4585 else
4553 echo "configure: failed program was:" >&5 4586 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5 4587 cat conftest.$ac_ext >&5
4571 libs_x="-lX11" 4604 libs_x="-lX11"
4572 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 4605 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
4573 4606
4574 4607
4575 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 4608 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4576 echo "configure:4577: checking for XShapeSelectInput in -lXext" >&5 4609 echo "configure:4610: checking for XShapeSelectInput in -lXext" >&5
4577 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 4610 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4578 4611
4579 xe_check_libs=" -lXext " 4612 xe_check_libs=" -lXext "
4580 cat > conftest.$ac_ext <<EOF 4613 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure" 4614 #line 4615 "configure"
4582 #include "confdefs.h" 4615 #include "confdefs.h"
4583 /* Override any gcc2 internal prototype to avoid an error. */ 4616 /* Override any gcc2 internal prototype to avoid an error. */
4584 /* We use char because int might match the return type of a gcc2 4617 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */ 4618 builtin and then its argument prototype would still apply. */
4586 char XShapeSelectInput(); 4619 char XShapeSelectInput();
4587 4620
4588 int main() { 4621 int main() {
4589 XShapeSelectInput() 4622 XShapeSelectInput()
4590 ; return 0; } 4623 ; return 0; }
4591 EOF 4624 EOF
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4593 rm -rf conftest* 4626 rm -rf conftest*
4594 eval "ac_cv_lib_$ac_lib_var=yes" 4627 eval "ac_cv_lib_$ac_lib_var=yes"
4595 else 4628 else
4596 echo "configure: failed program was:" >&5 4629 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5 4630 cat conftest.$ac_ext >&5
4608 echo "$ac_t""no" 1>&6 4641 echo "$ac_t""no" 1>&6
4609 fi 4642 fi
4610 4643
4611 4644
4612 4645
4613 case "$canonical" in *-sunos4.* ) # Bug workaround 4646 case "$opsys" in sunos4* ) libs_x="-u _XtToolkitInitialize -lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-u _XtToolkitInitialize -lXt\" to \$libs_x"; fi ;;
4614 ld_switch_x_site="$ld_switch_x_site -u _XtToolkitInitialize" ;; 4647 * )
4615 esac
4616
4617 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 4648 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
4618 echo "configure:4619: checking for XtOpenDisplay in -lXt" >&5 4649 echo "configure:4650: checking for XtOpenDisplay in -lXt" >&5
4619 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 4650 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
4620 4651
4621 xe_check_libs=" -lXt " 4652 xe_check_libs=" -lXt "
4622 cat > conftest.$ac_ext <<EOF 4653 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure" 4654 #line 4655 "configure"
4624 #include "confdefs.h" 4655 #include "confdefs.h"
4625 /* Override any gcc2 internal prototype to avoid an error. */ 4656 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2 4657 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */ 4658 builtin and then its argument prototype would still apply. */
4628 char XtOpenDisplay(); 4659 char XtOpenDisplay();
4629 4660
4630 int main() { 4661 int main() {
4631 XtOpenDisplay() 4662 XtOpenDisplay()
4632 ; return 0; } 4663 ; return 0; }
4633 EOF 4664 EOF
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4635 rm -rf conftest* 4666 rm -rf conftest*
4636 eval "ac_cv_lib_$ac_lib_var=yes" 4667 eval "ac_cv_lib_$ac_lib_var=yes"
4637 else 4668 else
4638 echo "configure: failed program was:" >&5 4669 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5 4670 cat conftest.$ac_ext >&5
4649 else 4680 else
4650 echo "$ac_t""no" 1>&6 4681 echo "$ac_t""no" 1>&6
4651 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } 4682 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
4652 fi 4683 fi
4653 4684
4654 4685 ;;
4686 esac
4655 4687
4656 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 4688 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
4657 echo "configure:4658: checking the version of X11 being used" >&5 4689 echo "configure:4690: checking the version of X11 being used" >&5
4658 cat > conftest.$ac_ext <<EOF 4690 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure" 4691 #line 4692 "configure"
4660 #include "confdefs.h" 4692 #include "confdefs.h"
4661 #include <X11/Intrinsic.h> 4693 #include <X11/Intrinsic.h>
4662 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 4694 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
4663 EOF 4695 EOF
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4665 then 4697 then
4666 ./conftest foobar; x11_release=$? 4698 ./conftest foobar; x11_release=$?
4667 else 4699 else
4668 echo "configure: failed program was:" >&5 4700 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5 4701 cat conftest.$ac_ext >&5
4683 4715
4684 for ac_hdr in X11/Xlocale.h 4716 for ac_hdr in X11/Xlocale.h
4685 do 4717 do
4686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_hdr" >&5 4720 echo "configure:4721: checking for $ac_hdr" >&5
4689 4721
4690 cat > conftest.$ac_ext <<EOF 4722 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure" 4723 #line 4724 "configure"
4692 #include "confdefs.h" 4724 #include "confdefs.h"
4693 #include <$ac_hdr> 4725 #include <$ac_hdr>
4694 EOF 4726 EOF
4695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4696 { (eval echo configure:4697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4728 { (eval echo configure:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4697 ac_err=`grep -v '^ *+' conftest.out` 4729 ac_err=`grep -v '^ *+' conftest.out`
4698 if test -z "$ac_err"; then 4730 if test -z "$ac_err"; then
4699 rm -rf conftest* 4731 rm -rf conftest*
4700 eval "ac_cv_header_$ac_safe=yes" 4732 eval "ac_cv_header_$ac_safe=yes"
4701 else 4733 else
4722 fi 4754 fi
4723 done 4755 done
4724 4756
4725 4757
4726 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 4758 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
4727 echo "configure:4728: checking for XFree86" >&5 4759 echo "configure:4760: checking for XFree86" >&5
4728 if test -d "/usr/X386/include" -o \ 4760 if test -d "/usr/X386/include" -o \
4729 -f "/etc/XF86Config" -o \ 4761 -f "/etc/XF86Config" -o \
4730 -f "/etc/X11/XF86Config" -o \ 4762 -f "/etc/X11/XF86Config" -o \
4731 -f "/usr/X11R6/lib/X11/XF86Config"; then 4763 -f "/usr/X11R6/lib/X11/XF86Config"; then
4732 echo "$ac_t""yes" 1>&6 4764 echo "$ac_t""yes" 1>&6
4740 4772
4741 else 4773 else
4742 echo "$ac_t""no" 1>&6 4774 echo "$ac_t""no" 1>&6
4743 fi 4775 fi
4744 4776
4745 case "$canonical" in *-sunos4.* ) # Bug workaround 4777 case "$opsys" in sunos4* ) libs_x="-u _get_applicationShellWidgetClass -lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-u _get_applicationShellWidgetClass -lXmu\" to \$libs_x"; fi ;;
4746 ld_switch_x_site="$ld_switch_x_site -u _get_applicationShellWidgetClass" ;; 4778 * ) if test -z "$with_xmu"; then
4747 esac 4779
4748 if test -z "$with_xmu"; then
4749
4750 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4780 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4751 echo "configure:4752: checking for XmuConvertStandardSelection in -lXmu" >&5 4781 echo "configure:4782: checking for XmuConvertStandardSelection in -lXmu" >&5
4752 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4782 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4753 4783
4754 xe_check_libs=" -lXmu " 4784 xe_check_libs=" -lXmu "
4755 cat > conftest.$ac_ext <<EOF 4785 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure" 4786 #line 4787 "configure"
4757 #include "confdefs.h" 4787 #include "confdefs.h"
4758 /* Override any gcc2 internal prototype to avoid an error. */ 4788 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2 4789 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */ 4790 builtin and then its argument prototype would still apply. */
4761 char XmuConvertStandardSelection(); 4791 char XmuConvertStandardSelection();
4762 4792
4763 int main() { 4793 int main() {
4764 XmuConvertStandardSelection() 4794 XmuConvertStandardSelection()
4765 ; return 0; } 4795 ; return 0; }
4766 EOF 4796 EOF
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4768 rm -rf conftest* 4798 rm -rf conftest*
4769 eval "ac_cv_lib_$ac_lib_var=yes" 4799 eval "ac_cv_lib_$ac_lib_var=yes"
4770 else 4800 else
4771 echo "configure: failed program was:" >&5 4801 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5 4802 cat conftest.$ac_ext >&5
4783 echo "$ac_t""no" 1>&6 4813 echo "$ac_t""no" 1>&6
4784 with_xmu=no 4814 with_xmu=no
4785 fi 4815 fi
4786 4816
4787 4817
4788 fi 4818 fi
4789 if test "$with_xmu" = "no"; then 4819 if test "$with_xmu" = "no"; then
4790 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then 4820 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
4791 echo " xemacs will be linked with \"xmu.o\"" 4821 echo " xemacs will be linked with \"xmu.o\""
4792 fi 4822 fi
4793 else 4823 else
4794 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi 4824 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
4795 fi 4825 fi ;;
4826 esac
4796 4827
4797 4828
4798 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 4829 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4799 echo "configure:4800: checking for main in -lXbsd" >&5 4830 echo "configure:4831: checking for main in -lXbsd" >&5
4800 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 4831 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4801 4832
4802 xe_check_libs=" -lXbsd " 4833 xe_check_libs=" -lXbsd "
4803 cat > conftest.$ac_ext <<EOF 4834 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure" 4835 #line 4836 "configure"
4805 #include "confdefs.h" 4836 #include "confdefs.h"
4806 4837
4807 int main() { 4838 int main() {
4808 main() 4839 main()
4809 ; return 0; } 4840 ; return 0; }
4810 EOF 4841 EOF
4811 if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4812 rm -rf conftest* 4843 rm -rf conftest*
4813 eval "ac_cv_lib_$ac_lib_var=yes" 4844 eval "ac_cv_lib_$ac_lib_var=yes"
4814 else 4845 else
4815 echo "configure: failed program was:" >&5 4846 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5 4847 cat conftest.$ac_ext >&5
4829 4860
4830 4861
4831 4862
4832 4863
4833 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 4864 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
4834 echo "configure:4835: checking for XawScrollbarSetThumb in -lXaw" >&5 4865 echo "configure:4866: checking for XawScrollbarSetThumb in -lXaw" >&5
4835 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4866 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4836 4867
4837 xe_check_libs=" -lXaw " 4868 xe_check_libs=" -lXaw "
4838 cat > conftest.$ac_ext <<EOF 4869 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure" 4870 #line 4871 "configure"
4840 #include "confdefs.h" 4871 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */ 4872 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2 4873 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */ 4874 builtin and then its argument prototype would still apply. */
4844 char XawScrollbarSetThumb(); 4875 char XawScrollbarSetThumb();
4845 4876
4846 int main() { 4877 int main() {
4847 XawScrollbarSetThumb() 4878 XawScrollbarSetThumb()
4848 ; return 0; } 4879 ; return 0; }
4849 EOF 4880 EOF
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4851 rm -rf conftest* 4882 rm -rf conftest*
4852 eval "ac_cv_lib_$ac_lib_var=yes" 4883 eval "ac_cv_lib_$ac_lib_var=yes"
4853 else 4884 else
4854 echo "configure: failed program was:" >&5 4885 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5 4886 cat conftest.$ac_ext >&5
4902 esac 4933 esac
4903 4934
4904 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 4935 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
4905 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 4936 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
4906 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 4937 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
4907 echo "configure:4908: checking for X11/Xauth.h" >&5 4938 echo "configure:4939: checking for X11/Xauth.h" >&5
4908 4939
4909 cat > conftest.$ac_ext <<EOF 4940 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure" 4941 #line 4942 "configure"
4911 #include "confdefs.h" 4942 #include "confdefs.h"
4912 #include <X11/Xauth.h> 4943 #include <X11/Xauth.h>
4913 EOF 4944 EOF
4914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4915 { (eval echo configure:4916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4916 ac_err=`grep -v '^ *+' conftest.out` 4947 ac_err=`grep -v '^ *+' conftest.out`
4917 if test -z "$ac_err"; then 4948 if test -z "$ac_err"; then
4918 rm -rf conftest* 4949 rm -rf conftest*
4919 eval "ac_cv_header_$ac_safe=yes" 4950 eval "ac_cv_header_$ac_safe=yes"
4920 else 4951 else
4933 with_xauth=no 4964 with_xauth=no
4934 fi 4965 fi
4935 } 4966 }
4936 test -z "$with_xauth" && { 4967 test -z "$with_xauth" && {
4937 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 4968 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
4938 echo "configure:4939: checking for XauGetAuthByAddr in -lXau" >&5 4969 echo "configure:4970: checking for XauGetAuthByAddr in -lXau" >&5
4939 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 4970 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
4940 4971
4941 xe_check_libs=" -lXau " 4972 xe_check_libs=" -lXau "
4942 cat > conftest.$ac_ext <<EOF 4973 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure" 4974 #line 4975 "configure"
4944 #include "confdefs.h" 4975 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error. */ 4976 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2 4977 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */ 4978 builtin and then its argument prototype would still apply. */
4948 char XauGetAuthByAddr(); 4979 char XauGetAuthByAddr();
4949 4980
4950 int main() { 4981 int main() {
4951 XauGetAuthByAddr() 4982 XauGetAuthByAddr()
4952 ; return 0; } 4983 ; return 0; }
4953 EOF 4984 EOF
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4955 rm -rf conftest* 4986 rm -rf conftest*
4956 eval "ac_cv_lib_$ac_lib_var=yes" 4987 eval "ac_cv_lib_$ac_lib_var=yes"
4957 else 4988 else
4958 echo "configure: failed program was:" >&5 4989 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5 4990 cat conftest.$ac_ext >&5
4985 libs_x="-lXau $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXau\" to \$libs_x"; fi 5016 libs_x="-lXau $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXau\" to \$libs_x"; fi
4986 fi 5017 fi
4987 5018
4988 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5019 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
4989 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5020 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
4990 echo "configure:4991: checking for OffiX/DragAndDrop.h" >&5 5021 echo "configure:5022: checking for OffiX/DragAndDrop.h" >&5
4991 5022
4992 cat > conftest.$ac_ext <<EOF 5023 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure" 5024 #line 5025 "configure"
4994 #include "confdefs.h" 5025 #include "confdefs.h"
4995 #include <OffiX/DragAndDrop.h> 5026 #include <OffiX/DragAndDrop.h>
4996 EOF 5027 EOF
4997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4998 { (eval echo configure:4999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5029 { (eval echo configure:5030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4999 ac_err=`grep -v '^ *+' conftest.out` 5030 ac_err=`grep -v '^ *+' conftest.out`
5000 if test -z "$ac_err"; then 5031 if test -z "$ac_err"; then
5001 rm -rf conftest* 5032 rm -rf conftest*
5002 eval "ac_cv_header_$ac_safe=yes" 5033 eval "ac_cv_header_$ac_safe=yes"
5003 else 5034 else
5016 with_offix=no 5047 with_offix=no
5017 fi 5048 fi
5018 } 5049 }
5019 test -z "$with_offix" && { 5050 test -z "$with_offix" && {
5020 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5051 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5021 echo "configure:5022: checking for DndInitialize in -lDnd" >&5 5052 echo "configure:5053: checking for DndInitialize in -lDnd" >&5
5022 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5053 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5023 5054
5024 xe_check_libs=" -lDnd " 5055 xe_check_libs=" -lDnd "
5025 cat > conftest.$ac_ext <<EOF 5056 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure" 5057 #line 5058 "configure"
5027 #include "confdefs.h" 5058 #include "confdefs.h"
5028 /* Override any gcc2 internal prototype to avoid an error. */ 5059 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2 5060 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */ 5061 builtin and then its argument prototype would still apply. */
5031 char DndInitialize(); 5062 char DndInitialize();
5032 5063
5033 int main() { 5064 int main() {
5034 DndInitialize() 5065 DndInitialize()
5035 ; return 0; } 5066 ; return 0; }
5036 EOF 5067 EOF
5037 if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5038 rm -rf conftest* 5069 rm -rf conftest*
5039 eval "ac_cv_lib_$ac_lib_var=yes" 5070 eval "ac_cv_lib_$ac_lib_var=yes"
5040 else 5071 else
5041 echo "configure: failed program was:" >&5 5072 echo "configure: failed program was:" >&5
5042 cat conftest.$ac_ext >&5 5073 cat conftest.$ac_ext >&5
5071 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5102 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5072 if test "$with_tooltalk" != "no" ; then 5103 if test "$with_tooltalk" != "no" ; then
5073 for dir in "" "Tt/" "desktop/" ; do 5104 for dir in "" "Tt/" "desktop/" ; do
5074 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5105 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5075 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5106 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5076 echo "configure:5077: checking for ${dir}tt_c.h" >&5 5107 echo "configure:5108: checking for ${dir}tt_c.h" >&5
5077 5108
5078 cat > conftest.$ac_ext <<EOF 5109 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure" 5110 #line 5111 "configure"
5080 #include "confdefs.h" 5111 #include "confdefs.h"
5081 #include <${dir}tt_c.h> 5112 #include <${dir}tt_c.h>
5082 EOF 5113 EOF
5083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5084 { (eval echo configure:5085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5115 { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5085 ac_err=`grep -v '^ *+' conftest.out` 5116 ac_err=`grep -v '^ *+' conftest.out`
5086 if test -z "$ac_err"; then 5117 if test -z "$ac_err"; then
5087 rm -rf conftest* 5118 rm -rf conftest*
5088 eval "ac_cv_header_$ac_safe=yes" 5119 eval "ac_cv_header_$ac_safe=yes"
5089 else 5120 else
5108 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5139 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5109 5140
5110 xe_msg_checking="for tt_message_create in -ltt" 5141 xe_msg_checking="for tt_message_create in -ltt"
5111 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5142 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5112 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5143 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5113 echo "configure:5114: checking "$xe_msg_checking"" >&5 5144 echo "configure:5145: checking "$xe_msg_checking"" >&5
5114 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5145 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5115 5146
5116 xe_check_libs=" -ltt $extra_libs" 5147 xe_check_libs=" -ltt $extra_libs"
5117 cat > conftest.$ac_ext <<EOF 5148 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure" 5149 #line 5150 "configure"
5119 #include "confdefs.h" 5150 #include "confdefs.h"
5120 /* Override any gcc2 internal prototype to avoid an error. */ 5151 /* Override any gcc2 internal prototype to avoid an error. */
5121 /* We use char because int might match the return type of a gcc2 5152 /* We use char because int might match the return type of a gcc2
5122 builtin and then its argument prototype would still apply. */ 5153 builtin and then its argument prototype would still apply. */
5123 char tt_message_create(); 5154 char tt_message_create();
5124 5155
5125 int main() { 5156 int main() {
5126 tt_message_create() 5157 tt_message_create()
5127 ; return 0; } 5158 ; return 0; }
5128 EOF 5159 EOF
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5130 rm -rf conftest* 5161 rm -rf conftest*
5131 eval "ac_cv_lib_$ac_lib_var=yes" 5162 eval "ac_cv_lib_$ac_lib_var=yes"
5132 else 5163 else
5133 echo "configure: failed program was:" >&5 5164 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5 5165 cat conftest.$ac_ext >&5
5173 fi 5204 fi
5174 fi 5205 fi
5175 5206
5176 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5207 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5177 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5208 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5178 echo "configure:5179: checking for Dt/Dt.h" >&5 5209 echo "configure:5210: checking for Dt/Dt.h" >&5
5179 5210
5180 cat > conftest.$ac_ext <<EOF 5211 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure" 5212 #line 5213 "configure"
5182 #include "confdefs.h" 5213 #include "confdefs.h"
5183 #include <Dt/Dt.h> 5214 #include <Dt/Dt.h>
5184 EOF 5215 EOF
5185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5186 { (eval echo configure:5187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5217 { (eval echo configure:5218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5187 ac_err=`grep -v '^ *+' conftest.out` 5218 ac_err=`grep -v '^ *+' conftest.out`
5188 if test -z "$ac_err"; then 5219 if test -z "$ac_err"; then
5189 rm -rf conftest* 5220 rm -rf conftest*
5190 eval "ac_cv_header_$ac_safe=yes" 5221 eval "ac_cv_header_$ac_safe=yes"
5191 else 5222 else
5204 with_cde=no 5235 with_cde=no
5205 fi 5236 fi
5206 } 5237 }
5207 test -z "$with_cde" && { 5238 test -z "$with_cde" && {
5208 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5239 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5209 echo "configure:5210: checking for DtDndDragStart in -lDtSvc" >&5 5240 echo "configure:5241: checking for DtDndDragStart in -lDtSvc" >&5
5210 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5241 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5211 5242
5212 xe_check_libs=" -lDtSvc " 5243 xe_check_libs=" -lDtSvc "
5213 cat > conftest.$ac_ext <<EOF 5244 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure" 5245 #line 5246 "configure"
5215 #include "confdefs.h" 5246 #include "confdefs.h"
5216 /* Override any gcc2 internal prototype to avoid an error. */ 5247 /* Override any gcc2 internal prototype to avoid an error. */
5217 /* We use char because int might match the return type of a gcc2 5248 /* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */ 5249 builtin and then its argument prototype would still apply. */
5219 char DtDndDragStart(); 5250 char DtDndDragStart();
5220 5251
5221 int main() { 5252 int main() {
5222 DtDndDragStart() 5253 DtDndDragStart()
5223 ; return 0; } 5254 ; return 0; }
5224 EOF 5255 EOF
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5226 rm -rf conftest* 5257 rm -rf conftest*
5227 eval "ac_cv_lib_$ac_lib_var=yes" 5258 eval "ac_cv_lib_$ac_lib_var=yes"
5228 else 5259 else
5229 echo "configure: failed program was:" >&5 5260 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5 5261 cat conftest.$ac_ext >&5
5267 EOF 5298 EOF
5268 } 5299 }
5269 5300
5270 5301
5271 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5302 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5272 echo "configure:5273: checking for main in -lenergize" >&5 5303 echo "configure:5304: checking for main in -lenergize" >&5
5273 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5304 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5274 5305
5275 xe_check_libs=" -lenergize " 5306 xe_check_libs=" -lenergize "
5276 cat > conftest.$ac_ext <<EOF 5307 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure" 5308 #line 5309 "configure"
5278 #include "confdefs.h" 5309 #include "confdefs.h"
5279 5310
5280 int main() { 5311 int main() {
5281 main() 5312 main()
5282 ; return 0; } 5313 ; return 0; }
5283 EOF 5314 EOF
5284 if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5315 if { (eval echo configure:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5285 rm -rf conftest* 5316 rm -rf conftest*
5286 eval "ac_cv_lib_$ac_lib_var=yes" 5317 eval "ac_cv_lib_$ac_lib_var=yes"
5287 else 5318 else
5288 echo "configure: failed program was:" >&5 5319 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5 5320 cat conftest.$ac_ext >&5
5311 5342
5312 5343
5313 if test -z "$energize_version"; then 5344 if test -z "$energize_version"; then
5314 5345
5315 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5346 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5316 echo "configure:5317: checking for main in -lconn" >&5 5347 echo "configure:5348: checking for main in -lconn" >&5
5317 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5348 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5318 5349
5319 xe_check_libs=" -lconn " 5350 xe_check_libs=" -lconn "
5320 cat > conftest.$ac_ext <<EOF 5351 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure" 5352 #line 5353 "configure"
5322 #include "confdefs.h" 5353 #include "confdefs.h"
5323 5354
5324 int main() { 5355 int main() {
5325 main() 5356 main()
5326 ; return 0; } 5357 ; return 0; }
5327 EOF 5358 EOF
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5329 rm -rf conftest* 5360 rm -rf conftest*
5330 eval "ac_cv_lib_$ac_lib_var=yes" 5361 eval "ac_cv_lib_$ac_lib_var=yes"
5331 else 5362 else
5332 echo "configure: failed program was:" >&5 5363 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5 5364 cat conftest.$ac_ext >&5
5356 5387
5357 5388
5358 fi 5389 fi
5359 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5390 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5360 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5391 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5361 echo "configure:5362: checking for editorconn.h" >&5 5392 echo "configure:5393: checking for editorconn.h" >&5
5362 5393
5363 cat > conftest.$ac_ext <<EOF 5394 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure" 5395 #line 5396 "configure"
5365 #include "confdefs.h" 5396 #include "confdefs.h"
5366 #include <editorconn.h> 5397 #include <editorconn.h>
5367 EOF 5398 EOF
5368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5369 { (eval echo configure:5370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5400 { (eval echo configure:5401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5370 ac_err=`grep -v '^ *+' conftest.out` 5401 ac_err=`grep -v '^ *+' conftest.out`
5371 if test -z "$ac_err"; then 5402 if test -z "$ac_err"; then
5372 rm -rf conftest* 5403 rm -rf conftest*
5373 eval "ac_cv_header_$ac_safe=yes" 5404 eval "ac_cv_header_$ac_safe=yes"
5374 else 5405 else
5406 5437
5407 fi 5438 fi
5408 5439
5409 5440
5410 echo "checking for graphics libraries" 1>&6 5441 echo "checking for graphics libraries" 1>&6
5411 echo "configure:5412: checking for graphics libraries" >&5 5442 echo "configure:5443: checking for graphics libraries" >&5
5412 test -z "$with_gif" && with_gif=yes; 5443 test -z "$with_gif" && with_gif=yes;
5413 if test "$with_gif" = "yes"; then 5444 if test "$with_gif" = "yes"; then
5414 { test "$extra_verbose" = "yes" && cat << \EOF 5445 { test "$extra_verbose" = "yes" && cat << \EOF
5415 Defining HAVE_GIF 5446 Defining HAVE_GIF
5416 EOF 5447 EOF
5424 fi 5455 fi
5425 fi 5456 fi
5426 5457
5427 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 5458 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5428 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 5459 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5429 echo "configure:5430: checking for X11/xpm.h" >&5 5460 echo "configure:5461: checking for X11/xpm.h" >&5
5430 5461
5431 cat > conftest.$ac_ext <<EOF 5462 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure" 5463 #line 5464 "configure"
5433 #include "confdefs.h" 5464 #include "confdefs.h"
5434 #include <X11/xpm.h> 5465 #include <X11/xpm.h>
5435 EOF 5466 EOF
5436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5437 { (eval echo configure:5438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5438 ac_err=`grep -v '^ *+' conftest.out` 5469 ac_err=`grep -v '^ *+' conftest.out`
5439 if test -z "$ac_err"; then 5470 if test -z "$ac_err"; then
5440 rm -rf conftest* 5471 rm -rf conftest*
5441 eval "ac_cv_header_$ac_safe=yes" 5472 eval "ac_cv_header_$ac_safe=yes"
5442 else 5473 else
5455 with_xpm=no 5486 with_xpm=no
5456 fi 5487 fi
5457 } 5488 }
5458 test -z "$with_xpm" && { 5489 test -z "$with_xpm" && {
5459 echo $ac_n "checking for XpmFree in -lXpm""... $ac_c" 1>&6 5490 echo $ac_n "checking for XpmFree in -lXpm""... $ac_c" 1>&6
5460 echo "configure:5461: checking for XpmFree in -lXpm" >&5 5491 echo "configure:5492: checking for XpmFree in -lXpm" >&5
5461 ac_lib_var=`echo Xpm'_'XpmFree | sed 'y%./+-%__p_%'` 5492 ac_lib_var=`echo Xpm'_'XpmFree | sed 'y%./+-%__p_%'`
5462 5493
5463 xe_check_libs=" -lXpm " 5494 xe_check_libs=" -lXpm "
5464 cat > conftest.$ac_ext <<EOF 5495 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure" 5496 #line 5497 "configure"
5466 #include "confdefs.h" 5497 #include "confdefs.h"
5467 /* Override any gcc2 internal prototype to avoid an error. */ 5498 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2 5499 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */ 5500 builtin and then its argument prototype would still apply. */
5470 char XpmFree(); 5501 char XpmFree();
5471 5502
5472 int main() { 5503 int main() {
5473 XpmFree() 5504 XpmFree()
5474 ; return 0; } 5505 ; return 0; }
5475 EOF 5506 EOF
5476 if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5477 rm -rf conftest* 5508 rm -rf conftest*
5478 eval "ac_cv_lib_$ac_lib_var=yes" 5509 eval "ac_cv_lib_$ac_lib_var=yes"
5479 else 5510 else
5480 echo "configure: failed program was:" >&5 5511 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5 5512 cat conftest.$ac_ext >&5
5507 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5538 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5508 fi 5539 fi
5509 5540
5510 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5541 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5511 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5542 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5512 echo "configure:5513: checking for compface.h" >&5 5543 echo "configure:5544: checking for compface.h" >&5
5513 5544
5514 cat > conftest.$ac_ext <<EOF 5545 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure" 5546 #line 5547 "configure"
5516 #include "confdefs.h" 5547 #include "confdefs.h"
5517 #include <compface.h> 5548 #include <compface.h>
5518 EOF 5549 EOF
5519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5520 { (eval echo configure:5521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5551 { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5521 ac_err=`grep -v '^ *+' conftest.out` 5552 ac_err=`grep -v '^ *+' conftest.out`
5522 if test -z "$ac_err"; then 5553 if test -z "$ac_err"; then
5523 rm -rf conftest* 5554 rm -rf conftest*
5524 eval "ac_cv_header_$ac_safe=yes" 5555 eval "ac_cv_header_$ac_safe=yes"
5525 else 5556 else
5538 with_xface=no 5569 with_xface=no
5539 fi 5570 fi
5540 } 5571 }
5541 test -z "$with_xface" && { 5572 test -z "$with_xface" && {
5542 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5573 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5543 echo "configure:5544: checking for UnGenFace in -lcompface" >&5 5574 echo "configure:5575: checking for UnGenFace in -lcompface" >&5
5544 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5575 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5545 5576
5546 xe_check_libs=" -lcompface " 5577 xe_check_libs=" -lcompface "
5547 cat > conftest.$ac_ext <<EOF 5578 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure" 5579 #line 5580 "configure"
5549 #include "confdefs.h" 5580 #include "confdefs.h"
5550 /* Override any gcc2 internal prototype to avoid an error. */ 5581 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2 5582 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */ 5583 builtin and then its argument prototype would still apply. */
5553 char UnGenFace(); 5584 char UnGenFace();
5554 5585
5555 int main() { 5586 int main() {
5556 UnGenFace() 5587 UnGenFace()
5557 ; return 0; } 5588 ; return 0; }
5558 EOF 5589 EOF
5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5560 rm -rf conftest* 5591 rm -rf conftest*
5561 eval "ac_cv_lib_$ac_lib_var=yes" 5592 eval "ac_cv_lib_$ac_lib_var=yes"
5562 else 5593 else
5563 echo "configure: failed program was:" >&5 5594 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5 5595 cat conftest.$ac_ext >&5
5590 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 5621 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
5591 fi 5622 fi
5592 5623
5593 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 5624 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5594 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 5625 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for jpeglib.h" >&5 5626 echo "configure:5627: checking for jpeglib.h" >&5
5596 5627
5597 cat > conftest.$ac_ext <<EOF 5628 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure" 5629 #line 5630 "configure"
5599 #include "confdefs.h" 5630 #include "confdefs.h"
5600 #include <jpeglib.h> 5631 #include <jpeglib.h>
5601 EOF 5632 EOF
5602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5603 { (eval echo configure:5604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5634 { (eval echo configure:5635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5604 ac_err=`grep -v '^ *+' conftest.out` 5635 ac_err=`grep -v '^ *+' conftest.out`
5605 if test -z "$ac_err"; then 5636 if test -z "$ac_err"; then
5606 rm -rf conftest* 5637 rm -rf conftest*
5607 eval "ac_cv_header_$ac_safe=yes" 5638 eval "ac_cv_header_$ac_safe=yes"
5608 else 5639 else
5621 with_jpeg=no 5652 with_jpeg=no
5622 fi 5653 fi
5623 } 5654 }
5624 test -z "$with_jpeg" && { 5655 test -z "$with_jpeg" && {
5625 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 5656 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
5626 echo "configure:5627: checking for jpeg_destroy_decompress in -ljpeg" >&5 5657 echo "configure:5658: checking for jpeg_destroy_decompress in -ljpeg" >&5
5627 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 5658 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
5628 5659
5629 xe_check_libs=" -ljpeg " 5660 xe_check_libs=" -ljpeg "
5630 cat > conftest.$ac_ext <<EOF 5661 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure" 5662 #line 5663 "configure"
5632 #include "confdefs.h" 5663 #include "confdefs.h"
5633 /* Override any gcc2 internal prototype to avoid an error. */ 5664 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2 5665 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */ 5666 builtin and then its argument prototype would still apply. */
5636 char jpeg_destroy_decompress(); 5667 char jpeg_destroy_decompress();
5637 5668
5638 int main() { 5669 int main() {
5639 jpeg_destroy_decompress() 5670 jpeg_destroy_decompress()
5640 ; return 0; } 5671 ; return 0; }
5641 EOF 5672 EOF
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5643 rm -rf conftest* 5674 rm -rf conftest*
5644 eval "ac_cv_lib_$ac_lib_var=yes" 5675 eval "ac_cv_lib_$ac_lib_var=yes"
5645 else 5676 else
5646 echo "configure: failed program was:" >&5 5677 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5 5678 cat conftest.$ac_ext >&5
5673 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 5704 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
5674 fi 5705 fi
5675 5706
5676 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 5707 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5677 echo $ac_n "checking for png.h""... $ac_c" 1>&6 5708 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5678 echo "configure:5679: checking for png.h" >&5 5709 echo "configure:5710: checking for png.h" >&5
5679 5710
5680 cat > conftest.$ac_ext <<EOF 5711 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure" 5712 #line 5713 "configure"
5682 #include "confdefs.h" 5713 #include "confdefs.h"
5683 #include <png.h> 5714 #include <png.h>
5684 EOF 5715 EOF
5685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5686 { (eval echo configure:5687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5717 { (eval echo configure:5718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5687 ac_err=`grep -v '^ *+' conftest.out` 5718 ac_err=`grep -v '^ *+' conftest.out`
5688 if test -z "$ac_err"; then 5719 if test -z "$ac_err"; then
5689 rm -rf conftest* 5720 rm -rf conftest*
5690 eval "ac_cv_header_$ac_safe=yes" 5721 eval "ac_cv_header_$ac_safe=yes"
5691 else 5722 else
5703 echo "$ac_t""no" 1>&6 5734 echo "$ac_t""no" 1>&6
5704 with_png=no 5735 with_png=no
5705 fi 5736 fi
5706 } 5737 }
5707 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 5738 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
5708 echo "configure:5709: checking for pow" >&5 5739 echo "configure:5740: checking for pow" >&5
5709 5740
5710 cat > conftest.$ac_ext <<EOF 5741 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure" 5742 #line 5743 "configure"
5712 #include "confdefs.h" 5743 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes, 5744 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char pow(); below. */ 5745 which can conflict with char pow(); below. */
5715 #include <assert.h> 5746 #include <assert.h>
5716 /* Override any gcc2 internal prototype to avoid an error. */ 5747 /* Override any gcc2 internal prototype to avoid an error. */
5729 pow(); 5760 pow();
5730 #endif 5761 #endif
5731 5762
5732 ; return 0; } 5763 ; return 0; }
5733 EOF 5764 EOF
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5735 rm -rf conftest* 5766 rm -rf conftest*
5736 eval "ac_cv_func_pow=yes" 5767 eval "ac_cv_func_pow=yes"
5737 else 5768 else
5738 echo "configure: failed program was:" >&5 5769 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5 5770 cat conftest.$ac_ext >&5
5754 for extra_libs in "" "-lz" "-lgz"; do 5785 for extra_libs in "" "-lz" "-lgz"; do
5755 5786
5756 xe_msg_checking="for png_read_image in -lpng" 5787 xe_msg_checking="for png_read_image in -lpng"
5757 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5788 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5758 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5789 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5759 echo "configure:5760: checking "$xe_msg_checking"" >&5 5790 echo "configure:5791: checking "$xe_msg_checking"" >&5
5760 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 5791 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
5761 5792
5762 xe_check_libs=" -lpng $extra_libs" 5793 xe_check_libs=" -lpng $extra_libs"
5763 cat > conftest.$ac_ext <<EOF 5794 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure" 5795 #line 5796 "configure"
5765 #include "confdefs.h" 5796 #include "confdefs.h"
5766 /* Override any gcc2 internal prototype to avoid an error. */ 5797 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2 5798 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */ 5799 builtin and then its argument prototype would still apply. */
5769 char png_read_image(); 5800 char png_read_image();
5770 5801
5771 int main() { 5802 int main() {
5772 png_read_image() 5803 png_read_image()
5773 ; return 0; } 5804 ; return 0; }
5774 EOF 5805 EOF
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5776 rm -rf conftest* 5807 rm -rf conftest*
5777 eval "ac_cv_lib_$ac_lib_var=yes" 5808 eval "ac_cv_lib_$ac_lib_var=yes"
5778 else 5809 else
5779 echo "configure: failed program was:" >&5 5810 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5 5811 cat conftest.$ac_ext >&5
5820 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 5851 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
5821 fi 5852 fi
5822 5853
5823 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 5854 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
5824 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 5855 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
5825 echo "configure:5826: checking for Xm/Xm.h" >&5 5856 echo "configure:5857: checking for Xm/Xm.h" >&5
5826 5857
5827 cat > conftest.$ac_ext <<EOF 5858 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure" 5859 #line 5860 "configure"
5829 #include "confdefs.h" 5860 #include "confdefs.h"
5830 #include <Xm/Xm.h> 5861 #include <Xm/Xm.h>
5831 EOF 5862 EOF
5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5864 { (eval echo configure:5865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5834 ac_err=`grep -v '^ *+' conftest.out` 5865 ac_err=`grep -v '^ *+' conftest.out`
5835 if test -z "$ac_err"; then 5866 if test -z "$ac_err"; then
5836 rm -rf conftest* 5867 rm -rf conftest*
5837 eval "ac_cv_header_$ac_safe=yes" 5868 eval "ac_cv_header_$ac_safe=yes"
5838 else 5869 else
5845 rm -f conftest* 5876 rm -f conftest*
5846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5847 echo "$ac_t""yes" 1>&6 5878 echo "$ac_t""yes" 1>&6
5848 5879
5849 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 5880 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
5850 echo "configure:5851: checking for XmStringFree in -lXm" >&5 5881 echo "configure:5882: checking for XmStringFree in -lXm" >&5
5851 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 5882 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
5852 5883
5853 xe_check_libs=" -lXm " 5884 xe_check_libs=" -lXm "
5854 cat > conftest.$ac_ext <<EOF 5885 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure" 5886 #line 5887 "configure"
5856 #include "confdefs.h" 5887 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */ 5888 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2 5889 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */ 5890 builtin and then its argument prototype would still apply. */
5860 char XmStringFree(); 5891 char XmStringFree();
5861 5892
5862 int main() { 5893 int main() {
5863 XmStringFree() 5894 XmStringFree()
5864 ; return 0; } 5895 ; return 0; }
5865 EOF 5896 EOF
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5867 rm -rf conftest* 5898 rm -rf conftest*
5868 eval "ac_cv_lib_$ac_lib_var=yes" 5899 eval "ac_cv_lib_$ac_lib_var=yes"
5869 else 5900 else
5870 echo "configure: failed program was:" >&5 5901 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5 5902 cat conftest.$ac_ext >&5
5913 cat >> confdefs.h <<\EOF 5944 cat >> confdefs.h <<\EOF
5914 #define LWLIB_USES_ATHENA 1 5945 #define LWLIB_USES_ATHENA 1
5915 EOF 5946 EOF
5916 } 5947 }
5917 5948
5949 { test "$extra_verbose" = "yes" && cat << \EOF
5950 Defining NEED_ATHENA
5951 EOF
5952 cat >> confdefs.h <<\EOF
5953 #define NEED_ATHENA 1
5954 EOF
5955 }
5956
5957 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
5918 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;; 5958 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
5919 esac 5959 esac
5920 5960
5921 case "$all_widgets" in *motif* ) 5961 case "$all_widgets" in *motif* )
5922 { test "$extra_verbose" = "yes" && cat << \EOF 5962 { test "$extra_verbose" = "yes" && cat << \EOF
5925 cat >> confdefs.h <<\EOF 5965 cat >> confdefs.h <<\EOF
5926 #define LWLIB_USES_MOTIF 1 5966 #define LWLIB_USES_MOTIF 1
5927 EOF 5967 EOF
5928 } 5968 }
5929 5969
5970 { test "$extra_verbose" = "yes" && cat << \EOF
5971 Defining NEED_MOTIF
5972 EOF
5973 cat >> confdefs.h <<\EOF
5974 #define NEED_MOTIF 1
5975 EOF
5976 }
5977
5978 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
5930 need_motif=yes ;; 5979 need_motif=yes ;;
5931 esac 5980 esac
5981
5982 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
5983 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
5984 case "$all_widgets" in *lucid* )
5985 { test "$extra_verbose" = "yes" && cat << \EOF
5986 Defining NEED_LUCID
5987 EOF
5988 cat >> confdefs.h <<\EOF
5989 #define NEED_LUCID 1
5990 EOF
5991 }
5992
5993 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
5994 esac
5995
5996
5932 5997
5933 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF 5998 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
5934 Defining LWLIB_SCROLLBARS_ATHENA 5999 Defining LWLIB_SCROLLBARS_ATHENA
5935 EOF 6000 EOF
5936 cat >> confdefs.h <<\EOF 6001 cat >> confdefs.h <<\EOF
6075 6140
6076 test -z "$with_mule" && with_mule=no 6141 test -z "$with_mule" && with_mule=no
6077 6142
6078 if test "$with_mule" = "yes" ; then 6143 if test "$with_mule" = "yes" ; then
6079 echo "checking for Mule-related features" 1>&6 6144 echo "checking for Mule-related features" 1>&6
6080 echo "configure:6081: checking for Mule-related features" >&5 6145 echo "configure:6146: checking for Mule-related features" >&5
6081 { test "$extra_verbose" = "yes" && cat << \EOF 6146 { test "$extra_verbose" = "yes" && cat << \EOF
6082 Defining MULE 6147 Defining MULE
6083 EOF 6148 EOF
6084 cat >> confdefs.h <<\EOF 6149 cat >> confdefs.h <<\EOF
6085 #define MULE 1 6150 #define MULE 1
6092 6157
6093 for ac_hdr in libintl.h 6158 for ac_hdr in libintl.h
6094 do 6159 do
6095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_hdr" >&5 6162 echo "configure:6163: checking for $ac_hdr" >&5
6098 6163
6099 cat > conftest.$ac_ext <<EOF 6164 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure" 6165 #line 6166 "configure"
6101 #include "confdefs.h" 6166 #include "confdefs.h"
6102 #include <$ac_hdr> 6167 #include <$ac_hdr>
6103 EOF 6168 EOF
6104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6105 { (eval echo configure:6106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6106 ac_err=`grep -v '^ *+' conftest.out` 6171 ac_err=`grep -v '^ *+' conftest.out`
6107 if test -z "$ac_err"; then 6172 if test -z "$ac_err"; then
6108 rm -rf conftest* 6173 rm -rf conftest*
6109 eval "ac_cv_header_$ac_safe=yes" 6174 eval "ac_cv_header_$ac_safe=yes"
6110 else 6175 else
6131 fi 6196 fi
6132 done 6197 done
6133 6198
6134 6199
6135 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6200 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6136 echo "configure:6137: checking for strerror in -lintl" >&5 6201 echo "configure:6202: checking for strerror in -lintl" >&5
6137 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6202 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6138 6203
6139 xe_check_libs=" -lintl " 6204 xe_check_libs=" -lintl "
6140 cat > conftest.$ac_ext <<EOF 6205 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure" 6206 #line 6207 "configure"
6142 #include "confdefs.h" 6207 #include "confdefs.h"
6143 /* Override any gcc2 internal prototype to avoid an error. */ 6208 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2 6209 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */ 6210 builtin and then its argument prototype would still apply. */
6146 char strerror(); 6211 char strerror();
6147 6212
6148 int main() { 6213 int main() {
6149 strerror() 6214 strerror()
6150 ; return 0; } 6215 ; return 0; }
6151 EOF 6216 EOF
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6217 if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6153 rm -rf conftest* 6218 rm -rf conftest*
6154 eval "ac_cv_lib_$ac_lib_var=yes" 6219 eval "ac_cv_lib_$ac_lib_var=yes"
6155 else 6220 else
6156 echo "configure: failed program was:" >&5 6221 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5 6222 cat conftest.$ac_ext >&5
6180 fi 6245 fi
6181 6246
6182 6247
6183 6248
6184 echo "checking for Mule input methods" 1>&6 6249 echo "checking for Mule input methods" 1>&6
6185 echo "configure:6186: checking for Mule input methods" >&5 6250 echo "configure:6251: checking for Mule input methods" >&5
6186 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac 6251 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac
6187 case "$with_xim" in "" | "yes" ) 6252 case "$with_xim" in "" | "yes" )
6188 echo "checking for XIM" 1>&6 6253 echo "checking for XIM" 1>&6
6189 echo "configure:6190: checking for XIM" >&5 6254 echo "configure:6255: checking for XIM" >&5
6190 6255
6191 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6256 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6192 echo "configure:6193: checking for XmImMbLookupString in -lXm" >&5 6257 echo "configure:6258: checking for XmImMbLookupString in -lXm" >&5
6193 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6258 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6194 6259
6195 xe_check_libs=" -lXm " 6260 xe_check_libs=" -lXm "
6196 cat > conftest.$ac_ext <<EOF 6261 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure" 6262 #line 6263 "configure"
6198 #include "confdefs.h" 6263 #include "confdefs.h"
6199 /* Override any gcc2 internal prototype to avoid an error. */ 6264 /* Override any gcc2 internal prototype to avoid an error. */
6200 /* We use char because int might match the return type of a gcc2 6265 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */ 6266 builtin and then its argument prototype would still apply. */
6202 char XmImMbLookupString(); 6267 char XmImMbLookupString();
6203 6268
6204 int main() { 6269 int main() {
6205 XmImMbLookupString() 6270 XmImMbLookupString()
6206 ; return 0; } 6271 ; return 0; }
6207 EOF 6272 EOF
6208 if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6209 rm -rf conftest* 6274 rm -rf conftest*
6210 eval "ac_cv_lib_$ac_lib_var=yes" 6275 eval "ac_cv_lib_$ac_lib_var=yes"
6211 else 6276 else
6212 echo "configure: failed program was:" >&5 6277 echo "configure: failed program was:" >&5
6213 cat conftest.$ac_ext >&5 6278 cat conftest.$ac_ext >&5
6265 fi 6330 fi
6266 fi 6331 fi
6267 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6332 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6268 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6333 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6269 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6334 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6270 echo "configure:6271: checking for wnn/jllib.h" >&5 6335 echo "configure:6336: checking for wnn/jllib.h" >&5
6271 6336
6272 cat > conftest.$ac_ext <<EOF 6337 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure" 6338 #line 6339 "configure"
6274 #include "confdefs.h" 6339 #include "confdefs.h"
6275 #include <wnn/jllib.h> 6340 #include <wnn/jllib.h>
6276 EOF 6341 EOF
6277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6278 { (eval echo configure:6279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6343 { (eval echo configure:6344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6279 ac_err=`grep -v '^ *+' conftest.out` 6344 ac_err=`grep -v '^ *+' conftest.out`
6280 if test -z "$ac_err"; then 6345 if test -z "$ac_err"; then
6281 rm -rf conftest* 6346 rm -rf conftest*
6282 eval "ac_cv_header_$ac_safe=yes" 6347 eval "ac_cv_header_$ac_safe=yes"
6283 else 6348 else
6295 echo "$ac_t""no" 1>&6 6360 echo "$ac_t""no" 1>&6
6296 with_wnn=no 6361 with_wnn=no
6297 fi 6362 fi
6298 } 6363 }
6299 test -z "$with_wnn" && { 6364 test -z "$with_wnn" && {
6300 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 6365 xe_msg_checking="for jl_dic_list_e in -lwnn"
6301 echo "configure:6302: checking for jl_dic_list_e in -lwnn" >&5 6366 test -n "with_wnn=no" && xe_msg_checking="$xe_msg_checking using extra libs with_wnn=no"
6367 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6368 echo "configure:6369: checking "$xe_msg_checking"" >&5
6302 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 6369 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
6303 6370
6304 xe_check_libs=" -lwnn " 6371 xe_check_libs=" -lwnn with_wnn=no"
6305 cat > conftest.$ac_ext <<EOF 6372 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure" 6373 #line 6374 "configure"
6307 #include "confdefs.h" 6374 #include "confdefs.h"
6308 /* Override any gcc2 internal prototype to avoid an error. */ 6375 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2 6376 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */ 6377 builtin and then its argument prototype would still apply. */
6311 char jl_dic_list_e(); 6378 char jl_dic_list_e();
6312 6379
6313 int main() { 6380 int main() {
6314 jl_dic_list_e() 6381 jl_dic_list_e()
6315 ; return 0; } 6382 ; return 0; }
6316 EOF 6383 EOF
6317 if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6318 rm -rf conftest* 6385 rm -rf conftest*
6319 eval "ac_cv_lib_$ac_lib_var=yes" 6386 eval "ac_cv_lib_$ac_lib_var=yes"
6320 else 6387 else
6321 echo "configure: failed program was:" >&5 6388 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5 6389 cat conftest.$ac_ext >&5
6340 6407
6341 LIBS="-lwnn $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$LIBS"; fi 6408 LIBS="-lwnn $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$LIBS"; fi
6342 6409
6343 else 6410 else
6344 echo "$ac_t""no" 1>&6 6411 echo "$ac_t""no" 1>&6
6345 with_wnn=no 6412 :
6346 fi 6413 fi
6347 6414
6348 } 6415 }
6349 test -z "$with_wnn" && with_wnn=yes 6416 test -z "$with_wnn" && with_wnn=yes
6350 if test "$with_wnn" = "yes"; then 6417 if test "$with_wnn" = "yes"; then
6360 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 6427 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
6361 echo " xemacs will be linked with \"mule-wnnfns.o\"" 6428 echo " xemacs will be linked with \"mule-wnnfns.o\""
6362 fi 6429 fi
6363 6430
6364 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 6431 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
6365 echo "configure:6366: checking for jl_fi_dic_list in -lwnn" >&5 6432 echo "configure:6433: checking for jl_fi_dic_list in -lwnn" >&5
6366 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 6433 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
6367 6434
6368 xe_check_libs=" -lwnn " 6435 xe_check_libs=" -lwnn "
6369 cat > conftest.$ac_ext <<EOF 6436 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure" 6437 #line 6438 "configure"
6371 #include "confdefs.h" 6438 #include "confdefs.h"
6372 /* Override any gcc2 internal prototype to avoid an error. */ 6439 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2 6440 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */ 6441 builtin and then its argument prototype would still apply. */
6375 char jl_fi_dic_list(); 6442 char jl_fi_dic_list();
6376 6443
6377 int main() { 6444 int main() {
6378 jl_fi_dic_list() 6445 jl_fi_dic_list()
6379 ; return 0; } 6446 ; return 0; }
6380 EOF 6447 EOF
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6382 rm -rf conftest* 6449 rm -rf conftest*
6383 eval "ac_cv_lib_$ac_lib_var=yes" 6450 eval "ac_cv_lib_$ac_lib_var=yes"
6384 else 6451 else
6385 echo "configure: failed program was:" >&5 6452 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5 6453 cat conftest.$ac_ext >&5
6408 6475
6409 fi 6476 fi
6410 6477
6411 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 6478 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
6412 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 6479 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
6413 echo "configure:6414: checking for canna/RK.h" >&5 6480 echo "configure:6481: checking for canna/RK.h" >&5
6414 6481
6415 cat > conftest.$ac_ext <<EOF 6482 cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure" 6483 #line 6484 "configure"
6417 #include "confdefs.h" 6484 #include "confdefs.h"
6418 #include <canna/RK.h> 6485 #include <canna/RK.h>
6419 EOF 6486 EOF
6420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6421 { (eval echo configure:6422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6488 { (eval echo configure:6489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6422 ac_err=`grep -v '^ *+' conftest.out` 6489 ac_err=`grep -v '^ *+' conftest.out`
6423 if test -z "$ac_err"; then 6490 if test -z "$ac_err"; then
6424 rm -rf conftest* 6491 rm -rf conftest*
6425 eval "ac_cv_header_$ac_safe=yes" 6492 eval "ac_cv_header_$ac_safe=yes"
6426 else 6493 else
6439 with_canna=no 6506 with_canna=no
6440 fi 6507 fi
6441 } 6508 }
6442 test -z "$with_canna" && { 6509 test -z "$with_canna" && {
6443 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 6510 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
6444 echo "configure:6445: checking for RkBgnBun in -lRKC" >&5 6511 echo "configure:6512: checking for RkBgnBun in -lRKC" >&5
6445 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 6512 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
6446 6513
6447 xe_check_libs=" -lRKC " 6514 xe_check_libs=" -lRKC "
6448 cat > conftest.$ac_ext <<EOF 6515 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure" 6516 #line 6517 "configure"
6450 #include "confdefs.h" 6517 #include "confdefs.h"
6451 /* Override any gcc2 internal prototype to avoid an error. */ 6518 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2 6519 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */ 6520 builtin and then its argument prototype would still apply. */
6454 char RkBgnBun(); 6521 char RkBgnBun();
6455 6522
6456 int main() { 6523 int main() {
6457 RkBgnBun() 6524 RkBgnBun()
6458 ; return 0; } 6525 ; return 0; }
6459 EOF 6526 EOF
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6461 rm -rf conftest* 6528 rm -rf conftest*
6462 eval "ac_cv_lib_$ac_lib_var=yes" 6529 eval "ac_cv_lib_$ac_lib_var=yes"
6463 else 6530 else
6464 echo "configure: failed program was:" >&5 6531 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5 6532 cat conftest.$ac_ext >&5
6478 fi 6545 fi
6479 6546
6480 } 6547 }
6481 test -z "$with_canna" && { 6548 test -z "$with_canna" && {
6482 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 6549 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
6483 echo "configure:6484: checking for jrKanjiControl in -lcanna" >&5 6550 echo "configure:6551: checking for jrKanjiControl in -lcanna" >&5
6484 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 6551 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
6485 6552
6486 xe_check_libs=" -lcanna " 6553 xe_check_libs=" -lcanna "
6487 cat > conftest.$ac_ext <<EOF 6554 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure" 6555 #line 6556 "configure"
6489 #include "confdefs.h" 6556 #include "confdefs.h"
6490 /* Override any gcc2 internal prototype to avoid an error. */ 6557 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2 6558 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */ 6559 builtin and then its argument prototype would still apply. */
6493 char jrKanjiControl(); 6560 char jrKanjiControl();
6494 6561
6495 int main() { 6562 int main() {
6496 jrKanjiControl() 6563 jrKanjiControl()
6497 ; return 0; } 6564 ; return 0; }
6498 EOF 6565 EOF
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6500 rm -rf conftest* 6567 rm -rf conftest*
6501 eval "ac_cv_lib_$ac_lib_var=yes" 6568 eval "ac_cv_lib_$ac_lib_var=yes"
6502 else 6569 else
6503 echo "configure: failed program was:" >&5 6570 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5 6571 cat conftest.$ac_ext >&5
6595 fi 6662 fi
6596 6663
6597 for ac_func in acosh asinh atanh 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 strcasecmp strerror tzset utimes waitpid 6664 for ac_func in acosh asinh atanh 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 strcasecmp strerror tzset utimes waitpid
6598 do 6665 do
6599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6600 echo "configure:6601: checking for $ac_func" >&5 6667 echo "configure:6668: checking for $ac_func" >&5
6601 6668
6602 cat > conftest.$ac_ext <<EOF 6669 cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure" 6670 #line 6671 "configure"
6604 #include "confdefs.h" 6671 #include "confdefs.h"
6605 /* System header to define __stub macros and hopefully few prototypes, 6672 /* System header to define __stub macros and hopefully few prototypes,
6606 which can conflict with char $ac_func(); below. */ 6673 which can conflict with char $ac_func(); below. */
6607 #include <assert.h> 6674 #include <assert.h>
6608 /* Override any gcc2 internal prototype to avoid an error. */ 6675 /* Override any gcc2 internal prototype to avoid an error. */
6621 $ac_func(); 6688 $ac_func();
6622 #endif 6689 #endif
6623 6690
6624 ; return 0; } 6691 ; return 0; }
6625 EOF 6692 EOF
6626 if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6627 rm -rf conftest* 6694 rm -rf conftest*
6628 eval "ac_cv_func_$ac_func=yes" 6695 eval "ac_cv_func_$ac_func=yes"
6629 else 6696 else
6630 echo "configure: failed program was:" >&5 6697 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5 6698 cat conftest.$ac_ext >&5
6658 fi ;; 6725 fi ;;
6659 * ) 6726 * )
6660 for ac_func in realpath 6727 for ac_func in realpath
6661 do 6728 do
6662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_func" >&5 6730 echo "configure:6731: checking for $ac_func" >&5
6664 6731
6665 cat > conftest.$ac_ext <<EOF 6732 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure" 6733 #line 6734 "configure"
6667 #include "confdefs.h" 6734 #include "confdefs.h"
6668 /* System header to define __stub macros and hopefully few prototypes, 6735 /* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char $ac_func(); below. */ 6736 which can conflict with char $ac_func(); below. */
6670 #include <assert.h> 6737 #include <assert.h>
6671 /* Override any gcc2 internal prototype to avoid an error. */ 6738 /* Override any gcc2 internal prototype to avoid an error. */
6684 $ac_func(); 6751 $ac_func();
6685 #endif 6752 #endif
6686 6753
6687 ; return 0; } 6754 ; return 0; }
6688 EOF 6755 EOF
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6690 rm -rf conftest* 6757 rm -rf conftest*
6691 eval "ac_cv_func_$ac_func=yes" 6758 eval "ac_cv_func_$ac_func=yes"
6692 else 6759 else
6693 echo "configure: failed program was:" >&5 6760 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5 6761 cat conftest.$ac_ext >&5
6717 echo " xemacs will be linked with \"realpath.o\"" 6784 echo " xemacs will be linked with \"realpath.o\""
6718 fi ;; 6785 fi ;;
6719 esac 6786 esac
6720 6787
6721 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 6788 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
6722 echo "configure:6723: checking whether netdb declares h_errno" >&5 6789 echo "configure:6790: checking whether netdb declares h_errno" >&5
6723 cat > conftest.$ac_ext <<EOF 6790 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure" 6791 #line 6792 "configure"
6725 #include "confdefs.h" 6792 #include "confdefs.h"
6726 #include <netdb.h> 6793 #include <netdb.h>
6727 int main() { 6794 int main() {
6728 return h_errno; 6795 return h_errno;
6729 ; return 0; } 6796 ; return 0; }
6730 EOF 6797 EOF
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6732 rm -rf conftest* 6799 rm -rf conftest*
6733 echo "$ac_t""yes" 1>&6 6800 echo "$ac_t""yes" 1>&6
6734 { test "$extra_verbose" = "yes" && cat << \EOF 6801 { test "$extra_verbose" = "yes" && cat << \EOF
6735 Defining HAVE_H_ERRNO 6802 Defining HAVE_H_ERRNO
6736 EOF 6803 EOF
6746 echo "$ac_t""no" 1>&6 6813 echo "$ac_t""no" 1>&6
6747 fi 6814 fi
6748 rm -f conftest* 6815 rm -f conftest*
6749 6816
6750 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 6817 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6751 echo "configure:6752: checking for sigsetjmp" >&5 6818 echo "configure:6819: checking for sigsetjmp" >&5
6752 cat > conftest.$ac_ext <<EOF 6819 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure" 6820 #line 6821 "configure"
6754 #include "confdefs.h" 6821 #include "confdefs.h"
6755 #include <setjmp.h> 6822 #include <setjmp.h>
6756 int main() { 6823 int main() {
6757 sigjmp_buf bar; sigsetjmp (bar, 0); 6824 sigjmp_buf bar; sigsetjmp (bar, 0);
6758 ; return 0; } 6825 ; return 0; }
6759 EOF 6826 EOF
6760 if { (eval echo configure:6761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6827 if { (eval echo configure:6828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6761 rm -rf conftest* 6828 rm -rf conftest*
6762 echo "$ac_t""yes" 1>&6 6829 echo "$ac_t""yes" 1>&6
6763 { test "$extra_verbose" = "yes" && cat << \EOF 6830 { test "$extra_verbose" = "yes" && cat << \EOF
6764 Defining HAVE_SIGSETJMP 6831 Defining HAVE_SIGSETJMP
6765 EOF 6832 EOF
6775 echo "$ac_t""no" 1>&6 6842 echo "$ac_t""no" 1>&6
6776 fi 6843 fi
6777 rm -f conftest* 6844 rm -f conftest*
6778 6845
6779 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6846 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6780 echo "configure:6781: checking whether localtime caches TZ" >&5 6847 echo "configure:6848: checking whether localtime caches TZ" >&5
6781 6848
6782 if test "$ac_cv_func_tzset" = "yes"; then 6849 if test "$ac_cv_func_tzset" = "yes"; then
6783 cat > conftest.$ac_ext <<EOF 6850 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure" 6851 #line 6852 "configure"
6785 #include "confdefs.h" 6852 #include "confdefs.h"
6786 #include <time.h> 6853 #include <time.h>
6787 #if STDC_HEADERS 6854 #if STDC_HEADERS
6788 # include <stdlib.h> 6855 # include <stdlib.h>
6789 #endif 6856 #endif
6814 if (localtime (&now)->tm_hour != hour_unset) 6881 if (localtime (&now)->tm_hour != hour_unset)
6815 exit (1); 6882 exit (1);
6816 exit (0); 6883 exit (0);
6817 } 6884 }
6818 EOF 6885 EOF
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6820 then 6887 then
6821 emacs_cv_localtime_cache=no 6888 emacs_cv_localtime_cache=no
6822 else 6889 else
6823 echo "configure: failed program was:" >&5 6890 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5 6891 cat conftest.$ac_ext >&5
6843 6910
6844 fi 6911 fi
6845 6912
6846 if test "$HAVE_TIMEVAL" = "yes"; then 6913 if test "$HAVE_TIMEVAL" = "yes"; then
6847 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 6914 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
6848 echo "configure:6849: checking whether gettimeofday cannot accept two arguments" >&5 6915 echo "configure:6916: checking whether gettimeofday cannot accept two arguments" >&5
6849 cat > conftest.$ac_ext <<EOF 6916 cat > conftest.$ac_ext <<EOF
6850 #line 6851 "configure" 6917 #line 6918 "configure"
6851 #include "confdefs.h" 6918 #include "confdefs.h"
6852 6919
6853 #ifdef TIME_WITH_SYS_TIME 6920 #ifdef TIME_WITH_SYS_TIME
6854 #include <sys/time.h> 6921 #include <sys/time.h>
6855 #include <time.h> 6922 #include <time.h>
6867 struct timezone dummy; 6934 struct timezone dummy;
6868 gettimeofday (&time, &dummy); 6935 gettimeofday (&time, &dummy);
6869 6936
6870 ; return 0; } 6937 ; return 0; }
6871 EOF 6938 EOF
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6873 rm -rf conftest* 6940 rm -rf conftest*
6874 echo "$ac_t""no" 1>&6 6941 echo "$ac_t""no" 1>&6
6875 else 6942 else
6876 echo "configure: failed program was:" >&5 6943 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5 6944 cat conftest.$ac_ext >&5
6889 rm -f conftest* 6956 rm -f conftest*
6890 fi 6957 fi
6891 6958
6892 6959
6893 echo $ac_n "checking for inline""... $ac_c" 1>&6 6960 echo $ac_n "checking for inline""... $ac_c" 1>&6
6894 echo "configure:6895: checking for inline" >&5 6961 echo "configure:6962: checking for inline" >&5
6895 6962
6896 ac_cv_c_inline=no 6963 ac_cv_c_inline=no
6897 for ac_kw in inline __inline__ __inline; do 6964 for ac_kw in inline __inline__ __inline; do
6898 cat > conftest.$ac_ext <<EOF 6965 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure" 6966 #line 6967 "configure"
6900 #include "confdefs.h" 6967 #include "confdefs.h"
6901 6968
6902 int main() { 6969 int main() {
6903 } $ac_kw foo() { 6970 } $ac_kw foo() {
6904 ; return 0; } 6971 ; return 0; }
6905 EOF 6972 EOF
6906 if { (eval echo configure:6907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6973 if { (eval echo configure:6974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6907 rm -rf conftest* 6974 rm -rf conftest*
6908 ac_cv_c_inline=$ac_kw; break 6975 ac_cv_c_inline=$ac_kw; break
6909 else 6976 else
6910 echo "configure: failed program was:" >&5 6977 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5 6978 cat conftest.$ac_ext >&5
6951 7018
6952 7019
6953 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6954 # for constant arguments. Useless! 7021 # for constant arguments. Useless!
6955 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6956 echo "configure:6957: checking for working alloca.h" >&5 7023 echo "configure:7024: checking for working alloca.h" >&5
6957 7024
6958 cat > conftest.$ac_ext <<EOF 7025 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure" 7026 #line 7027 "configure"
6960 #include "confdefs.h" 7027 #include "confdefs.h"
6961 #include <alloca.h> 7028 #include <alloca.h>
6962 int main() { 7029 int main() {
6963 char *p = alloca(2 * sizeof(int)); 7030 char *p = alloca(2 * sizeof(int));
6964 ; return 0; } 7031 ; return 0; }
6965 EOF 7032 EOF
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7033 if { (eval echo configure:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6967 rm -rf conftest* 7034 rm -rf conftest*
6968 ac_cv_header_alloca_h=yes 7035 ac_cv_header_alloca_h=yes
6969 else 7036 else
6970 echo "configure: failed program was:" >&5 7037 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5 7038 cat conftest.$ac_ext >&5
6985 } 7052 }
6986 7053
6987 fi 7054 fi
6988 7055
6989 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7056 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6990 echo "configure:6991: checking for alloca" >&5 7057 echo "configure:7058: checking for alloca" >&5
6991 7058
6992 cat > conftest.$ac_ext <<EOF 7059 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure" 7060 #line 7061 "configure"
6994 #include "confdefs.h" 7061 #include "confdefs.h"
6995 7062
6996 #ifdef __GNUC__ 7063 #ifdef __GNUC__
6997 # define alloca __builtin_alloca 7064 # define alloca __builtin_alloca
6998 #else 7065 #else
7011 7078
7012 int main() { 7079 int main() {
7013 char *p = (char *) alloca(1); 7080 char *p = (char *) alloca(1);
7014 ; return 0; } 7081 ; return 0; }
7015 EOF 7082 EOF
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7017 rm -rf conftest* 7084 rm -rf conftest*
7018 ac_cv_func_alloca_works=yes 7085 ac_cv_func_alloca_works=yes
7019 else 7086 else
7020 echo "configure: failed program was:" >&5 7087 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5 7088 cat conftest.$ac_ext >&5
7050 EOF 7117 EOF
7051 } 7118 }
7052 7119
7053 7120
7054 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7121 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7055 echo "configure:7056: checking whether alloca needs Cray hooks" >&5 7122 echo "configure:7123: checking whether alloca needs Cray hooks" >&5
7056 7123
7057 cat > conftest.$ac_ext <<EOF 7124 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure" 7125 #line 7126 "configure"
7059 #include "confdefs.h" 7126 #include "confdefs.h"
7060 #if defined(CRAY) && ! defined(CRAY2) 7127 #if defined(CRAY) && ! defined(CRAY2)
7061 webecray 7128 webecray
7062 #else 7129 #else
7063 wenotbecray 7130 wenotbecray
7077 7144
7078 echo "$ac_t""$ac_cv_os_cray" 1>&6 7145 echo "$ac_t""$ac_cv_os_cray" 1>&6
7079 if test $ac_cv_os_cray = yes; then 7146 if test $ac_cv_os_cray = yes; then
7080 for ac_func in _getb67 GETB67 getb67; do 7147 for ac_func in _getb67 GETB67 getb67; do
7081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7082 echo "configure:7083: checking for $ac_func" >&5 7149 echo "configure:7150: checking for $ac_func" >&5
7083 7150
7084 cat > conftest.$ac_ext <<EOF 7151 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure" 7152 #line 7153 "configure"
7086 #include "confdefs.h" 7153 #include "confdefs.h"
7087 /* System header to define __stub macros and hopefully few prototypes, 7154 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func(); below. */ 7155 which can conflict with char $ac_func(); below. */
7089 #include <assert.h> 7156 #include <assert.h>
7090 /* Override any gcc2 internal prototype to avoid an error. */ 7157 /* Override any gcc2 internal prototype to avoid an error. */
7103 $ac_func(); 7170 $ac_func();
7104 #endif 7171 #endif
7105 7172
7106 ; return 0; } 7173 ; return 0; }
7107 EOF 7174 EOF
7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7109 rm -rf conftest* 7176 rm -rf conftest*
7110 eval "ac_cv_func_$ac_func=yes" 7177 eval "ac_cv_func_$ac_func=yes"
7111 else 7178 else
7112 echo "configure: failed program was:" >&5 7179 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5 7180 cat conftest.$ac_ext >&5
7133 7200
7134 done 7201 done
7135 fi 7202 fi
7136 7203
7137 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7204 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7138 echo "configure:7139: checking stack direction for C alloca" >&5 7205 echo "configure:7206: checking stack direction for C alloca" >&5
7139 7206
7140 cat > conftest.$ac_ext <<EOF 7207 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure" 7208 #line 7209 "configure"
7142 #include "confdefs.h" 7209 #include "confdefs.h"
7143 find_stack_direction () 7210 find_stack_direction ()
7144 { 7211 {
7145 static char *addr = 0; 7212 static char *addr = 0;
7146 auto char dummy; 7213 auto char dummy;
7155 main () 7222 main ()
7156 { 7223 {
7157 exit (find_stack_direction() < 0); 7224 exit (find_stack_direction() < 0);
7158 } 7225 }
7159 EOF 7226 EOF
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7161 then 7228 then
7162 ac_cv_c_stack_direction=1 7229 ac_cv_c_stack_direction=1
7163 else 7230 else
7164 echo "configure: failed program was:" >&5 7231 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5 7232 cat conftest.$ac_ext >&5
7182 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then 7249 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
7183 echo " xemacs will be linked with \"$ALLOCA\"" 7250 echo " xemacs will be linked with \"$ALLOCA\""
7184 fi 7251 fi
7185 7252
7186 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 7253 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7187 echo "configure:7188: checking for pid_t" >&5 7254 echo "configure:7255: checking for pid_t" >&5
7188 7255
7189 cat > conftest.$ac_ext <<EOF 7256 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure" 7257 #line 7258 "configure"
7191 #include "confdefs.h" 7258 #include "confdefs.h"
7192 #include <sys/types.h> 7259 #include <sys/types.h>
7193 #if STDC_HEADERS 7260 #if STDC_HEADERS
7194 #include <stdlib.h> 7261 #include <stdlib.h>
7195 #include <stddef.h> 7262 #include <stddef.h>
7217 7284
7218 fi 7285 fi
7219 7286
7220 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7287 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7221 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7288 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7222 echo "configure:7223: checking for vfork.h" >&5 7289 echo "configure:7290: checking for vfork.h" >&5
7223 7290
7224 cat > conftest.$ac_ext <<EOF 7291 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure" 7292 #line 7293 "configure"
7226 #include "confdefs.h" 7293 #include "confdefs.h"
7227 #include <vfork.h> 7294 #include <vfork.h>
7228 EOF 7295 EOF
7229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7230 { (eval echo configure:7231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7297 { (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7231 ac_err=`grep -v '^ *+' conftest.out` 7298 ac_err=`grep -v '^ *+' conftest.out`
7232 if test -z "$ac_err"; then 7299 if test -z "$ac_err"; then
7233 rm -rf conftest* 7300 rm -rf conftest*
7234 eval "ac_cv_header_$ac_safe=yes" 7301 eval "ac_cv_header_$ac_safe=yes"
7235 else 7302 else
7253 else 7320 else
7254 echo "$ac_t""no" 1>&6 7321 echo "$ac_t""no" 1>&6
7255 fi 7322 fi
7256 7323
7257 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7324 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7258 echo "configure:7259: checking for working vfork" >&5 7325 echo "configure:7326: checking for working vfork" >&5
7259 7326
7260 cat > conftest.$ac_ext <<EOF 7327 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure" 7328 #line 7329 "configure"
7262 #include "confdefs.h" 7329 #include "confdefs.h"
7263 /* Thanks to Paul Eggert for this test. */ 7330 /* Thanks to Paul Eggert for this test. */
7264 #include <stdio.h> 7331 #include <stdio.h>
7265 #include <sys/types.h> 7332 #include <sys/types.h>
7266 #include <sys/stat.h> 7333 #include <sys/stat.h>
7351 || fstat(fileno(stdout), &st) != 0 7418 || fstat(fileno(stdout), &st) != 0
7352 ); 7419 );
7353 } 7420 }
7354 } 7421 }
7355 EOF 7422 EOF
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7423 if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7357 then 7424 then
7358 ac_cv_func_vfork_works=yes 7425 ac_cv_func_vfork_works=yes
7359 else 7426 else
7360 echo "configure: failed program was:" >&5 7427 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5 7428 cat conftest.$ac_ext >&5
7376 7443
7377 fi 7444 fi
7378 7445
7379 7446
7380 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 7447 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
7381 echo "configure:7382: checking for working strcoll" >&5 7448 echo "configure:7449: checking for working strcoll" >&5
7382 7449
7383 cat > conftest.$ac_ext <<EOF 7450 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure" 7451 #line 7452 "configure"
7385 #include "confdefs.h" 7452 #include "confdefs.h"
7386 #include <string.h> 7453 #include <string.h>
7387 main () 7454 main ()
7388 { 7455 {
7389 exit (strcoll ("abc", "def") >= 0 || 7456 exit (strcoll ("abc", "def") >= 0 ||
7390 strcoll ("ABC", "DEF") >= 0 || 7457 strcoll ("ABC", "DEF") >= 0 ||
7391 strcoll ("123", "456") >= 0); 7458 strcoll ("123", "456") >= 0);
7392 } 7459 }
7393 EOF 7460 EOF
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7395 then 7462 then
7396 ac_cv_func_strcoll_works=yes 7463 ac_cv_func_strcoll_works=yes
7397 else 7464 else
7398 echo "configure: failed program was:" >&5 7465 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5 7466 cat conftest.$ac_ext >&5
7414 7481
7415 fi 7482 fi
7416 7483
7417 7484
7418 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 7485 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7419 echo "configure:7420: checking for working mmap" >&5 7486 echo "configure:7487: checking for working mmap" >&5
7420 case "$opsys" in ultrix* ) have_mmap=no ;; *) 7487 case "$opsys" in ultrix* ) have_mmap=no ;; *)
7421 cat > conftest.$ac_ext <<EOF 7488 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure" 7489 #line 7490 "configure"
7423 #include "confdefs.h" 7490 #include "confdefs.h"
7424 #include <stdio.h> 7491 #include <stdio.h>
7425 #include <unistd.h> 7492 #include <unistd.h>
7426 #include <fcntl.h> 7493 #include <fcntl.h>
7427 #include <sys/mman.h> 7494 #include <sys/mman.h>
7450 return 0; 7517 return 0;
7451 perror ("conftest: mmap failed"); 7518 perror ("conftest: mmap failed");
7452 return 1; 7519 return 1;
7453 } 7520 }
7454 EOF 7521 EOF
7455 if { (eval echo configure:7456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7456 then 7523 then
7457 have_mmap=yes 7524 have_mmap=yes
7458 else 7525 else
7459 echo "configure: failed program was:" >&5 7526 echo "configure: failed program was:" >&5
7460 cat conftest.$ac_ext >&5 7527 cat conftest.$ac_ext >&5
7483 EOF 7550 EOF
7484 } 7551 }
7485 7552
7486 7553
7487 echo $ac_n "checking for socket""... $ac_c" 1>&6 7554 echo $ac_n "checking for socket""... $ac_c" 1>&6
7488 echo "configure:7489: checking for socket" >&5 7555 echo "configure:7556: checking for socket" >&5
7489 7556
7490 cat > conftest.$ac_ext <<EOF 7557 cat > conftest.$ac_ext <<EOF
7491 #line 7492 "configure" 7558 #line 7559 "configure"
7492 #include "confdefs.h" 7559 #include "confdefs.h"
7493 /* System header to define __stub macros and hopefully few prototypes, 7560 /* System header to define __stub macros and hopefully few prototypes,
7494 which can conflict with char socket(); below. */ 7561 which can conflict with char socket(); below. */
7495 #include <assert.h> 7562 #include <assert.h>
7496 /* Override any gcc2 internal prototype to avoid an error. */ 7563 /* Override any gcc2 internal prototype to avoid an error. */
7509 socket(); 7576 socket();
7510 #endif 7577 #endif
7511 7578
7512 ; return 0; } 7579 ; return 0; }
7513 EOF 7580 EOF
7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7515 rm -rf conftest* 7582 rm -rf conftest*
7516 eval "ac_cv_func_socket=yes" 7583 eval "ac_cv_func_socket=yes"
7517 else 7584 else
7518 echo "configure: failed program was:" >&5 7585 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5 7586 cat conftest.$ac_ext >&5
7524 7591
7525 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 7592 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6 7593 echo "$ac_t""yes" 1>&6
7527 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 7594 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7528 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 7595 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7529 echo "configure:7530: checking for netinet/in.h" >&5 7596 echo "configure:7597: checking for netinet/in.h" >&5
7530 7597
7531 cat > conftest.$ac_ext <<EOF 7598 cat > conftest.$ac_ext <<EOF
7532 #line 7533 "configure" 7599 #line 7600 "configure"
7533 #include "confdefs.h" 7600 #include "confdefs.h"
7534 #include <netinet/in.h> 7601 #include <netinet/in.h>
7535 EOF 7602 EOF
7536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7537 { (eval echo configure:7538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7604 { (eval echo configure:7605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7538 ac_err=`grep -v '^ *+' conftest.out` 7605 ac_err=`grep -v '^ *+' conftest.out`
7539 if test -z "$ac_err"; then 7606 if test -z "$ac_err"; then
7540 rm -rf conftest* 7607 rm -rf conftest*
7541 eval "ac_cv_header_$ac_safe=yes" 7608 eval "ac_cv_header_$ac_safe=yes"
7542 else 7609 else
7549 rm -f conftest* 7616 rm -f conftest*
7550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6 7618 echo "$ac_t""yes" 1>&6
7552 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 7619 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
7553 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 7620 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
7554 echo "configure:7555: checking for arpa/inet.h" >&5 7621 echo "configure:7622: checking for arpa/inet.h" >&5
7555 7622
7556 cat > conftest.$ac_ext <<EOF 7623 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure" 7624 #line 7625 "configure"
7558 #include "confdefs.h" 7625 #include "confdefs.h"
7559 #include <arpa/inet.h> 7626 #include <arpa/inet.h>
7560 EOF 7627 EOF
7561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7562 { (eval echo configure:7563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7629 { (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7563 ac_err=`grep -v '^ *+' conftest.out` 7630 ac_err=`grep -v '^ *+' conftest.out`
7564 if test -z "$ac_err"; then 7631 if test -z "$ac_err"; then
7565 rm -rf conftest* 7632 rm -rf conftest*
7566 eval "ac_cv_header_$ac_safe=yes" 7633 eval "ac_cv_header_$ac_safe=yes"
7567 else 7634 else
7582 #define HAVE_SOCKETS 1 7649 #define HAVE_SOCKETS 1
7583 EOF 7650 EOF
7584 } 7651 }
7585 7652
7586 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 7653 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
7587 echo "configure:7588: checking "for sun_len member in struct sockaddr_un"" >&5 7654 echo "configure:7655: checking "for sun_len member in struct sockaddr_un"" >&5
7588 cat > conftest.$ac_ext <<EOF 7655 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure" 7656 #line 7657 "configure"
7590 #include "confdefs.h" 7657 #include "confdefs.h"
7591 7658
7592 #include <sys/types.h> 7659 #include <sys/types.h>
7593 #include <sys/socket.h> 7660 #include <sys/socket.h>
7594 #include <sys/un.h> 7661 #include <sys/un.h>
7595 7662
7596 int main() { 7663 int main() {
7597 static struct sockaddr_un x; x.sun_len = 1; 7664 static struct sockaddr_un x; x.sun_len = 1;
7598 ; return 0; } 7665 ; return 0; }
7599 EOF 7666 EOF
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7601 rm -rf conftest* 7668 rm -rf conftest*
7602 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 7669 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
7603 Defining HAVE_SOCKADDR_SUN_LEN 7670 Defining HAVE_SOCKADDR_SUN_LEN
7604 EOF 7671 EOF
7605 cat >> confdefs.h <<\EOF 7672 cat >> confdefs.h <<\EOF
7626 echo "$ac_t""no" 1>&6 7693 echo "$ac_t""no" 1>&6
7627 fi 7694 fi
7628 7695
7629 7696
7630 echo $ac_n "checking for msgget""... $ac_c" 1>&6 7697 echo $ac_n "checking for msgget""... $ac_c" 1>&6
7631 echo "configure:7632: checking for msgget" >&5 7698 echo "configure:7699: checking for msgget" >&5
7632 7699
7633 cat > conftest.$ac_ext <<EOF 7700 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure" 7701 #line 7702 "configure"
7635 #include "confdefs.h" 7702 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes, 7703 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char msgget(); below. */ 7704 which can conflict with char msgget(); below. */
7638 #include <assert.h> 7705 #include <assert.h>
7639 /* Override any gcc2 internal prototype to avoid an error. */ 7706 /* Override any gcc2 internal prototype to avoid an error. */
7652 msgget(); 7719 msgget();
7653 #endif 7720 #endif
7654 7721
7655 ; return 0; } 7722 ; return 0; }
7656 EOF 7723 EOF
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7658 rm -rf conftest* 7725 rm -rf conftest*
7659 eval "ac_cv_func_msgget=yes" 7726 eval "ac_cv_func_msgget=yes"
7660 else 7727 else
7661 echo "configure: failed program was:" >&5 7728 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5 7729 cat conftest.$ac_ext >&5
7667 7734
7668 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 7735 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6 7736 echo "$ac_t""yes" 1>&6
7670 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 7737 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
7671 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 7738 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
7672 echo "configure:7673: checking for sys/ipc.h" >&5 7739 echo "configure:7740: checking for sys/ipc.h" >&5
7673 7740
7674 cat > conftest.$ac_ext <<EOF 7741 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure" 7742 #line 7743 "configure"
7676 #include "confdefs.h" 7743 #include "confdefs.h"
7677 #include <sys/ipc.h> 7744 #include <sys/ipc.h>
7678 EOF 7745 EOF
7679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7680 { (eval echo configure:7681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7681 ac_err=`grep -v '^ *+' conftest.out` 7748 ac_err=`grep -v '^ *+' conftest.out`
7682 if test -z "$ac_err"; then 7749 if test -z "$ac_err"; then
7683 rm -rf conftest* 7750 rm -rf conftest*
7684 eval "ac_cv_header_$ac_safe=yes" 7751 eval "ac_cv_header_$ac_safe=yes"
7685 else 7752 else
7692 rm -f conftest* 7759 rm -f conftest*
7693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7694 echo "$ac_t""yes" 1>&6 7761 echo "$ac_t""yes" 1>&6
7695 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 7762 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
7696 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 7763 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
7697 echo "configure:7698: checking for sys/msg.h" >&5 7764 echo "configure:7765: checking for sys/msg.h" >&5
7698 7765
7699 cat > conftest.$ac_ext <<EOF 7766 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure" 7767 #line 7768 "configure"
7701 #include "confdefs.h" 7768 #include "confdefs.h"
7702 #include <sys/msg.h> 7769 #include <sys/msg.h>
7703 EOF 7770 EOF
7704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7705 { (eval echo configure:7706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7772 { (eval echo configure:7773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7706 ac_err=`grep -v '^ *+' conftest.out` 7773 ac_err=`grep -v '^ *+' conftest.out`
7707 if test -z "$ac_err"; then 7774 if test -z "$ac_err"; then
7708 rm -rf conftest* 7775 rm -rf conftest*
7709 eval "ac_cv_header_$ac_safe=yes" 7776 eval "ac_cv_header_$ac_safe=yes"
7710 else 7777 else
7738 fi 7805 fi
7739 7806
7740 7807
7741 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 7808 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
7742 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 7809 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
7743 echo "configure:7744: checking for dirent.h" >&5 7810 echo "configure:7811: checking for dirent.h" >&5
7744 7811
7745 cat > conftest.$ac_ext <<EOF 7812 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure" 7813 #line 7814 "configure"
7747 #include "confdefs.h" 7814 #include "confdefs.h"
7748 #include <dirent.h> 7815 #include <dirent.h>
7749 EOF 7816 EOF
7750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7751 { (eval echo configure:7752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7818 { (eval echo configure:7819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7752 ac_err=`grep -v '^ *+' conftest.out` 7819 ac_err=`grep -v '^ *+' conftest.out`
7753 if test -z "$ac_err"; then 7820 if test -z "$ac_err"; then
7754 rm -rf conftest* 7821 rm -rf conftest*
7755 eval "ac_cv_header_$ac_safe=yes" 7822 eval "ac_cv_header_$ac_safe=yes"
7756 else 7823 else
7773 7840
7774 else 7841 else
7775 echo "$ac_t""no" 1>&6 7842 echo "$ac_t""no" 1>&6
7776 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 7843 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
7777 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 7844 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
7778 echo "configure:7779: checking for sys/dir.h" >&5 7845 echo "configure:7846: checking for sys/dir.h" >&5
7779 7846
7780 cat > conftest.$ac_ext <<EOF 7847 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure" 7848 #line 7849 "configure"
7782 #include "confdefs.h" 7849 #include "confdefs.h"
7783 #include <sys/dir.h> 7850 #include <sys/dir.h>
7784 EOF 7851 EOF
7785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7786 { (eval echo configure:7787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7853 { (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7787 ac_err=`grep -v '^ *+' conftest.out` 7854 ac_err=`grep -v '^ *+' conftest.out`
7788 if test -z "$ac_err"; then 7855 if test -z "$ac_err"; then
7789 rm -rf conftest* 7856 rm -rf conftest*
7790 eval "ac_cv_header_$ac_safe=yes" 7857 eval "ac_cv_header_$ac_safe=yes"
7791 else 7858 else
7814 fi 7881 fi
7815 7882
7816 7883
7817 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 7884 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
7818 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 7885 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
7819 echo "configure:7820: checking for nlist.h" >&5 7886 echo "configure:7887: checking for nlist.h" >&5
7820 7887
7821 cat > conftest.$ac_ext <<EOF 7888 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure" 7889 #line 7890 "configure"
7823 #include "confdefs.h" 7890 #include "confdefs.h"
7824 #include <nlist.h> 7891 #include <nlist.h>
7825 EOF 7892 EOF
7826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7827 { (eval echo configure:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7894 { (eval echo configure:7895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7828 ac_err=`grep -v '^ *+' conftest.out` 7895 ac_err=`grep -v '^ *+' conftest.out`
7829 if test -z "$ac_err"; then 7896 if test -z "$ac_err"; then
7830 rm -rf conftest* 7897 rm -rf conftest*
7831 eval "ac_cv_header_$ac_safe=yes" 7898 eval "ac_cv_header_$ac_safe=yes"
7832 else 7899 else
7860 #define AIX_SMT_EXP -bI:$f 7927 #define AIX_SMT_EXP -bI:$f
7861 EOF 7928 EOF
7862 } 7929 }
7863 break; fi 7930 break; fi
7864 done 7931 done
7865
7866 CFLAGS="$REAL_CFLAGS"
7867 7932
7868 file="$srcdir/lisp/version.el" 7933 file="$srcdir/lisp/version.el"
7869 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"` 7934 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
7870 if test -z "$version"; then 7935 if test -z "$version"; then
7871 echo "$progname: can't find current emacs version in \"$file\"." >&2 7936 echo "$progname: can't find current emacs version in \"$file\"." >&2
7872 exit 1 7937 exit 1
7873 fi 7938 fi
7874 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"` 7939 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"`
7875 test -n "$beta" && version="${version}-b${beta}" 7940 test -n "$beta" && version="${version}-b${beta}"
7876 { test "$extra_verbose" = "yes" && cat << EOF 7941 { test "$extra_verbose" = "yes" && cat << EOF
7877 Defining EMACS_VERSION = $version 7942 Defining EMACS_VERSION = "$version"
7878 EOF 7943 EOF
7879 cat >> confdefs.h <<EOF 7944 cat >> confdefs.h <<EOF
7880 #define EMACS_VERSION $version 7945 #define EMACS_VERSION "$version"
7881 EOF 7946 EOF
7882 } 7947 }
7883 7948
7884 main_1_id="`echo main_1_xemacs_${version}_${canonical} | sed 'y/.-/__/'`" 7949 main_1_id="`echo main_1_xemacs_${version}_${canonical} | sed 'y/.-/__/'`"
7885 { test "$extra_verbose" = "yes" && cat << EOF 7950 { test "$extra_verbose" = "yes" && cat << EOF
7892 7957
7893 7958
7894 7959
7895 7960
7896 echo "checking "for sound support"" 1>&6 7961 echo "checking "for sound support"" 1>&6
7897 echo "configure:7898: checking "for sound support"" >&5 7962 echo "configure:7963: checking "for sound support"" >&5
7898 case "$with_sound" in 7963 case "$with_sound" in
7899 native | both ) with_native_sound=yes;; 7964 native | both ) with_native_sound=yes;;
7900 nas | no ) with_native_sound=no;; 7965 nas | no ) with_native_sound=no;;
7901 esac 7966 esac
7902 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 7967 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
7903 7968
7904 if test "$with_native_sound" != "no"; then 7969 if test "$with_native_sound" != "no"; then
7905 if test -n "$native_sound_lib"; then 7970 if test -n "$native_sound_lib"; then
7906 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 7971 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
7907 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 7972 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
7908 echo "configure:7909: checking for multimedia/audio_device.h" >&5 7973 echo "configure:7974: checking for multimedia/audio_device.h" >&5
7909 7974
7910 cat > conftest.$ac_ext <<EOF 7975 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure" 7976 #line 7977 "configure"
7912 #include "confdefs.h" 7977 #include "confdefs.h"
7913 #include <multimedia/audio_device.h> 7978 #include <multimedia/audio_device.h>
7914 EOF 7979 EOF
7915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7916 { (eval echo configure:7917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7917 ac_err=`grep -v '^ *+' conftest.out` 7982 ac_err=`grep -v '^ *+' conftest.out`
7918 if test -z "$ac_err"; then 7983 if test -z "$ac_err"; then
7919 rm -rf conftest* 7984 rm -rf conftest*
7920 eval "ac_cv_header_$ac_safe=yes" 7985 eval "ac_cv_header_$ac_safe=yes"
7921 else 7986 else
7959 case "$canonical" in 8024 case "$canonical" in
7960 *-sgi-* ) 8025 *-sgi-* )
7961 if test -z "$native_sound_lib"; then 8026 if test -z "$native_sound_lib"; then
7962 8027
7963 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8028 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
7964 echo "configure:7965: checking for ALopenport in -laudio" >&5 8029 echo "configure:8030: checking for ALopenport in -laudio" >&5
7965 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8030 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
7966 8031
7967 xe_check_libs=" -laudio " 8032 xe_check_libs=" -laudio "
7968 cat > conftest.$ac_ext <<EOF 8033 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure" 8034 #line 8035 "configure"
7970 #include "confdefs.h" 8035 #include "confdefs.h"
7971 /* Override any gcc2 internal prototype to avoid an error. */ 8036 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2 8037 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */ 8038 builtin and then its argument prototype would still apply. */
7974 char ALopenport(); 8039 char ALopenport();
7975 8040
7976 int main() { 8041 int main() {
7977 ALopenport() 8042 ALopenport()
7978 ; return 0; } 8043 ; return 0; }
7979 EOF 8044 EOF
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7981 rm -rf conftest* 8046 rm -rf conftest*
7982 eval "ac_cv_lib_$ac_lib_var=yes" 8047 eval "ac_cv_lib_$ac_lib_var=yes"
7983 else 8048 else
7984 echo "configure: failed program was:" >&5 8049 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5 8050 cat conftest.$ac_ext >&5
8006 fi ;; 8071 fi ;;
8007 hppa*-hp-hpux* ) 8072 hppa*-hp-hpux* )
8008 if test -z "$native_sound_lib"; then 8073 if test -z "$native_sound_lib"; then
8009 8074
8010 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8075 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8011 echo "configure:8012: checking for AOpenAudio in -lAlib" >&5 8076 echo "configure:8077: checking for AOpenAudio in -lAlib" >&5
8012 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8077 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8013 8078
8014 xe_check_libs=" -lAlib " 8079 xe_check_libs=" -lAlib "
8015 cat > conftest.$ac_ext <<EOF 8080 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure" 8081 #line 8082 "configure"
8017 #include "confdefs.h" 8082 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */ 8083 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2 8084 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */ 8085 builtin and then its argument prototype would still apply. */
8021 char AOpenAudio(); 8086 char AOpenAudio();
8022 8087
8023 int main() { 8088 int main() {
8024 AOpenAudio() 8089 AOpenAudio()
8025 ; return 0; } 8090 ; return 0; }
8026 EOF 8091 EOF
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8028 rm -rf conftest* 8093 rm -rf conftest*
8029 eval "ac_cv_lib_$ac_lib_var=yes" 8094 eval "ac_cv_lib_$ac_lib_var=yes"
8030 else 8095 else
8031 echo "configure: failed program was:" >&5 8096 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5 8097 cat conftest.$ac_ext >&5
8060 8125
8061 if test -z "$sound_found"; then 8126 if test -z "$sound_found"; then
8062 for dir in "machine" "sys" "linux"; do 8127 for dir in "machine" "sys" "linux"; do
8063 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 8128 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8064 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 8129 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8065 echo "configure:8066: checking for ${dir}/soundcard.h" >&5 8130 echo "configure:8131: checking for ${dir}/soundcard.h" >&5
8066 8131
8067 cat > conftest.$ac_ext <<EOF 8132 cat > conftest.$ac_ext <<EOF
8068 #line 8069 "configure" 8133 #line 8134 "configure"
8069 #include "confdefs.h" 8134 #include "confdefs.h"
8070 #include <${dir}/soundcard.h> 8135 #include <${dir}/soundcard.h>
8071 EOF 8136 EOF
8072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8073 { (eval echo configure:8074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8138 { (eval echo configure:8139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8074 ac_err=`grep -v '^ *+' conftest.out` 8139 ac_err=`grep -v '^ *+' conftest.out`
8075 if test -z "$ac_err"; then 8140 if test -z "$ac_err"; then
8076 rm -rf conftest* 8141 rm -rf conftest*
8077 eval "ac_cv_header_$ac_safe=yes" 8142 eval "ac_cv_header_$ac_safe=yes"
8078 else 8143 else
8138 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 8203 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
8139 echo " xemacs will be linked with \"nas.o\"" 8204 echo " xemacs will be linked with \"nas.o\""
8140 fi 8205 fi
8141 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 8206 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
8142 cat > conftest.$ac_ext <<EOF 8207 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure" 8208 #line 8209 "configure"
8144 #include "confdefs.h" 8209 #include "confdefs.h"
8145 #include <audio/Xtutil.h> 8210 #include <audio/Xtutil.h>
8146 EOF 8211 EOF
8147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8148 egrep "AuXtErrorJump" >/dev/null 2>&1; then 8213 egrep "AuXtErrorJump" >/dev/null 2>&1; then
8165 8230
8166 test -z "$with_tty" && with_tty=yes 8231 test -z "$with_tty" && with_tty=yes
8167 8232
8168 if test "$with_tty" = "yes" ; then 8233 if test "$with_tty" = "yes" ; then
8169 echo "checking for TTY-related features" 1>&6 8234 echo "checking for TTY-related features" 1>&6
8170 echo "configure:8171: checking for TTY-related features" >&5 8235 echo "configure:8236: checking for TTY-related features" >&5
8171 { test "$extra_verbose" = "yes" && cat << \EOF 8236 { test "$extra_verbose" = "yes" && cat << \EOF
8172 Defining HAVE_TTY 8237 Defining HAVE_TTY
8173 EOF 8238 EOF
8174 cat >> confdefs.h <<\EOF 8239 cat >> confdefs.h <<\EOF
8175 #define HAVE_TTY 1 8240 #define HAVE_TTY 1
8180 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\"" 8245 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
8181 fi 8246 fi
8182 8247
8183 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8248 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8184 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8249 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8185 echo "configure:8186: checking for termios.h" >&5 8250 echo "configure:8251: checking for termios.h" >&5
8186 8251
8187 cat > conftest.$ac_ext <<EOF 8252 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure" 8253 #line 8254 "configure"
8189 #include "confdefs.h" 8254 #include "confdefs.h"
8190 #include <termios.h> 8255 #include <termios.h>
8191 EOF 8256 EOF
8192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8193 { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8258 { (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8194 ac_err=`grep -v '^ *+' conftest.out` 8259 ac_err=`grep -v '^ *+' conftest.out`
8195 if test -z "$ac_err"; then 8260 if test -z "$ac_err"; then
8196 rm -rf conftest* 8261 rm -rf conftest*
8197 eval "ac_cv_header_$ac_safe=yes" 8262 eval "ac_cv_header_$ac_safe=yes"
8198 else 8263 else
8215 8280
8216 else 8281 else
8217 echo "$ac_t""no" 1>&6 8282 echo "$ac_t""no" 1>&6
8218 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8283 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8219 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8284 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8220 echo "configure:8221: checking for termio.h" >&5 8285 echo "configure:8286: checking for termio.h" >&5
8221 8286
8222 cat > conftest.$ac_ext <<EOF 8287 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure" 8288 #line 8289 "configure"
8224 #include "confdefs.h" 8289 #include "confdefs.h"
8225 #include <termio.h> 8290 #include <termio.h>
8226 EOF 8291 EOF
8227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8228 { (eval echo configure:8229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8293 { (eval echo configure:8294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8229 ac_err=`grep -v '^ *+' conftest.out` 8294 ac_err=`grep -v '^ *+' conftest.out`
8230 if test -z "$ac_err"; then 8295 if test -z "$ac_err"; then
8231 rm -rf conftest* 8296 rm -rf conftest*
8232 eval "ac_cv_header_$ac_safe=yes" 8297 eval "ac_cv_header_$ac_safe=yes"
8233 else 8298 else
8256 8321
8257 8322
8258 if test -z "$with_ncurses"; then 8323 if test -z "$with_ncurses"; then
8259 8324
8260 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 8325 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8261 echo "configure:8262: checking for tgetent in -lncurses" >&5 8326 echo "configure:8327: checking for tgetent in -lncurses" >&5
8262 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 8327 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8263 8328
8264 xe_check_libs=" -lncurses " 8329 xe_check_libs=" -lncurses "
8265 cat > conftest.$ac_ext <<EOF 8330 cat > conftest.$ac_ext <<EOF
8266 #line 8267 "configure" 8331 #line 8332 "configure"
8267 #include "confdefs.h" 8332 #include "confdefs.h"
8268 /* Override any gcc2 internal prototype to avoid an error. */ 8333 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2 8334 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */ 8335 builtin and then its argument prototype would still apply. */
8271 char tgetent(); 8336 char tgetent();
8272 8337
8273 int main() { 8338 int main() {
8274 tgetent() 8339 tgetent()
8275 ; return 0; } 8340 ; return 0; }
8276 EOF 8341 EOF
8277 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8342 if { (eval echo configure:8343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8278 rm -rf conftest* 8343 rm -rf conftest*
8279 eval "ac_cv_lib_$ac_lib_var=yes" 8344 eval "ac_cv_lib_$ac_lib_var=yes"
8280 else 8345 else
8281 echo "configure: failed program was:" >&5 8346 echo "configure: failed program was:" >&5
8282 cat conftest.$ac_ext >&5 8347 cat conftest.$ac_ext >&5
8305 EOF 8370 EOF
8306 } 8371 }
8307 8372
8308 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8373 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8374 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8310 echo "configure:8311: checking for ncurses/curses.h" >&5 8375 echo "configure:8376: checking for ncurses/curses.h" >&5
8311 8376
8312 cat > conftest.$ac_ext <<EOF 8377 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure" 8378 #line 8379 "configure"
8314 #include "confdefs.h" 8379 #include "confdefs.h"
8315 #include <ncurses/curses.h> 8380 #include <ncurses/curses.h>
8316 EOF 8381 EOF
8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8383 { (eval echo configure:8384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8319 ac_err=`grep -v '^ *+' conftest.out` 8384 ac_err=`grep -v '^ *+' conftest.out`
8320 if test -z "$ac_err"; then 8385 if test -z "$ac_err"; then
8321 rm -rf conftest* 8386 rm -rf conftest*
8322 eval "ac_cv_header_$ac_safe=yes" 8387 eval "ac_cv_header_$ac_safe=yes"
8323 else 8388 else
8335 echo "$ac_t""no" 1>&6 8400 echo "$ac_t""no" 1>&6
8336 fi 8401 fi
8337 8402
8338 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 8403 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
8339 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 8404 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
8340 echo "configure:8341: checking for ncurses/term.h" >&5 8405 echo "configure:8406: checking for ncurses/term.h" >&5
8341 8406
8342 cat > conftest.$ac_ext <<EOF 8407 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure" 8408 #line 8409 "configure"
8344 #include "confdefs.h" 8409 #include "confdefs.h"
8345 #include <ncurses/term.h> 8410 #include <ncurses/term.h>
8346 EOF 8411 EOF
8347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8348 { (eval echo configure:8349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8413 { (eval echo configure:8414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8349 ac_err=`grep -v '^ *+' conftest.out` 8414 ac_err=`grep -v '^ *+' conftest.out`
8350 if test -z "$ac_err"; then 8415 if test -z "$ac_err"; then
8351 rm -rf conftest* 8416 rm -rf conftest*
8352 eval "ac_cv_header_$ac_safe=yes" 8417 eval "ac_cv_header_$ac_safe=yes"
8353 else 8418 else
8373 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 8438 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
8374 save_c_switch_site="$c_switch_site" 8439 save_c_switch_site="$c_switch_site"
8375 c_switch_site="$c_switch_site -I/usr/include/ncurses" 8440 c_switch_site="$c_switch_site -I/usr/include/ncurses"
8376 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8441 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8377 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8442 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8378 echo "configure:8379: checking for ncurses/curses.h" >&5 8443 echo "configure:8444: checking for ncurses/curses.h" >&5
8379 8444
8380 cat > conftest.$ac_ext <<EOF 8445 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure" 8446 #line 8447 "configure"
8382 #include "confdefs.h" 8447 #include "confdefs.h"
8383 #include <ncurses/curses.h> 8448 #include <ncurses/curses.h>
8384 EOF 8449 EOF
8385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8386 { (eval echo configure:8387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8451 { (eval echo configure:8452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8387 ac_err=`grep -v '^ *+' conftest.out` 8452 ac_err=`grep -v '^ *+' conftest.out`
8388 if test -z "$ac_err"; then 8453 if test -z "$ac_err"; then
8389 rm -rf conftest* 8454 rm -rf conftest*
8390 eval "ac_cv_header_$ac_safe=yes" 8455 eval "ac_cv_header_$ac_safe=yes"
8391 else 8456 else
8416 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8481 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8417 else 8482 else
8418 for lib in curses termlib termcap; do 8483 for lib in curses termlib termcap; do
8419 8484
8420 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 8485 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
8421 echo "configure:8422: checking for tgetent in -l$lib" >&5 8486 echo "configure:8487: checking for tgetent in -l$lib" >&5
8422 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 8487 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
8423 8488
8424 xe_check_libs=" -l$lib " 8489 xe_check_libs=" -l$lib "
8425 cat > conftest.$ac_ext <<EOF 8490 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure" 8491 #line 8492 "configure"
8427 #include "confdefs.h" 8492 #include "confdefs.h"
8428 /* Override any gcc2 internal prototype to avoid an error. */ 8493 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2 8494 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */ 8495 builtin and then its argument prototype would still apply. */
8431 char tgetent(); 8496 char tgetent();
8432 8497
8433 int main() { 8498 int main() {
8434 tgetent() 8499 tgetent()
8435 ; return 0; } 8500 ; return 0; }
8436 EOF 8501 EOF
8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8502 if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8438 rm -rf conftest* 8503 rm -rf conftest*
8439 eval "ac_cv_lib_$ac_lib_var=yes" 8504 eval "ac_cv_lib_$ac_lib_var=yes"
8440 else 8505 else
8441 echo "configure: failed program was:" >&5 8506 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5 8507 cat conftest.$ac_ext >&5
8463 if test -n "$libs_termcap"; then 8528 if test -n "$libs_termcap"; then
8464 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8529 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8465 else 8530 else
8466 8531
8467 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 8532 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
8468 echo "configure:8469: checking for tgetent in -lcurses" >&5 8533 echo "configure:8534: checking for tgetent in -lcurses" >&5
8469 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 8534 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
8470 8535
8471 xe_check_libs=" -lcurses " 8536 xe_check_libs=" -lcurses "
8472 cat > conftest.$ac_ext <<EOF 8537 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure" 8538 #line 8539 "configure"
8474 #include "confdefs.h" 8539 #include "confdefs.h"
8475 /* Override any gcc2 internal prototype to avoid an error. */ 8540 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2 8541 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */ 8542 builtin and then its argument prototype would still apply. */
8478 char tgetent(); 8543 char tgetent();
8479 8544
8480 int main() { 8545 int main() {
8481 tgetent() 8546 tgetent()
8482 ; return 0; } 8547 ; return 0; }
8483 EOF 8548 EOF
8484 if { (eval echo configure:8485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8485 rm -rf conftest* 8550 rm -rf conftest*
8486 eval "ac_cv_lib_$ac_lib_var=yes" 8551 eval "ac_cv_lib_$ac_lib_var=yes"
8487 else 8552 else
8488 echo "configure: failed program was:" >&5 8553 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5 8554 cat conftest.$ac_ext >&5
8497 echo "$ac_t""yes" 1>&6 8562 echo "$ac_t""yes" 1>&6
8498 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 8563 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
8499 else 8564 else
8500 echo "$ac_t""no" 1>&6 8565 echo "$ac_t""no" 1>&6
8501 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 8566 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
8502 echo "configure:8503: checking for tgetent in -ltermcap" >&5 8567 echo "configure:8568: checking for tgetent in -ltermcap" >&5
8503 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 8568 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
8504 8569
8505 xe_check_libs=" -ltermcap " 8570 xe_check_libs=" -ltermcap "
8506 cat > conftest.$ac_ext <<EOF 8571 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure" 8572 #line 8573 "configure"
8508 #include "confdefs.h" 8573 #include "confdefs.h"
8509 /* Override any gcc2 internal prototype to avoid an error. */ 8574 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2 8575 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */ 8576 builtin and then its argument prototype would still apply. */
8512 char tgetent(); 8577 char tgetent();
8513 8578
8514 int main() { 8579 int main() {
8515 tgetent() 8580 tgetent()
8516 ; return 0; } 8581 ; return 0; }
8517 EOF 8582 EOF
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8519 rm -rf conftest* 8584 rm -rf conftest*
8520 eval "ac_cv_lib_$ac_lib_var=yes" 8585 eval "ac_cv_lib_$ac_lib_var=yes"
8521 else 8586 else
8522 echo "configure: failed program was:" >&5 8587 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5 8588 cat conftest.$ac_ext >&5
8561 } 8626 }
8562 8627
8563 8628
8564 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 8629 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
8565 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 8630 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
8566 echo "configure:8567: checking for gpm.h" >&5 8631 echo "configure:8632: checking for gpm.h" >&5
8567 8632
8568 cat > conftest.$ac_ext <<EOF 8633 cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure" 8634 #line 8635 "configure"
8570 #include "confdefs.h" 8635 #include "confdefs.h"
8571 #include <gpm.h> 8636 #include <gpm.h>
8572 EOF 8637 EOF
8573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8574 { (eval echo configure:8575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8639 { (eval echo configure:8640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8575 ac_err=`grep -v '^ *+' conftest.out` 8640 ac_err=`grep -v '^ *+' conftest.out`
8576 if test -z "$ac_err"; then 8641 if test -z "$ac_err"; then
8577 rm -rf conftest* 8642 rm -rf conftest*
8578 eval "ac_cv_header_$ac_safe=yes" 8643 eval "ac_cv_header_$ac_safe=yes"
8579 else 8644 else
8592 with_gpm=no 8657 with_gpm=no
8593 fi 8658 fi
8594 } 8659 }
8595 test -z "$with_gpm" && { 8660 test -z "$with_gpm" && {
8596 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 8661 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
8597 echo "configure:8598: checking for Gpm_Open in -lgpm" >&5 8662 echo "configure:8663: checking for Gpm_Open in -lgpm" >&5
8598 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 8663 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
8599 8664
8600 xe_check_libs=" -lgpm " 8665 xe_check_libs=" -lgpm "
8601 cat > conftest.$ac_ext <<EOF 8666 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure" 8667 #line 8668 "configure"
8603 #include "confdefs.h" 8668 #include "confdefs.h"
8604 /* Override any gcc2 internal prototype to avoid an error. */ 8669 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2 8670 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */ 8671 builtin and then its argument prototype would still apply. */
8607 char Gpm_Open(); 8672 char Gpm_Open();
8608 8673
8609 int main() { 8674 int main() {
8610 Gpm_Open() 8675 Gpm_Open()
8611 ; return 0; } 8676 ; return 0; }
8612 EOF 8677 EOF
8613 if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8614 rm -rf conftest* 8679 rm -rf conftest*
8615 eval "ac_cv_lib_$ac_lib_var=yes" 8680 eval "ac_cv_lib_$ac_lib_var=yes"
8616 else 8681 else
8617 echo "configure: failed program was:" >&5 8682 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5 8683 cat conftest.$ac_ext >&5
8653 eval "with_${feature}=no" 8718 eval "with_${feature}=no"
8654 done 8719 done
8655 fi 8720 fi
8656 8721
8657 echo "checking for database support" 1>&6 8722 echo "checking for database support" 1>&6
8658 echo "configure:8659: checking for database support" >&5 8723 echo "configure:8724: checking for database support" >&5
8659 8724
8660 if test "$with_database_gnudbm" != "no"; then 8725 if test "$with_database_gnudbm" != "no"; then
8661 8726
8662 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 8727 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
8663 echo "configure:8664: checking for dbm_open in -lgdbm" >&5 8728 echo "configure:8729: checking for dbm_open in -lgdbm" >&5
8664 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 8729 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
8665 8730
8666 xe_check_libs=" -lgdbm " 8731 xe_check_libs=" -lgdbm "
8667 cat > conftest.$ac_ext <<EOF 8732 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure" 8733 #line 8734 "configure"
8669 #include "confdefs.h" 8734 #include "confdefs.h"
8670 /* Override any gcc2 internal prototype to avoid an error. */ 8735 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2 8736 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */ 8737 builtin and then its argument prototype would still apply. */
8673 char dbm_open(); 8738 char dbm_open();
8674 8739
8675 int main() { 8740 int main() {
8676 dbm_open() 8741 dbm_open()
8677 ; return 0; } 8742 ; return 0; }
8678 EOF 8743 EOF
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8744 if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8680 rm -rf conftest* 8745 rm -rf conftest*
8681 eval "ac_cv_lib_$ac_lib_var=yes" 8746 eval "ac_cv_lib_$ac_lib_var=yes"
8682 else 8747 else
8683 echo "configure: failed program was:" >&5 8748 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5 8749 cat conftest.$ac_ext >&5
8696 fi 8761 fi
8697 8762
8698 8763
8699 if test "$with_database_gnudbm" != "yes"; then 8764 if test "$with_database_gnudbm" != "yes"; then
8700 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 8765 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8701 echo "configure:8702: checking for dbm_open" >&5 8766 echo "configure:8767: checking for dbm_open" >&5
8702 8767
8703 cat > conftest.$ac_ext <<EOF 8768 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure" 8769 #line 8770 "configure"
8705 #include "confdefs.h" 8770 #include "confdefs.h"
8706 /* System header to define __stub macros and hopefully few prototypes, 8771 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char dbm_open(); below. */ 8772 which can conflict with char dbm_open(); below. */
8708 #include <assert.h> 8773 #include <assert.h>
8709 /* Override any gcc2 internal prototype to avoid an error. */ 8774 /* Override any gcc2 internal prototype to avoid an error. */
8722 dbm_open(); 8787 dbm_open();
8723 #endif 8788 #endif
8724 8789
8725 ; return 0; } 8790 ; return 0; }
8726 EOF 8791 EOF
8727 if { (eval echo configure:8728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8728 rm -rf conftest* 8793 rm -rf conftest*
8729 eval "ac_cv_func_dbm_open=yes" 8794 eval "ac_cv_func_dbm_open=yes"
8730 else 8795 else
8731 echo "configure: failed program was:" >&5 8796 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5 8797 cat conftest.$ac_ext >&5
8758 fi 8823 fi
8759 fi 8824 fi
8760 8825
8761 if test "$with_database_dbm" != "no"; then 8826 if test "$with_database_dbm" != "no"; then
8762 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 8827 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8763 echo "configure:8764: checking for dbm_open" >&5 8828 echo "configure:8829: checking for dbm_open" >&5
8764 8829
8765 cat > conftest.$ac_ext <<EOF 8830 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure" 8831 #line 8832 "configure"
8767 #include "confdefs.h" 8832 #include "confdefs.h"
8768 /* System header to define __stub macros and hopefully few prototypes, 8833 /* System header to define __stub macros and hopefully few prototypes,
8769 which can conflict with char dbm_open(); below. */ 8834 which can conflict with char dbm_open(); below. */
8770 #include <assert.h> 8835 #include <assert.h>
8771 /* Override any gcc2 internal prototype to avoid an error. */ 8836 /* Override any gcc2 internal prototype to avoid an error. */
8784 dbm_open(); 8849 dbm_open();
8785 #endif 8850 #endif
8786 8851
8787 ; return 0; } 8852 ; return 0; }
8788 EOF 8853 EOF
8789 if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8854 if { (eval echo configure:8855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8790 rm -rf conftest* 8855 rm -rf conftest*
8791 eval "ac_cv_func_dbm_open=yes" 8856 eval "ac_cv_func_dbm_open=yes"
8792 else 8857 else
8793 echo "configure: failed program was:" >&5 8858 echo "configure: failed program was:" >&5
8794 cat conftest.$ac_ext >&5 8859 cat conftest.$ac_ext >&5
8805 fi 8870 fi
8806 8871
8807 if test "$need_libdbm" != "no"; then 8872 if test "$need_libdbm" != "no"; then
8808 8873
8809 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 8874 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8810 echo "configure:8811: checking for dbm_open in -ldbm" >&5 8875 echo "configure:8876: checking for dbm_open in -ldbm" >&5
8811 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 8876 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8812 8877
8813 xe_check_libs=" -ldbm " 8878 xe_check_libs=" -ldbm "
8814 cat > conftest.$ac_ext <<EOF 8879 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure" 8880 #line 8881 "configure"
8816 #include "confdefs.h" 8881 #include "confdefs.h"
8817 /* Override any gcc2 internal prototype to avoid an error. */ 8882 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2 8883 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */ 8884 builtin and then its argument prototype would still apply. */
8820 char dbm_open(); 8885 char dbm_open();
8821 8886
8822 int main() { 8887 int main() {
8823 dbm_open() 8888 dbm_open()
8824 ; return 0; } 8889 ; return 0; }
8825 EOF 8890 EOF
8826 if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8827 rm -rf conftest* 8892 rm -rf conftest*
8828 eval "ac_cv_lib_$ac_lib_var=yes" 8893 eval "ac_cv_lib_$ac_lib_var=yes"
8829 else 8894 else
8830 echo "configure: failed program was:" >&5 8895 echo "configure: failed program was:" >&5
8831 cat conftest.$ac_ext >&5 8896 cat conftest.$ac_ext >&5
8858 fi 8923 fi
8859 fi 8924 fi
8860 8925
8861 if test "$with_database_berkdb" != "no"; then 8926 if test "$with_database_berkdb" != "no"; then
8862 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 8927 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8863 echo "configure:8864: checking for dbopen" >&5 8928 echo "configure:8929: checking for dbopen" >&5
8864 8929
8865 cat > conftest.$ac_ext <<EOF 8930 cat > conftest.$ac_ext <<EOF
8866 #line 8867 "configure" 8931 #line 8932 "configure"
8867 #include "confdefs.h" 8932 #include "confdefs.h"
8868 /* System header to define __stub macros and hopefully few prototypes, 8933 /* System header to define __stub macros and hopefully few prototypes,
8869 which can conflict with char dbopen(); below. */ 8934 which can conflict with char dbopen(); below. */
8870 #include <assert.h> 8935 #include <assert.h>
8871 /* Override any gcc2 internal prototype to avoid an error. */ 8936 /* Override any gcc2 internal prototype to avoid an error. */
8884 dbopen(); 8949 dbopen();
8885 #endif 8950 #endif
8886 8951
8887 ; return 0; } 8952 ; return 0; }
8888 EOF 8953 EOF
8889 if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8890 rm -rf conftest* 8955 rm -rf conftest*
8891 eval "ac_cv_func_dbopen=yes" 8956 eval "ac_cv_func_dbopen=yes"
8892 else 8957 else
8893 echo "configure: failed program was:" >&5 8958 echo "configure: failed program was:" >&5
8894 cat conftest.$ac_ext >&5 8959 cat conftest.$ac_ext >&5
8905 fi 8970 fi
8906 8971
8907 if test "$need_libdb" != "no"; then 8972 if test "$need_libdb" != "no"; then
8908 8973
8909 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 8974 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8910 echo "configure:8911: checking for dbopen in -ldb" >&5 8975 echo "configure:8976: checking for dbopen in -ldb" >&5
8911 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 8976 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8912 8977
8913 xe_check_libs=" -ldb " 8978 xe_check_libs=" -ldb "
8914 cat > conftest.$ac_ext <<EOF 8979 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure" 8980 #line 8981 "configure"
8916 #include "confdefs.h" 8981 #include "confdefs.h"
8917 /* Override any gcc2 internal prototype to avoid an error. */ 8982 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2 8983 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */ 8984 builtin and then its argument prototype would still apply. */
8920 char dbopen(); 8985 char dbopen();
8921 8986
8922 int main() { 8987 int main() {
8923 dbopen() 8988 dbopen()
8924 ; return 0; } 8989 ; return 0; }
8925 EOF 8990 EOF
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8927 rm -rf conftest* 8992 rm -rf conftest*
8928 eval "ac_cv_lib_$ac_lib_var=yes" 8993 eval "ac_cv_lib_$ac_lib_var=yes"
8929 else 8994 else
8930 echo "configure: failed program was:" >&5 8995 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5 8996 cat conftest.$ac_ext >&5
8945 9010
8946 fi 9011 fi
8947 if test "$with_database_berkdb" = "yes"; then 9012 if test "$with_database_berkdb" = "yes"; then
8948 for path in "db/db.h" "db.h"; do 9013 for path in "db/db.h" "db.h"; do
8949 cat > conftest.$ac_ext <<EOF 9014 cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure" 9015 #line 9016 "configure"
8951 #include "confdefs.h" 9016 #include "confdefs.h"
8952 #ifdef HAVE_INTTYPES_H 9017 #ifdef HAVE_INTTYPES_H
8953 #define __BIT_TYPES_DEFINED__ 9018 #define __BIT_TYPES_DEFINED__
8954 #include <inttypes.h> 9019 #include <inttypes.h>
8955 typedef uint8_t u_int8_t; 9020 typedef uint8_t u_int8_t;
8963 9028
8964 int main() { 9029 int main() {
8965 9030
8966 ; return 0; } 9031 ; return 0; }
8967 EOF 9032 EOF
8968 if { (eval echo configure:8969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9033 if { (eval echo configure:9034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8969 rm -rf conftest* 9034 rm -rf conftest*
8970 db_h_path="$path"; break 9035 db_h_path="$path"; break
8971 else 9036 else
8972 echo "configure: failed program was:" >&5 9037 echo "configure: failed program was:" >&5
8973 cat conftest.$ac_ext >&5 9038 cat conftest.$ac_ext >&5
9015 fi 9080 fi
9016 9081
9017 if test "$with_socks" = "yes"; then 9082 if test "$with_socks" = "yes"; then
9018 9083
9019 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9084 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9020 echo "configure:9021: checking for SOCKSinit in -lsocks" >&5 9085 echo "configure:9086: checking for SOCKSinit in -lsocks" >&5
9021 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9086 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9022 9087
9023 xe_check_libs=" -lsocks " 9088 xe_check_libs=" -lsocks "
9024 cat > conftest.$ac_ext <<EOF 9089 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure" 9090 #line 9091 "configure"
9026 #include "confdefs.h" 9091 #include "confdefs.h"
9027 /* Override any gcc2 internal prototype to avoid an error. */ 9092 /* Override any gcc2 internal prototype to avoid an error. */
9028 /* We use char because int might match the return type of a gcc2 9093 /* We use char because int might match the return type of a gcc2
9029 builtin and then its argument prototype would still apply. */ 9094 builtin and then its argument prototype would still apply. */
9030 char SOCKSinit(); 9095 char SOCKSinit();
9031 9096
9032 int main() { 9097 int main() {
9033 SOCKSinit() 9098 SOCKSinit()
9034 ; return 0; } 9099 ; return 0; }
9035 EOF 9100 EOF
9036 if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9037 rm -rf conftest* 9102 rm -rf conftest*
9038 eval "ac_cv_lib_$ac_lib_var=yes" 9103 eval "ac_cv_lib_$ac_lib_var=yes"
9039 else 9104 else
9040 echo "configure: failed program was:" >&5 9105 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5 9106 cat conftest.$ac_ext >&5
9157 internal_makefile_list="$T" 9222 internal_makefile_list="$T"
9158 9223
9159 done 9224 done
9160 9225
9161 9226
9227
9228 for dir in src/s src/m; do
9229 if test ! -d "$dir" ; then
9230 echo Making symbolic link to "$srcdir/$dir"
9231 ${LN_S} "$srcdir/$dir" "$dir"
9232 fi
9233 done
9162 9234
9163 if test "$extra_verbose" = "yes"; then 9235 if test "$extra_verbose" = "yes"; then
9164 echo "" 9236 echo ""
9165 echo "extra_objs = \"$extra_objs\"" 9237 echo "extra_objs = \"$extra_objs\""
9166 echo "c_switch_general = \"$c_switch_general\"" 9238 echo "c_switch_general = \"$c_switch_general\""
9178 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 9250 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
9179 echo "creating src/gdbinit"; echo "" 9251 echo "creating src/gdbinit"; echo ""
9180 echo "source $srcdir/src/gdbinit" > src/gdbinit 9252 echo "source $srcdir/src/gdbinit" > src/gdbinit
9181 fi 9253 fi
9182 9254
9183 cat > conftest.$ac_ext <<EOF 9255 if test "$__sunpro_c" = "yes"; then
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186
9187 int main() {
9188 #ifndef __SUNPRO_C
9189 #error No Sun source browser capability
9190 #endif
9191
9192 ; return 0; }
9193 EOF
9194 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195 rm -rf conftest*
9196 echo "creating .sbinit"; echo "" 9256 echo "creating .sbinit"; echo ""
9197 ( echo "# For use with Sun WorkShop's Source browser." 9257 ( echo "# For use with Sun WorkShop's Source browser."
9198 echo "# See sbquery(1) and sbinit(4) for more information" 9258 echo "# See sbquery(1) and sbinit(4) for more information"
9199 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 9259 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
9200 ) > .sbinit 9260 ) > .sbinit
9201 9261 fi
9202 else
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 fi
9206 rm -f conftest*
9207 9262
9208 rm -f core 9263 rm -f core
9209 9264
9210 9265
9211 9266
9611 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 9666 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9612 test "$with_offix" = yes && echo " Compiling in support for OffiX." 9667 test "$with_offix" = yes && echo " Compiling in support for OffiX."
9613 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 9668 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
9614 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." 9669 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
9615 case "$with_menubars" in 9670 case "$with_menubars" in
9616 lucid ) echo " Using the Lucid menubar." ;; 9671 lucid ) echo " Using Lucid menubars." ;;
9617 motif ) echo " Using the Motif menubar." 9672 motif ) echo " Using Motif menubars."
9618 echo " *WARNING* The Motif menubar is currently buggy." 9673 echo " *WARNING* The Motif menubar implementation is currently buggy."
9619 echo " We recommend using the Lucid menubar instead." 9674 echo " We recommend using the Lucid menubar instead."
9620 echo " Re-run configure with --with-menubars='lucid'." ;; 9675 echo " Re-run configure with --with-menubars='lucid'." ;;
9621 esac 9676 esac
9622 case "$with_scrollbars" in 9677 case "$with_scrollbars" in
9623 lucid ) echo " Using the Lucid scrollbar." ;; 9678 lucid ) echo " Using Lucid scrollbars." ;;
9624 motif ) echo " Using the Motif scrollbar." ;; 9679 motif ) echo " Using Motif scrollbars." ;;
9625 athena ) echo " Using the Athena scrollbar." ;; 9680 athena ) echo " Using Athena scrollbars." ;;
9626 athena3d ) echo " Using the Athena-3d scrollbar." ;; 9681 athena3d ) echo " Using Athena-3d scrollbars." ;;
9627 esac 9682 esac
9628 case "$with_dialogs" in 9683 case "$with_dialogs" in
9629 motif ) echo " Using the Motif dialog boxes." ;; 9684 motif ) echo " Using Motif dialog boxes." ;;
9630 athena ) echo " Using the Athena dialog boxes." ;; 9685 athena ) echo " Using Athena dialog boxes." ;;
9631 athena3d ) echo " Using the Athena-3d dialog boxes." ;; 9686 athena3d ) echo " Using Athena-3d dialog boxes." ;;
9632 esac 9687 esac
9688 echo " movemail will use \"$mail_locking\" for locking mail spool files."
9633 test "$with_pop" = yes && echo " Using POP for mail access" 9689 test "$with_pop" = yes && echo " Using POP for mail access"
9634 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" 9690 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
9635 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" 9691 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
9636 9692
9637 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 9693 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
9755 s%@SET_MAKE@%$SET_MAKE%g 9811 s%@SET_MAKE@%$SET_MAKE%g
9756 s%@X_CFLAGS@%$X_CFLAGS%g 9812 s%@X_CFLAGS@%$X_CFLAGS%g
9757 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 9813 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9758 s%@X_LIBS@%$X_LIBS%g 9814 s%@X_LIBS@%$X_LIBS%g
9759 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 9815 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9816 s%@lwlib_objs@%$lwlib_objs%g
9760 s%@ALLOCA@%$ALLOCA%g 9817 s%@ALLOCA@%$ALLOCA%g
9761 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g 9818 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
9762 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g 9819 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
9763 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 9820 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
9764 s%@version@%$version%g 9821 s%@version@%$version%g