comparison configure @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents 3bb7ccffb0c0
children 5a88923fcbfe
comparison
equal deleted inserted replaced
162:4de2936b4e77 163:0132846995bd
768 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi 768 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi
769 fi 769 fi
770 770
771 test "$extra_verbose" = "yes" && verbose=yes 771 test "$extra_verbose" = "yes" && verbose=yes
772 772
773 case "site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's:^ ::' -e 's/:/ /g'`";; esac 773 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's:^ ::' -e 's/:/ /g'`";; esac
774 case "site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac 774 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac
775 case "site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac 775 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's:^ ::' -e 's/:/ /g'`";; esac
776 776
777 test -n "$with_x" && with_x11="$with_x" 777 test -n "$with_x" && with_x11="$with_x"
778 778
779 if test "$run_in_place" = "yes"; then 779 if test "$run_in_place" = "yes"; then
780 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 780 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
905 mips-dec-* ) machine=pmax ;; 905 mips-dec-* ) machine=pmax ;;
906 mips-sgi-* ) machine=iris4d ;; 906 mips-sgi-* ) machine=iris4d ;;
907 romp-ibm-* ) machine=ibmrt ;; 907 romp-ibm-* ) machine=ibmrt ;;
908 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 908 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
909 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 909 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
910 powerpc-*-* ) machine=powerpc ;; 910 powerpc*-* ) machine=powerpc ;;
911 hppa-*-* ) machine=hp800 ;; 911 hppa-*-* ) machine=hp800 ;;
912 m88k-dg-* ) machine=aviion ;; 912 m88k-dg-* ) machine=aviion ;;
913 m68*-sony-* ) machine=news ;; 913 m68*-sony-* ) machine=news ;;
914 mips-sony-* ) machine=news-risc ;; 914 mips-sony-* ) machine=news-risc ;;
915 clipper-* ) machine=clipper ;; 915 clipper-* ) machine=clipper ;;
1146 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* ) 1146 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
1147 case "$canonical" in 1147 case "$canonical" in
1148 m68*-sunos1* ) machine=sun1 ;; 1148 m68*-sunos1* ) machine=sun1 ;;
1149 m68*-sunos2* ) machine=sun2 ;; 1149 m68*-sunos2* ) machine=sun2 ;;
1150 m68* ) machine=sun3 ;; 1150 m68* ) machine=sun3 ;;
1151 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;; 1151 i*86*-sun-sunos[34]* ) machine=sun386 ;;
1152 i[3-9]86-*-* ) machine=intel386 ;; 1152 i*86-*-* ) machine=intel386 ;;
1153 rs6000* ) machine=rs6000 ;; 1153 rs6000* ) machine=rs6000 ;;
1154 esac 1154 esac
1155 1155
1156 case "$canonical" in *-sunos5*) 1156 case "$canonical" in *-sunos5*)
1157 canonical="`echo \"$canonical\" | sed -e s/sunos5/solaris2/`";; 1157 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
1158 esac 1158 esac
1159 1159
1160 case "$canonical" in 1160 case "$canonical" in
1161 *-sunos4* ) 1161 *-sunos4* )
1162 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; 1162 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
1165 #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
1166 RANLIB=':' ;; 1166 RANLIB=':' ;;
1167 esac 1167 esac
1168 1168
1169 case "$canonical" in 1169 case "$canonical" in
1170 i[3-9]86-*-sunos4*) opsys=sunos4-0 ;; 1170 *-solaris* )
1171 opsys=sol2
1172 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
1173 { test "$extra_verbose" = "yes" && cat << EOF
1174 Defining OS_RELEASE = $os_release
1175 EOF
1176 cat >> confdefs.h <<EOF
1177 #define OS_RELEASE $os_release
1178 EOF
1179 }
1180 ;;
1181
1182 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1171 *-sunos4.0* ) opsys=sunos4-0 ;; 1183 *-sunos4.0* ) opsys=sunos4-0 ;;
1172 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; 1184 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
1173 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; 1185 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
1174 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; 1186 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
1175 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; 1187 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
1176
1177 *-solaris2.3* ) opsys=sol2-3 ;;
1178 *-solaris2.4* ) opsys=sol2-4 ;;
1179 *-solaris2.5* ) opsys=sol2-5 ;;
1180 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
1181 *-solaris* ) opsys=sol2 ;;
1182
1183 *-mach* ) opsys=mach-bsd4-3 ;; 1188 *-mach* ) opsys=mach-bsd4-3 ;;
1184 * ) opsys=bsd4-2 ;; 1189 * ) opsys=bsd4-2 ;;
1185 esac 1190 esac
1186 1191
1187 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac 1192 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
1188 1193
1189 case "$canonical" in 1194 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
1190 *-solaris* ) case "$CC" in /usr/ucb/cc* ) CC="" ;; esac ;;
1191 esac
1192 ;; 1195 ;;
1193 1196
1194 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;; 1197 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
1195 1198
1196 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;; 1199 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
1266 case "$opsys" in 1269 case "$opsys" in
1267 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; 1270 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1268 esac 1271 esac
1269 elif test "$dynamic" = "no" ; then 1272 elif test "$dynamic" = "no" ; then
1270 case "$opsys" in 1273 case "$opsys" in
1271 sol2* | decosf1-3 | decosf3-* | decosf4-* | linux ) opsys="${opsys}-static" ;; 1274 sol2 | decosf1-3 | decosf3-* | decosf4-* | linux ) opsys="${opsys}-static" ;;
1272 esac 1275 esac
1273 fi 1276 fi
1274 1277
1275 machfile="m/${machine}.h" 1278 machfile="m/${machine}.h"
1276 opsysfile="s/${opsys}.h" 1279 opsysfile="s/${opsys}.h"
1308 1311
1309 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC" 1312 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC"
1310 # Extract the first word of "gcc", so it can be a program name with args. 1313 # Extract the first word of "gcc", so it can be a program name with args.
1311 set dummy gcc; ac_word=$2 1314 set dummy gcc; ac_word=$2
1312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1313 echo "configure:1314: checking for $ac_word" >&5 1316 echo "configure:1317: checking for $ac_word" >&5
1314 1317
1315 if test -n "$CC"; then 1318 if test -n "$CC"; then
1316 ac_cv_prog_CC="$CC" # Let the user override the test. 1319 ac_cv_prog_CC="$CC" # Let the user override the test.
1317 else 1320 else
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1334 1337
1335 if test -z "$CC"; then 1338 if test -z "$CC"; then
1336 # Extract the first word of "cc", so it can be a program name with args. 1339 # Extract the first word of "cc", so it can be a program name with args.
1337 set dummy cc; ac_word=$2 1340 set dummy cc; ac_word=$2
1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_word" >&5 1342 echo "configure:1343: checking for $ac_word" >&5
1340 1343
1341 if test -n "$CC"; then 1344 if test -n "$CC"; then
1342 ac_cv_prog_CC="$CC" # Let the user override the test. 1345 ac_cv_prog_CC="$CC" # Let the user override the test.
1343 else 1346 else
1344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1379 1382
1380 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1383 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1381 fi 1384 fi
1382 1385
1383 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1384 echo "configure:1385: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1387 echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1385 1388
1386 ac_ext=c 1389 ac_ext=c
1387 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1390 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1388 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1391 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1389 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1392 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1391 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1394 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1392 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1395 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1393 cross_compiling=no 1396 cross_compiling=no
1394 1397
1395 cat > conftest.$ac_ext <<EOF 1398 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure" 1399 #line 1400 "configure"
1397 #include "confdefs.h" 1400 #include "confdefs.h"
1398 main(){return(0);} 1401 main(){return(0);}
1399 EOF 1402 EOF
1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1401 ac_cv_prog_cc_works=yes 1404 ac_cv_prog_cc_works=yes
1402 # If we can't run a trivial program, we are probably using a cross compiler. 1405 # If we can't run a trivial program, we are probably using a cross compiler.
1403 if (./conftest; exit) 2>/dev/null; then 1406 if (./conftest; exit) 2>/dev/null; then
1404 ac_cv_prog_cc_cross=no 1407 ac_cv_prog_cc_cross=no
1405 else 1408 else
1415 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1418 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1416 if test $ac_cv_prog_cc_works = no; then 1419 if test $ac_cv_prog_cc_works = no; then
1417 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1420 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1418 fi 1421 fi
1419 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1422 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1423 echo "configure:1424: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1421 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1424 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1422 cross_compiling=$ac_cv_prog_cc_cross 1425 cross_compiling=$ac_cv_prog_cc_cross
1423 1426
1424 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1427 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether we are using GNU C" >&5 1428 echo "configure:1429: checking whether we are using GNU C" >&5
1426 1429
1427 cat > conftest.c <<EOF 1430 cat > conftest.c <<EOF
1428 #ifdef __GNUC__ 1431 #ifdef __GNUC__
1429 yes; 1432 yes;
1430 #endif 1433 #endif
1431 EOF 1434 EOF
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 1435 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1433 ac_cv_prog_gcc=yes 1436 ac_cv_prog_gcc=yes
1434 else 1437 else
1435 ac_cv_prog_gcc=no 1438 ac_cv_prog_gcc=no
1436 fi 1439 fi
1437 1440
1441 GCC=yes 1444 GCC=yes
1442 ac_test_CFLAGS="${CFLAGS+set}" 1445 ac_test_CFLAGS="${CFLAGS+set}"
1443 ac_save_CFLAGS="$CFLAGS" 1446 ac_save_CFLAGS="$CFLAGS"
1444 CFLAGS= 1447 CFLAGS=
1445 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1448 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1446 echo "configure:1447: checking whether ${CC-cc} accepts -g" >&5 1449 echo "configure:1450: checking whether ${CC-cc} accepts -g" >&5
1447 1450
1448 echo 'void f(){}' > conftest.c 1451 echo 'void f(){}' > conftest.c
1449 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1452 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1450 ac_cv_prog_cc_g=yes 1453 ac_cv_prog_cc_g=yes
1451 else 1454 else
1471 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then 1474 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then
1472 CC=${NON_GNU_CC-cc} 1475 CC=${NON_GNU_CC-cc}
1473 # Extract the first word of "gcc", so it can be a program name with args. 1476 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2 1477 set dummy gcc; ac_word=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5 1479 echo "configure:1480: checking for $ac_word" >&5
1477 1480
1478 if test -n "$CC"; then 1481 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test. 1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else 1483 else
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1497 1500
1498 if test -z "$CC"; then 1501 if test -z "$CC"; then
1499 # Extract the first word of "cc", so it can be a program name with args. 1502 # Extract the first word of "cc", so it can be a program name with args.
1500 set dummy cc; ac_word=$2 1503 set dummy cc; ac_word=$2
1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502 echo "configure:1503: checking for $ac_word" >&5 1505 echo "configure:1506: checking for $ac_word" >&5
1503 1506
1504 if test -n "$CC"; then 1507 if test -n "$CC"; then
1505 ac_cv_prog_CC="$CC" # Let the user override the test. 1508 ac_cv_prog_CC="$CC" # Let the user override the test.
1506 else 1509 else
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1542 1545
1543 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1546 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1544 fi 1547 fi
1545 1548
1546 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1549 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1550 echo "configure:1551: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1548 1551
1549 ac_ext=c 1552 ac_ext=c
1550 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1553 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1551 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1554 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1552 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1555 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1554 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1557 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1555 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1558 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1556 cross_compiling=no 1559 cross_compiling=no
1557 1560
1558 cat > conftest.$ac_ext <<EOF 1561 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure" 1562 #line 1563 "configure"
1560 #include "confdefs.h" 1563 #include "confdefs.h"
1561 main(){return(0);} 1564 main(){return(0);}
1562 EOF 1565 EOF
1563 if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1564 ac_cv_prog_cc_works=yes 1567 ac_cv_prog_cc_works=yes
1565 # If we can't run a trivial program, we are probably using a cross compiler. 1568 # If we can't run a trivial program, we are probably using a cross compiler.
1566 if (./conftest; exit) 2>/dev/null; then 1569 if (./conftest; exit) 2>/dev/null; then
1567 ac_cv_prog_cc_cross=no 1570 ac_cv_prog_cc_cross=no
1568 else 1571 else
1578 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1581 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1579 if test $ac_cv_prog_cc_works = no; then 1582 if test $ac_cv_prog_cc_works = no; then
1580 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1583 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1581 fi 1584 fi
1582 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1585 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1583 echo "configure:1584: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1586 echo "configure:1587: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1584 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1587 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1585 cross_compiling=$ac_cv_prog_cc_cross 1588 cross_compiling=$ac_cv_prog_cc_cross
1586 1589
1587 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1590 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1588 echo "configure:1589: checking whether we are using GNU C" >&5 1591 echo "configure:1592: checking whether we are using GNU C" >&5
1589 1592
1590 cat > conftest.c <<EOF 1593 cat > conftest.c <<EOF
1591 #ifdef __GNUC__ 1594 #ifdef __GNUC__
1592 yes; 1595 yes;
1593 #endif 1596 #endif
1594 EOF 1597 EOF
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 1598 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1596 ac_cv_prog_gcc=yes 1599 ac_cv_prog_gcc=yes
1597 else 1600 else
1598 ac_cv_prog_gcc=no 1601 ac_cv_prog_gcc=no
1599 fi 1602 fi
1600 1603
1604 GCC=yes 1607 GCC=yes
1605 ac_test_CFLAGS="${CFLAGS+set}" 1608 ac_test_CFLAGS="${CFLAGS+set}"
1606 ac_save_CFLAGS="$CFLAGS" 1609 ac_save_CFLAGS="$CFLAGS"
1607 CFLAGS= 1610 CFLAGS=
1608 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1611 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1609 echo "configure:1610: checking whether ${CC-cc} accepts -g" >&5 1612 echo "configure:1613: checking whether ${CC-cc} accepts -g" >&5
1610 1613
1611 echo 'void f(){}' > conftest.c 1614 echo 'void f(){}' > conftest.c
1612 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1615 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1613 ac_cv_prog_cc_g=yes 1616 ac_cv_prog_cc_g=yes
1614 else 1617 else
1633 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then 1636 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then
1634 CC=gcc 1637 CC=gcc
1635 # Extract the first word of "gcc", so it can be a program name with args. 1638 # Extract the first word of "gcc", so it can be a program name with args.
1636 set dummy gcc; ac_word=$2 1639 set dummy gcc; ac_word=$2
1637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_word" >&5 1641 echo "configure:1642: checking for $ac_word" >&5
1639 1642
1640 if test -n "$CC"; then 1643 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test. 1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else 1645 else
1643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1659 1662
1660 if test -z "$CC"; then 1663 if test -z "$CC"; then
1661 # Extract the first word of "cc", so it can be a program name with args. 1664 # Extract the first word of "cc", so it can be a program name with args.
1662 set dummy cc; ac_word=$2 1665 set dummy cc; ac_word=$2
1663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1664 echo "configure:1665: checking for $ac_word" >&5 1667 echo "configure:1668: checking for $ac_word" >&5
1665 1668
1666 if test -n "$CC"; then 1669 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test. 1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 else 1671 else
1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1704 1707
1705 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1708 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1706 fi 1709 fi
1707 1710
1708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1711 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1709 echo "configure:1710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1712 echo "configure:1713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1710 1713
1711 ac_ext=c 1714 ac_ext=c
1712 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1715 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1713 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1716 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1714 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1717 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1716 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1719 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1717 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1720 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1718 cross_compiling=no 1721 cross_compiling=no
1719 1722
1720 cat > conftest.$ac_ext <<EOF 1723 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure" 1724 #line 1725 "configure"
1722 #include "confdefs.h" 1725 #include "confdefs.h"
1723 main(){return(0);} 1726 main(){return(0);}
1724 EOF 1727 EOF
1725 if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1726 ac_cv_prog_cc_works=yes 1729 ac_cv_prog_cc_works=yes
1727 # If we can't run a trivial program, we are probably using a cross compiler. 1730 # If we can't run a trivial program, we are probably using a cross compiler.
1728 if (./conftest; exit) 2>/dev/null; then 1731 if (./conftest; exit) 2>/dev/null; then
1729 ac_cv_prog_cc_cross=no 1732 ac_cv_prog_cc_cross=no
1730 else 1733 else
1740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1743 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1741 if test $ac_cv_prog_cc_works = no; then 1744 if test $ac_cv_prog_cc_works = no; then
1742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1745 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1743 fi 1746 fi
1744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1745 echo "configure:1746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1748 echo "configure:1749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1749 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1747 cross_compiling=$ac_cv_prog_cc_cross 1750 cross_compiling=$ac_cv_prog_cc_cross
1748 1751
1749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1752 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1750 echo "configure:1751: checking whether we are using GNU C" >&5 1753 echo "configure:1754: checking whether we are using GNU C" >&5
1751 1754
1752 cat > conftest.c <<EOF 1755 cat > conftest.c <<EOF
1753 #ifdef __GNUC__ 1756 #ifdef __GNUC__
1754 yes; 1757 yes;
1755 #endif 1758 #endif
1756 EOF 1759 EOF
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 1760 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1758 ac_cv_prog_gcc=yes 1761 ac_cv_prog_gcc=yes
1759 else 1762 else
1760 ac_cv_prog_gcc=no 1763 ac_cv_prog_gcc=no
1761 fi 1764 fi
1762 1765
1766 GCC=yes 1769 GCC=yes
1767 ac_test_CFLAGS="${CFLAGS+set}" 1770 ac_test_CFLAGS="${CFLAGS+set}"
1768 ac_save_CFLAGS="$CFLAGS" 1771 ac_save_CFLAGS="$CFLAGS"
1769 CFLAGS= 1772 CFLAGS=
1770 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1771 echo "configure:1772: checking whether ${CC-cc} accepts -g" >&5 1774 echo "configure:1775: checking whether ${CC-cc} accepts -g" >&5
1772 1775
1773 echo 'void f(){}' > conftest.c 1776 echo 'void f(){}' > conftest.c
1774 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1777 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1775 ac_cv_prog_cc_g=yes 1778 ac_cv_prog_cc_g=yes
1776 else 1779 else
1797 1800
1798 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi 1801 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi
1799 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1802 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1800 1803
1801 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1804 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1802 echo "configure:1803: checking how to run the C preprocessor" >&5 1805 echo "configure:1806: checking how to run the C preprocessor" >&5
1803 # On Suns, sometimes $CPP names a directory. 1806 # On Suns, sometimes $CPP names a directory.
1804 if test -n "$CPP" && test -d "$CPP"; then 1807 if test -n "$CPP" && test -d "$CPP"; then
1805 CPP= 1808 CPP=
1806 fi 1809 fi
1807 if test -z "$CPP"; then 1810 if test -z "$CPP"; then
1810 # substituted into the Makefile and "${CC-cc}" will confuse make. 1813 # substituted into the Makefile and "${CC-cc}" will confuse make.
1811 CPP="${CC-cc} -E" 1814 CPP="${CC-cc} -E"
1812 # On the NeXT, cc -E runs the code through the compiler's parser, 1815 # On the NeXT, cc -E runs the code through the compiler's parser,
1813 # not just through cpp. 1816 # not just through cpp.
1814 cat > conftest.$ac_ext <<EOF 1817 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure" 1818 #line 1819 "configure"
1816 #include "confdefs.h" 1819 #include "confdefs.h"
1817 #include <assert.h> 1820 #include <assert.h>
1818 Syntax Error 1821 Syntax Error
1819 EOF 1822 EOF
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1824 { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out` 1825 ac_err=`grep -v '^ *+' conftest.out`
1823 if test -z "$ac_err"; then 1826 if test -z "$ac_err"; then
1824 : 1827 :
1825 else 1828 else
1826 echo "$ac_err" >&5 1829 echo "$ac_err" >&5
1827 echo "configure: failed program was:" >&5 1830 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5 1831 cat conftest.$ac_ext >&5
1829 rm -rf conftest* 1832 rm -rf conftest*
1830 CPP="${CC-cc} -E -traditional-cpp" 1833 CPP="${CC-cc} -E -traditional-cpp"
1831 cat > conftest.$ac_ext <<EOF 1834 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure" 1835 #line 1836 "configure"
1833 #include "confdefs.h" 1836 #include "confdefs.h"
1834 #include <assert.h> 1837 #include <assert.h>
1835 Syntax Error 1838 Syntax Error
1836 EOF 1839 EOF
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1841 { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out` 1842 ac_err=`grep -v '^ *+' conftest.out`
1840 if test -z "$ac_err"; then 1843 if test -z "$ac_err"; then
1841 : 1844 :
1842 else 1845 else
1843 echo "$ac_err" >&5 1846 echo "$ac_err" >&5
1856 fi 1859 fi
1857 echo "$ac_t""$CPP" 1>&6 1860 echo "$ac_t""$CPP" 1>&6
1858 1861
1859 1862
1860 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1863 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1861 echo "configure:1862: checking for AIX" >&5 1864 echo "configure:1865: checking for AIX" >&5
1862 cat > conftest.$ac_ext <<EOF 1865 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure" 1866 #line 1867 "configure"
1864 #include "confdefs.h" 1867 #include "confdefs.h"
1865 #ifdef _AIX 1868 #ifdef _AIX
1866 yes 1869 yes
1867 #endif 1870 #endif
1868 1871
1885 rm -f conftest* 1888 rm -f conftest*
1886 1889
1887 1890
1888 1891
1889 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 1892 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 1893 echo "configure:1894: checking whether we are using SunPro C" >&5
1891 cat > conftest.$ac_ext <<EOF 1894 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure" 1895 #line 1896 "configure"
1893 #include "confdefs.h" 1896 #include "confdefs.h"
1894 1897
1895 int main() { 1898 int main() {
1896 #ifndef __SUNPRO_C 1899 #ifndef __SUNPRO_C
1897 #error Not a SunPro compiler :-( 1900 #error Not a SunPro compiler :-(
1898 #endif 1901 #endif
1899 1902
1900 ; return 0; } 1903 ; return 0; }
1901 EOF 1904 EOF
1902 if { (eval echo configure:1903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1903 rm -rf conftest* 1906 rm -rf conftest*
1904 __sunpro_c=yes 1907 __sunpro_c=yes
1905 else 1908 else
1906 echo "configure: failed program was:" >&5 1909 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5 1910 cat conftest.$ac_ext >&5
1927 #define C_SWITCH_SITE 1930 #define C_SWITCH_SITE
1928 #define C_SWITCH_X_SITE 1931 #define C_SWITCH_X_SITE
1929 #define LD_SWITCH_SITE 1932 #define LD_SWITCH_SITE
1930 #define LD_SWITCH_X_SITE 1933 #define LD_SWITCH_X_SITE
1931 #define LD_SWITCH_X_SITE_AUX 1934 #define LD_SWITCH_X_SITE_AUX
1935 #define OS_RELEASE '$os_release'
1932 #include "'$srcdir'/src/'$opsysfile'" 1936 #include "'$srcdir'/src/'$opsysfile'"
1933 #include "'$srcdir'/src/'$machfile'" 1937 #include "'$srcdir'/src/'$machfile'"
1934 1938
1935 #ifndef LIBS_MACHINE 1939 #ifndef LIBS_MACHINE
1936 #define LIBS_MACHINE 1940 #define LIBS_MACHINE
1951 #define LIB_STANDARD 1955 #define LIB_STANDARD
1952 #endif 1956 #endif
1953 configure___ libs_standard=LIB_STANDARD 1957 configure___ libs_standard=LIB_STANDARD
1954 1958
1955 1959
1960 #ifndef OBJECTS_MACHINE
1961 #define OBJECTS_MACHINE
1962 #endif
1963 configure___ objects_machine=OBJECTS_MACHINE
1964
1965 #ifndef OBJECTS_SYSTEM
1966 #define OBJECTS_SYSTEM
1967 #endif
1968 configure___ objects_system=OBJECTS_SYSTEM
1969
1970
1956 #ifndef C_SWITCH_MACHINE 1971 #ifndef C_SWITCH_MACHINE
1957 #define C_SWITCH_MACHINE 1972 #define C_SWITCH_MACHINE
1958 #endif 1973 #endif
1959 configure___ c_switch_machine=C_SWITCH_MACHINE 1974 configure___ c_switch_machine=C_SWITCH_MACHINE
1960 1975
1988 #ifndef UNEXEC 2003 #ifndef UNEXEC
1989 #define UNEXEC "unexec.o" 2004 #define UNEXEC "unexec.o"
1990 #endif 2005 #endif
1991 configure___ unexec=UNEXEC 2006 configure___ unexec=UNEXEC
1992 2007
2008
2009 #ifndef LD_SWITCH_CALL_SHARED
2010 #define LD_SWITCH_CALL_SHARED
2011 #endif
2012 configure___ ld_switch_call_shared=LD_SWITCH_CALL_SHARED
2013
2014 #ifndef LD_SWITCH_SHARED
2015 #define LD_SWITCH_SHARED "-c"
2016 #endif
2017 configure___ ld_switch_shared=LD_SWITCH_SHARED
2018
2019
2020 #ifdef ORDINARY_LINK
2021 #define LD "$(CC) $(CFLAGS)"
2022 #else /* no ORDINARY LINK */
2023 #ifdef COFF_ENCAPSULATE
2024 #define LD "$(CC) -nostdlib"
2025 #else /* not COFF_ENCAPSULATE */
2026 #ifdef LINKER
2027 #define LD LINKER
2028 #else /* ! defined (LINKER) */
2029 #define LD "ld"
2030 #endif /* ! defined (LINKER) */
2031 #endif /* ! defined (COFF_ENCAPSULATE) */
2032 #endif /* not ORDINARY_LINK */
2033 configure___ ld=LD
2034
2035 #ifndef LIB_GCC
2036 #define LIB_GCC
2037 #endif
2038 configure___ lib_gcc=LIB_GCC
2039
2040 #ifndef LD_TEXT_START_ADDR
2041 #define LD_TEXT_START_ADDR
2042 #endif
2043 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
2044
2045
2046 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
2047 #ifdef NO_REMAP
2048 #ifdef COFF_ENCAPSULATE
2049 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
2050 #else /* ! defined (COFF_ENCAPSULATE) */
2051 #define START_FILES "pre-crt0.o /lib/crt0.o"
2052 #endif /* ! defined (COFF_ENCAPSULATE) */
2053 #else /* ! defined (NO_REMAP) */
2054 #define START_FILES "ecrt0.o"
2055 #endif /* ! defined (NO_REMAP) */
2056 #endif /* no ORDINARY_LINK */
2057 #ifndef START_FILES
2058 #define START_FILES
2059 #endif
2060 configure___ start_files=START_FILES
1993 2061
1994 #ifdef ORDINARY_LINK 2062 #ifdef ORDINARY_LINK
1995 configure___ ordinary_link=yes 2063 configure___ ordinary_link=yes
1996 #else 2064 #else
1997 configure___ ordinary_link=no 2065 configure___ ordinary_link=no
2054 #endif /* not THIS_IS_CONFIGURE */ 2122 #endif /* not THIS_IS_CONFIGURE */
2055 #endif /* 0 */ 2123 #endif /* 0 */
2056 ' > $tempcname 2124 ' > $tempcname
2057 CPP=`eval "echo $CPP"` 2125 CPP=`eval "echo $CPP"`
2058 eval `$CPP -Isrc $tempcname \ 2126 eval `$CPP -Isrc $tempcname \
2059 | sed -n -e "s/ *=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 2127 | sed -n -e "s/[ \t]*=[ \t\"]*/='/" -e "s/[ \t\"]*\$/'/" -e "s/^configure___//p"`
2060 2128
2061 2129
2062 rm $tempcname 2130 rm $tempcname
2131
2132 test "$extra_verbose" = "yes" && \
2133 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system c_switch_x_system ld_switch_machine ld_switch_system ld_switch_x_system unexec ld_switch_call_shared ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
2134
2063 2135
2064 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2136 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2065 2137
2066 if test -z "$CFLAGS"; then 2138 if test -z "$CFLAGS"; then
2067 if test "$GCC" = "yes"; then 2139 if test "$GCC" = "yes"; then
2068 CFLAGS="-g -O2" 2140 CFLAGS="-g -O2"
2069 test "$opsys" = "linux" -a "$machine" = "intel386" && \ 2141 test "$opsys" = "linux" -a "$machine" = "intel386" && \
2070 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" 2142 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2"
2071 elif test "$__sunpro_c" = "yes"; then 2143 elif test "$__sunpro_c" = "yes"; then
2072 case "$opsys" in 2144 case "$opsys" in
2073 sol2* ) CFLAGS="-v -xO4" ;; 2145 sol2 ) CFLAGS="-v -xO4" ;;
2074 sunos4* ) CFLAGS="-xO3";; 2146 sunos4* ) CFLAGS="-xO2";;
2075 esac 2147 esac
2076 else 2148 else
2077 CFLAGS="-O" # The only POSIX-approved flag 2149 CFLAGS="-O" # The only POSIX-approved flag
2078 fi 2150 fi
2079 fi 2151 fi
2080 2152
2081 extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2153 if test "$GCC" = "yes"; then
2154 ld_switch_system_tmp="$ld_switch_system"; ld_switch_system=""
2155 for arg in $ld_switch_system_tmp; do
2156 case "$arg" in
2157 -L* | -l* | -R* | -u* | -Wl* | -f* ) ld_switch_system="$ld_switch_system $arg" ;;
2158 -Xlinker* ) ;;
2159 * ) ld_switch_system="$ld_switch_system -Xlinker $arg" ;;
2160 esac
2161 done
2162 ld_switch_machine_tmp="$ld_switch_machine"; ld_switch_machine=""
2163 for arg in $ld_switch_machine_tmp; do
2164 case "$arg" in
2165 -L* | -l* | -R* | -u* | -Wl* | -f* ) ld_switch_machine="$ld_switch_machine $arg" ;;
2166 -Xlinker* ) ;;
2167 * ) ld_switch_machine="$ld_switch_machine -Xlinker $arg" ;;
2168 esac
2169 done
2170 LDFLAGS_tmp="$LDFLAGS"; LDFLAGS=""
2171 for arg in $LDFLAGS_tmp; do
2172 case "$arg" in
2173 -L* | -l* | -R* | -u* | -Wl* | -f* ) LDFLAGS="$LDFLAGS $arg" ;;
2174 -Xlinker* ) ;;
2175 * ) LDFLAGS="$LDFLAGS -Xlinker $arg" ;;
2176 esac
2177 done
2178 fi
2179
2180 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
2181 echo " xemacs will be linked with \"$objects_machine\""
2182 fi
2183 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
2184 echo " xemacs will be linked with \"$objects_system\""
2185 fi
2186 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2082 echo " xemacs will be linked with \"$unexec\"" 2187 echo " xemacs will be linked with \"$unexec\""
2083 fi 2188 fi
2189
2190 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2191 echo "configure:2192: checking for dynodump" >&5
2192 if test "$unexec" != "unexsol2.o"; then
2193 echo "$ac_t""no" 1>&6
2194 else
2195 echo "$ac_t""yes" 1>&6
2196 { test "$extra_verbose" = "yes" && cat << \EOF
2197 Defining DYNODUMP
2198 EOF
2199 cat >> confdefs.h <<\EOF
2200 #define DYNODUMP 1
2201 EOF
2202 }
2203
2204 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
2205 case "$machine" in
2206 sparc ) dynodump_arch=sparc ;;
2207 *86* ) dynodump_arch=i386 ;;
2208 powerpc ) dynodump_arch=ppc ;;
2209 esac
2210 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
2211 fi
2212
2213
2214
2215
2216 test -n "$ld_text_start_addr" && start_flags="-T $ld_text_start_addr -e __start"
2217
2218 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
2219 test -z "$linker" && linker='$(CC) -nostdlib'
2220 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-lib-gcc-file-name`'
2221 fi
2222 test "$GCC" != "yes" && lib_gcc=
2223
2224
2084 2225
2085 2226
2086 if test -n "$site_libraries"; then 2227 if test -n "$site_libraries"; then
2087 for arg in $site_libraries; do 2228 for arg in $site_libraries; do
2088 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac 2229 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
2095 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac 2236 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
2096 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi 2237 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
2097 done 2238 done
2098 fi 2239 fi
2099 2240
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
2103 fi
2104 2241
2105 for dir in "/usr/ccs/lib"; do 2242 for dir in "/usr/ccs/lib"; do
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 2243 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
2107 done 2244 done
2108 2245
2112 fi 2249 fi
2113 2250
2114 2251
2115 if test "$dynamic" = "no"; then add_runtime_path=no 2252 if test "$dynamic" = "no"; then add_runtime_path=no
2116 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2253 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2117 else case "$canonical" in 2254 else case "$opsys" in
2118 *-solaris2.* | *-sgi-irix* ) add_runtime_path=yes ;; 2255 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
2119 * ) add_runtime_path=no ;; 2256 * ) add_runtime_path=no ;;
2120 esac 2257 esac
2121 fi 2258 fi
2122 2259
2123 if test "$add_runtime_path" = "yes"; then 2260 if test "$add_runtime_path" = "yes"; then
2124 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2261 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2125 echo "configure:2126: checking "for runtime libraries flag"" >&5 2262 echo "configure:2263: checking "for runtime libraries flag"" >&5
2126 dash_r="" 2263 dash_r=""
2127 for try_dash_r in "-R" "-R " "-rpath "; do 2264 for try_dash_r in "-R" "-R " "-rpath "; do
2128 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2265 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2129 cat > conftest.$ac_ext <<EOF 2266 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure" 2267 #line 2268 "configure"
2131 #include "confdefs.h" 2268 #include "confdefs.h"
2132 2269
2133 int main() { 2270 int main() {
2134 2271
2135 ; return 0; } 2272 ; return 0; }
2136 EOF 2273 EOF
2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2274 if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2138 rm -rf conftest* 2275 rm -rf conftest*
2139 dash_r="$try_dash_r" 2276 dash_r="$try_dash_r"
2140 else 2277 else
2141 echo "configure: failed program was:" >&5 2278 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5 2279 cat conftest.$ac_ext >&5
2149 then echo "$ac_t"""\"${dash_r}\""" 1>&6 2286 then echo "$ac_t"""\"${dash_r}\""" 1>&6
2150 else echo "$ac_t""NONE" 1>&6 2287 else echo "$ac_t""NONE" 1>&6
2151 fi 2288 fi
2152 fi 2289 fi
2153 2290
2291 xe_add_unique_runpath_dir='
2292 xe_add_p=yes
2293 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
2294 done
2295 if test "$xe_add_p" = "yes"; then
2296 test -n "$runpath" && runpath="${runpath}:"
2297 runpath="${runpath}${xe_runpath_dir}"
2298 runpath_dirs="$runpath_dirs $xe_runpath_dir"
2299 fi'
2300
2301
2154 2302
2155 2303
2156 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 2304 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
2157 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"` 2305 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//"`
2158 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"` 2306 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//"`
2159 2307
2160 runpath="" 2308 runpath="" runpath_dirs=""
2161 if test -n "$LD_RUN_PATH"; then 2309 if test -n "$LD_RUN_PATH"; then
2162 runpath="$LD_RUN_PATH" 2310 runpath="$LD_RUN_PATH"
2163 elif test "$GCC" = "yes"; then 2311 elif test "$GCC" = "yes"; then
2164 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 2312 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
2313 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
2165 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 2314 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
2166 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 2315 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
2167 case "$arg" in P,* | -L* | -R* ) 2316 case "$arg" in P,* | -L* | -R* )
2168 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 2317 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
2169 2318 {
2170 xe_runpath_dir="$dir" 2319 xe_runpath_dir="$dir"
2171 if test "$xe_runpath_dir" != "/lib" -a \ 2320 test "$xe_runpath_dir" != "/lib" -a \
2172 "$xe_runpath_dir" != "/usr/lib" -a \ 2321 "$xe_runpath_dir" != "/usr/lib" -a \
2173 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 2322 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2174 test -n "$runpath" && runpath="${runpath}:" 2323 eval "$xe_add_unique_runpath_dir"
2175 runpath="${runpath}${xe_runpath_dir}" 2324 }
2176 fi
2177
2178 done ;; 2325 done ;;
2179 esac 2326 esac
2180 done 2327 done
2328 ld_switch_run="$ld_switch_run_save"
2181 rm -f conftest* 2329 rm -f conftest*
2182 else 2330 else
2183 for arg in $ld_switch_site $ld_switch_x_site; do 2331 for arg in $ld_switch_site $ld_switch_x_site; do
2184 case "$arg" in -L*) 2332 case "$arg" in -L*) {
2185 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` 2333 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
2186 if test "$xe_runpath_dir" != "/lib" -a \ 2334 test "$xe_runpath_dir" != "/lib" -a \
2187 "$xe_runpath_dir" != "/usr/lib" -a \ 2335 "$xe_runpath_dir" != "/usr/lib" -a \
2188 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 2336 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
2189 test -n "$runpath" && runpath="${runpath}:" 2337 eval "$xe_add_unique_runpath_dir"
2190 runpath="${runpath}${xe_runpath_dir}" 2338 };; esac
2191 fi
2192 ;; esac
2193 done 2339 done
2194 case "$canonical" in *-solaris2.[1-4]* ) 2340 if test "$opsys $need_motif" = "sol2 yes"; then
2195 test "$need_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; 2341 xe_runpath_dir="/opt/SUNWdt/lib";
2196 esac 2342 eval "$xe_add_unique_runpath_dir";
2343 fi
2197 fi 2344 fi
2198 if test -n "$runpath"; then 2345 if test -n "$runpath"; then
2199 ld_switch_run="${dash_r}${runpath}" 2346 ld_switch_run="${dash_r}${runpath}"
2200 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 2347 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
2201 fi 2348 fi
2216 2363
2217 2364
2218 # Extract the first word of "ranlib", so it can be a program name with args. 2365 # Extract the first word of "ranlib", so it can be a program name with args.
2219 set dummy ranlib; ac_word=$2 2366 set dummy ranlib; ac_word=$2
2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_word" >&5 2368 echo "configure:2369: checking for $ac_word" >&5
2222 2369
2223 if test -n "$RANLIB"; then 2370 if test -n "$RANLIB"; then
2224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2225 else 2372 else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2269 # AIX /bin/install 2416 # AIX /bin/install
2270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2272 # ./install, which can be erroneously created by make from ./install.sh. 2419 # ./install, which can be erroneously created by make from ./install.sh.
2273 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2420 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2274 echo "configure:2275: checking for a BSD compatible install" >&5 2421 echo "configure:2422: checking for a BSD compatible install" >&5
2275 if test -z "$INSTALL"; then 2422 if test -z "$INSTALL"; then
2276 2423
2277 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2424 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2278 for ac_dir in $PATH; do 2425 for ac_dir in $PATH; do
2279 # Account for people who put trailing slashes in PATH elements. 2426 # Account for people who put trailing slashes in PATH elements.
2320 for ac_prog in 'bison -y' byacc 2467 for ac_prog in 'bison -y' byacc
2321 do 2468 do
2322 # Extract the first word of "$ac_prog", so it can be a program name with args. 2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2323 set dummy $ac_prog; ac_word=$2 2470 set dummy $ac_prog; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5 2472 echo "configure:2473: checking for $ac_word" >&5
2326 2473
2327 if test -n "$YACC"; then 2474 if test -n "$YACC"; then
2328 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2475 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2329 else 2476 else
2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2351 2498
2352 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2499 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2353 do 2500 do
2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5 2503 echo "configure:2504: checking for $ac_hdr" >&5
2357 2504
2358 cat > conftest.$ac_ext <<EOF 2505 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure" 2506 #line 2507 "configure"
2360 #include "confdefs.h" 2507 #include "confdefs.h"
2361 #include <$ac_hdr> 2508 #include <$ac_hdr>
2362 EOF 2509 EOF
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2511 { (eval echo configure:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out` 2512 ac_err=`grep -v '^ *+' conftest.out`
2366 if test -z "$ac_err"; then 2513 if test -z "$ac_err"; then
2367 rm -rf conftest* 2514 rm -rf conftest*
2368 eval "ac_cv_header_$ac_safe=yes" 2515 eval "ac_cv_header_$ac_safe=yes"
2369 else 2516 else
2388 else 2535 else
2389 echo "$ac_t""no" 1>&6 2536 echo "$ac_t""no" 1>&6
2390 fi 2537 fi
2391 done 2538 done
2392 2539
2393 for ac_hdr in utime.h locale.h libgen.h 2540 for ac_hdr in utime.h locale.h libgen.h fcntl.h
2394 do 2541 do
2395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2397 echo "configure:2398: checking for $ac_hdr" >&5 2544 echo "configure:2545: checking for $ac_hdr" >&5
2398 2545
2399 cat > conftest.$ac_ext <<EOF 2546 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure" 2547 #line 2548 "configure"
2401 #include "confdefs.h" 2548 #include "confdefs.h"
2402 #include <$ac_hdr> 2549 #include <$ac_hdr>
2403 EOF 2550 EOF
2404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2405 { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2552 { (eval echo configure:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406 ac_err=`grep -v '^ *+' conftest.out` 2553 ac_err=`grep -v '^ *+' conftest.out`
2407 if test -z "$ac_err"; then 2554 if test -z "$ac_err"; then
2408 rm -rf conftest* 2555 rm -rf conftest*
2409 eval "ac_cv_header_$ac_safe=yes" 2556 eval "ac_cv_header_$ac_safe=yes"
2410 else 2557 else
2433 2580
2434 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h 2581 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2435 do 2582 do
2436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5 2585 echo "configure:2586: checking for $ac_hdr" >&5
2439 2586
2440 cat > conftest.$ac_ext <<EOF 2587 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure" 2588 #line 2589 "configure"
2442 #include "confdefs.h" 2589 #include "confdefs.h"
2443 #include <$ac_hdr> 2590 #include <$ac_hdr>
2444 EOF 2591 EOF
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2593 { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out` 2594 ac_err=`grep -v '^ *+' conftest.out`
2448 if test -z "$ac_err"; then 2595 if test -z "$ac_err"; then
2449 rm -rf conftest* 2596 rm -rf conftest*
2450 eval "ac_cv_header_$ac_safe=yes" 2597 eval "ac_cv_header_$ac_safe=yes"
2451 else 2598 else
2471 echo "$ac_t""no" 1>&6 2618 echo "$ac_t""no" 1>&6
2472 fi 2619 fi
2473 done 2620 done
2474 2621
2475 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2622 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2476 echo "configure:2477: checking for sys/wait.h that is POSIX.1 compatible" >&5 2623 echo "configure:2624: checking for sys/wait.h that is POSIX.1 compatible" >&5
2477 2624
2478 cat > conftest.$ac_ext <<EOF 2625 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure" 2626 #line 2627 "configure"
2480 #include "confdefs.h" 2627 #include "confdefs.h"
2481 #include <sys/types.h> 2628 #include <sys/types.h>
2482 #include <sys/wait.h> 2629 #include <sys/wait.h>
2483 #ifndef WEXITSTATUS 2630 #ifndef WEXITSTATUS
2484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2631 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2490 int s; 2637 int s;
2491 wait (&s); 2638 wait (&s);
2492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2639 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2493 ; return 0; } 2640 ; return 0; }
2494 EOF 2641 EOF
2495 if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2642 if { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2496 rm -rf conftest* 2643 rm -rf conftest*
2497 ac_cv_header_sys_wait_h=yes 2644 ac_cv_header_sys_wait_h=yes
2498 else 2645 else
2499 echo "configure: failed program was:" >&5 2646 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5 2647 cat conftest.$ac_ext >&5
2514 } 2661 }
2515 2662
2516 fi 2663 fi
2517 2664
2518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2665 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2519 echo "configure:2520: checking for ANSI C header files" >&5 2666 echo "configure:2667: checking for ANSI C header files" >&5
2520 2667
2521 cat > conftest.$ac_ext <<EOF 2668 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure" 2669 #line 2670 "configure"
2523 #include "confdefs.h" 2670 #include "confdefs.h"
2524 #include <stdlib.h> 2671 #include <stdlib.h>
2525 #include <stdarg.h> 2672 #include <stdarg.h>
2526 #include <string.h> 2673 #include <string.h>
2527 #include <float.h> 2674 #include <float.h>
2528 EOF 2675 EOF
2529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2530 { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2677 { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2531 ac_err=`grep -v '^ *+' conftest.out` 2678 ac_err=`grep -v '^ *+' conftest.out`
2532 if test -z "$ac_err"; then 2679 if test -z "$ac_err"; then
2533 rm -rf conftest* 2680 rm -rf conftest*
2534 ac_cv_header_stdc=yes 2681 ac_cv_header_stdc=yes
2535 else 2682 else
2542 rm -f conftest* 2689 rm -f conftest*
2543 2690
2544 if test $ac_cv_header_stdc = yes; then 2691 if test $ac_cv_header_stdc = yes; then
2545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2546 cat > conftest.$ac_ext <<EOF 2693 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure" 2694 #line 2695 "configure"
2548 #include "confdefs.h" 2695 #include "confdefs.h"
2549 #include <string.h> 2696 #include <string.h>
2550 EOF 2697 EOF
2551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2552 egrep "memchr" >/dev/null 2>&1; then 2699 egrep "memchr" >/dev/null 2>&1; then
2560 fi 2707 fi
2561 2708
2562 if test $ac_cv_header_stdc = yes; then 2709 if test $ac_cv_header_stdc = yes; then
2563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2564 cat > conftest.$ac_ext <<EOF 2711 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure" 2712 #line 2713 "configure"
2566 #include "confdefs.h" 2713 #include "confdefs.h"
2567 #include <stdlib.h> 2714 #include <stdlib.h>
2568 EOF 2715 EOF
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 egrep "free" >/dev/null 2>&1; then 2717 egrep "free" >/dev/null 2>&1; then
2578 fi 2725 fi
2579 2726
2580 if test $ac_cv_header_stdc = yes; then 2727 if test $ac_cv_header_stdc = yes; then
2581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2582 cat > conftest.$ac_ext <<EOF 2729 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure" 2730 #line 2731 "configure"
2584 #include "confdefs.h" 2731 #include "confdefs.h"
2585 #include <ctype.h> 2732 #include <ctype.h>
2586 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2733 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2587 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2734 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2589 int main () { int i; for (i = 0; i < 256; i++) 2736 int main () { int i; for (i = 0; i < 256; i++)
2590 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2737 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2591 exit (0); } 2738 exit (0); }
2592 2739
2593 EOF 2740 EOF
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2595 then 2742 then
2596 : 2743 :
2597 else 2744 else
2598 echo "configure: failed program was:" >&5 2745 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5 2746 cat conftest.$ac_ext >&5
2614 } 2761 }
2615 2762
2616 fi 2763 fi
2617 2764
2618 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2765 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2619 echo "configure:2620: checking whether time.h and sys/time.h may both be included" >&5 2766 echo "configure:2767: checking whether time.h and sys/time.h may both be included" >&5
2620 2767
2621 cat > conftest.$ac_ext <<EOF 2768 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure" 2769 #line 2770 "configure"
2623 #include "confdefs.h" 2770 #include "confdefs.h"
2624 #include <sys/types.h> 2771 #include <sys/types.h>
2625 #include <sys/time.h> 2772 #include <sys/time.h>
2626 #include <time.h> 2773 #include <time.h>
2627 int main() { 2774 int main() {
2628 struct tm *tp; 2775 struct tm *tp;
2629 ; return 0; } 2776 ; return 0; }
2630 EOF 2777 EOF
2631 if { (eval echo configure:2632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2632 rm -rf conftest* 2779 rm -rf conftest*
2633 ac_cv_header_time=yes 2780 ac_cv_header_time=yes
2634 else 2781 else
2635 echo "configure: failed program was:" >&5 2782 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5 2783 cat conftest.$ac_ext >&5
2650 } 2797 }
2651 2798
2652 fi 2799 fi
2653 2800
2654 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2801 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2655 echo "configure:2656: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2802 echo "configure:2803: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2656 2803
2657 cat > conftest.$ac_ext <<EOF 2804 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure" 2805 #line 2806 "configure"
2659 #include "confdefs.h" 2806 #include "confdefs.h"
2660 #include <sys/types.h> 2807 #include <sys/types.h>
2661 #include <signal.h> 2808 #include <signal.h>
2662 /* NetBSD declares sys_siglist in unistd.h. */ 2809 /* NetBSD declares sys_siglist in unistd.h. */
2663 #ifdef HAVE_UNISTD_H 2810 #ifdef HAVE_UNISTD_H
2665 #endif 2812 #endif
2666 int main() { 2813 int main() {
2667 char *msg = *(sys_siglist + 1); 2814 char *msg = *(sys_siglist + 1);
2668 ; return 0; } 2815 ; return 0; }
2669 EOF 2816 EOF
2670 if { (eval echo configure:2671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2817 if { (eval echo configure:2818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2671 rm -rf conftest* 2818 rm -rf conftest*
2672 ac_cv_decl_sys_siglist=yes 2819 ac_cv_decl_sys_siglist=yes
2673 else 2820 else
2674 echo "configure: failed program was:" >&5 2821 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5 2822 cat conftest.$ac_ext >&5
2690 2837
2691 fi 2838 fi
2692 2839
2693 2840
2694 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2841 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2695 echo "configure:2696: checking for struct utimbuf" >&5 2842 echo "configure:2843: checking for struct utimbuf" >&5
2696 cat > conftest.$ac_ext <<EOF 2843 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure" 2844 #line 2845 "configure"
2698 #include "confdefs.h" 2845 #include "confdefs.h"
2699 #ifdef TIME_WITH_SYS_TIME 2846 #ifdef TIME_WITH_SYS_TIME
2700 #include <sys/time.h> 2847 #include <sys/time.h>
2701 #include <time.h> 2848 #include <time.h>
2702 #else 2849 #else
2711 #endif 2858 #endif
2712 int main() { 2859 int main() {
2713 static struct utimbuf x; x.actime = x.modtime; 2860 static struct utimbuf x; x.actime = x.modtime;
2714 ; return 0; } 2861 ; return 0; }
2715 EOF 2862 EOF
2716 if { (eval echo configure:2717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2863 if { (eval echo configure:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2717 rm -rf conftest* 2864 rm -rf conftest*
2718 echo "$ac_t""yes" 1>&6 2865 echo "$ac_t""yes" 1>&6
2719 { test "$extra_verbose" = "yes" && cat << \EOF 2866 { test "$extra_verbose" = "yes" && cat << \EOF
2720 Defining HAVE_STRUCT_UTIMBUF 2867 Defining HAVE_STRUCT_UTIMBUF
2721 EOF 2868 EOF
2731 echo "$ac_t""no" 1>&6 2878 echo "$ac_t""no" 1>&6
2732 fi 2879 fi
2733 rm -f conftest* 2880 rm -f conftest*
2734 2881
2735 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2882 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2736 echo "configure:2737: checking return type of signal handlers" >&5 2883 echo "configure:2884: checking return type of signal handlers" >&5
2737 2884
2738 cat > conftest.$ac_ext <<EOF 2885 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure" 2886 #line 2887 "configure"
2740 #include "confdefs.h" 2887 #include "confdefs.h"
2741 #include <sys/types.h> 2888 #include <sys/types.h>
2742 #include <signal.h> 2889 #include <signal.h>
2743 #ifdef signal 2890 #ifdef signal
2744 #undef signal 2891 #undef signal
2751 2898
2752 int main() { 2899 int main() {
2753 int i; 2900 int i;
2754 ; return 0; } 2901 ; return 0; }
2755 EOF 2902 EOF
2756 if { (eval echo configure:2757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2903 if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2757 rm -rf conftest* 2904 rm -rf conftest*
2758 ac_cv_type_signal=void 2905 ac_cv_type_signal=void
2759 else 2906 else
2760 echo "configure: failed program was:" >&5 2907 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5 2908 cat conftest.$ac_ext >&5
2772 #define RETSIGTYPE $ac_cv_type_signal 2919 #define RETSIGTYPE $ac_cv_type_signal
2773 EOF 2920 EOF
2774 } 2921 }
2775 2922
2776 2923
2924 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2925 echo "configure:2926: checking for size_t" >&5
2926
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 #include <sys/types.h>
2931 #if STDC_HEADERS
2932 #include <stdlib.h>
2933 #include <stddef.h>
2934 #endif
2935 EOF
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2938 rm -rf conftest*
2939 ac_cv_type_size_t=yes
2940 else
2941 rm -rf conftest*
2942 ac_cv_type_size_t=no
2943 fi
2944 rm -f conftest*
2945
2946 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2947 if test $ac_cv_type_size_t = no; then
2948 { test "$extra_verbose" = "yes" && cat << \EOF
2949 Defining size_t = unsigned
2950 EOF
2951 cat >> confdefs.h <<\EOF
2952 #define size_t unsigned
2953 EOF
2954 }
2955
2956 fi
2957
2958 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2959 echo "configure:2960: checking for pid_t" >&5
2960
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/types.h>
2965 #if STDC_HEADERS
2966 #include <stdlib.h>
2967 #include <stddef.h>
2968 #endif
2969 EOF
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2972 rm -rf conftest*
2973 ac_cv_type_pid_t=yes
2974 else
2975 rm -rf conftest*
2976 ac_cv_type_pid_t=no
2977 fi
2978 rm -f conftest*
2979
2980 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2981 if test $ac_cv_type_pid_t = no; then
2982 { test "$extra_verbose" = "yes" && cat << \EOF
2983 Defining pid_t = int
2984 EOF
2985 cat >> confdefs.h <<\EOF
2986 #define pid_t int
2987 EOF
2988 }
2989
2990 fi
2991
2992 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2993 echo "configure:2994: checking for uid_t in sys/types.h" >&5
2994
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <sys/types.h>
2999 EOF
3000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3001 egrep "uid_t" >/dev/null 2>&1; then
3002 rm -rf conftest*
3003 ac_cv_type_uid_t=yes
3004 else
3005 rm -rf conftest*
3006 ac_cv_type_uid_t=no
3007 fi
3008 rm -f conftest*
3009
3010
3011 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3012 if test $ac_cv_type_uid_t = no; then
3013 { test "$extra_verbose" = "yes" && cat << \EOF
3014 Defining uid_t = int
3015 EOF
3016 cat >> confdefs.h <<\EOF
3017 #define uid_t int
3018 EOF
3019 }
3020
3021 { test "$extra_verbose" = "yes" && cat << \EOF
3022 Defining gid_t = int
3023 EOF
3024 cat >> confdefs.h <<\EOF
3025 #define gid_t int
3026 EOF
3027 }
3028
3029 fi
3030
3031 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3032 echo "configure:3033: checking for mode_t" >&5
3033
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include <sys/types.h>
3038 #if STDC_HEADERS
3039 #include <stdlib.h>
3040 #include <stddef.h>
3041 #endif
3042 EOF
3043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3044 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3045 rm -rf conftest*
3046 ac_cv_type_mode_t=yes
3047 else
3048 rm -rf conftest*
3049 ac_cv_type_mode_t=no
3050 fi
3051 rm -f conftest*
3052
3053 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3054 if test $ac_cv_type_mode_t = no; then
3055 { test "$extra_verbose" = "yes" && cat << \EOF
3056 Defining mode_t = int
3057 EOF
3058 cat >> confdefs.h <<\EOF
3059 #define mode_t int
3060 EOF
3061 }
3062
3063 fi
3064
3065 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3066 echo "configure:3067: checking for off_t" >&5
3067
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 #include <sys/types.h>
3072 #if STDC_HEADERS
3073 #include <stdlib.h>
3074 #include <stddef.h>
3075 #endif
3076 EOF
3077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3079 rm -rf conftest*
3080 ac_cv_type_off_t=yes
3081 else
3082 rm -rf conftest*
3083 ac_cv_type_off_t=no
3084 fi
3085 rm -f conftest*
3086
3087 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3088 if test $ac_cv_type_off_t = no; then
3089 { test "$extra_verbose" = "yes" && cat << \EOF
3090 Defining off_t = long
3091 EOF
3092 cat >> confdefs.h <<\EOF
3093 #define off_t long
3094 EOF
3095 }
3096
3097 fi
3098
2777 3099
2778 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3100 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2779 echo "configure:2780: checking for struct timeval" >&5 3101 echo "configure:3102: checking for struct timeval" >&5
2780 cat > conftest.$ac_ext <<EOF 3102 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure" 3103 #line 3104 "configure"
2782 #include "confdefs.h" 3104 #include "confdefs.h"
2783 #ifdef TIME_WITH_SYS_TIME 3105 #ifdef TIME_WITH_SYS_TIME
2784 #include <sys/time.h> 3106 #include <sys/time.h>
2785 #include <time.h> 3107 #include <time.h>
2786 #else 3108 #else
2792 #endif 3114 #endif
2793 int main() { 3115 int main() {
2794 static struct timeval x; x.tv_sec = x.tv_usec; 3116 static struct timeval x; x.tv_sec = x.tv_usec;
2795 ; return 0; } 3117 ; return 0; }
2796 EOF 3118 EOF
2797 if { (eval echo configure:2798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2798 rm -rf conftest* 3120 rm -rf conftest*
2799 echo "$ac_t""yes" 1>&6 3121 echo "$ac_t""yes" 1>&6
2800 HAVE_TIMEVAL=yes 3122 HAVE_TIMEVAL=yes
2801 { test "$extra_verbose" = "yes" && cat << \EOF 3123 { test "$extra_verbose" = "yes" && cat << \EOF
2802 Defining HAVE_TIMEVAL 3124 Defining HAVE_TIMEVAL
2814 HAVE_TIMEVAL=no 3136 HAVE_TIMEVAL=no
2815 fi 3137 fi
2816 rm -f conftest* 3138 rm -f conftest*
2817 3139
2818 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3140 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether struct tm is in sys/time.h or time.h" >&5 3141 echo "configure:3142: checking whether struct tm is in sys/time.h or time.h" >&5
2820 3142
2821 cat > conftest.$ac_ext <<EOF 3143 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure" 3144 #line 3145 "configure"
2823 #include "confdefs.h" 3145 #include "confdefs.h"
2824 #include <sys/types.h> 3146 #include <sys/types.h>
2825 #include <time.h> 3147 #include <time.h>
2826 int main() { 3148 int main() {
2827 struct tm *tp; tp->tm_sec; 3149 struct tm *tp; tp->tm_sec;
2828 ; return 0; } 3150 ; return 0; }
2829 EOF 3151 EOF
2830 if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3152 if { (eval echo configure:3153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2831 rm -rf conftest* 3153 rm -rf conftest*
2832 ac_cv_struct_tm=time.h 3154 ac_cv_struct_tm=time.h
2833 else 3155 else
2834 echo "configure: failed program was:" >&5 3156 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5 3157 cat conftest.$ac_ext >&5
2849 } 3171 }
2850 3172
2851 fi 3173 fi
2852 3174
2853 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3175 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2854 echo "configure:2855: checking for tm_zone in struct tm" >&5 3176 echo "configure:3177: checking for tm_zone in struct tm" >&5
2855 3177
2856 cat > conftest.$ac_ext <<EOF 3178 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure" 3179 #line 3180 "configure"
2858 #include "confdefs.h" 3180 #include "confdefs.h"
2859 #include <sys/types.h> 3181 #include <sys/types.h>
2860 #include <$ac_cv_struct_tm> 3182 #include <$ac_cv_struct_tm>
2861 int main() { 3183 int main() {
2862 struct tm tm; tm.tm_zone; 3184 struct tm tm; tm.tm_zone;
2863 ; return 0; } 3185 ; return 0; }
2864 EOF 3186 EOF
2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2866 rm -rf conftest* 3188 rm -rf conftest*
2867 ac_cv_struct_tm_zone=yes 3189 ac_cv_struct_tm_zone=yes
2868 else 3190 else
2869 echo "configure: failed program was:" >&5 3191 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5 3192 cat conftest.$ac_ext >&5
2883 EOF 3205 EOF
2884 } 3206 }
2885 3207
2886 else 3208 else
2887 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3209 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2888 echo "configure:2889: checking for tzname" >&5 3210 echo "configure:3211: checking for tzname" >&5
2889 3211
2890 cat > conftest.$ac_ext <<EOF 3212 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure" 3213 #line 3214 "configure"
2892 #include "confdefs.h" 3214 #include "confdefs.h"
2893 #include <time.h> 3215 #include <time.h>
2894 #ifndef tzname /* For SGI. */ 3216 #ifndef tzname /* For SGI. */
2895 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3217 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2896 #endif 3218 #endif
2897 int main() { 3219 int main() {
2898 atoi(*tzname); 3220 atoi(*tzname);
2899 ; return 0; } 3221 ; return 0; }
2900 EOF 3222 EOF
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2902 rm -rf conftest* 3224 rm -rf conftest*
2903 ac_cv_var_tzname=yes 3225 ac_cv_var_tzname=yes
2904 else 3226 else
2905 echo "configure: failed program was:" >&5 3227 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5 3228 cat conftest.$ac_ext >&5
2922 fi 3244 fi
2923 fi 3245 fi
2924 3246
2925 3247
2926 echo $ac_n "checking for working const""... $ac_c" 1>&6 3248 echo $ac_n "checking for working const""... $ac_c" 1>&6
2927 echo "configure:2928: checking for working const" >&5 3249 echo "configure:3250: checking for working const" >&5
2928 3250
2929 cat > conftest.$ac_ext <<EOF 3251 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure" 3252 #line 3253 "configure"
2931 #include "confdefs.h" 3253 #include "confdefs.h"
2932 3254
2933 int main() { 3255 int main() {
2934 3256
2935 /* Ultrix mips cc rejects this. */ 3257 /* Ultrix mips cc rejects this. */
2974 const int foo = 10; 3296 const int foo = 10;
2975 } 3297 }
2976 3298
2977 ; return 0; } 3299 ; return 0; }
2978 EOF 3300 EOF
2979 if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2980 rm -rf conftest* 3302 rm -rf conftest*
2981 ac_cv_c_const=yes 3303 ac_cv_c_const=yes
2982 else 3304 else
2983 echo "configure: failed program was:" >&5 3305 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5 3306 cat conftest.$ac_ext >&5
2999 3321
3000 fi 3322 fi
3001 3323
3002 3324
3003 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3325 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3004 echo "configure:3005: checking whether ${MAKE-make} sets \${MAKE}" >&5 3326 echo "configure:3327: checking whether ${MAKE-make} sets \${MAKE}" >&5
3005 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3327 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3006 3328
3007 cat > conftestmake <<\EOF 3329 cat > conftestmake <<\EOF
3008 all: 3330 all:
3009 @echo 'ac_maketemp="${MAKE}"' 3331 @echo 'ac_maketemp="${MAKE}"'
3024 SET_MAKE="MAKE=${MAKE-make}" 3346 SET_MAKE="MAKE=${MAKE-make}"
3025 fi 3347 fi
3026 3348
3027 3349
3028 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3350 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3029 echo "configure:3030: checking whether byte ordering is bigendian" >&5 3351 echo "configure:3352: checking whether byte ordering is bigendian" >&5
3030 3352
3031 ac_cv_c_bigendian=unknown 3353 ac_cv_c_bigendian=unknown
3032 # See if sys/param.h defines the BYTE_ORDER macro. 3354 # See if sys/param.h defines the BYTE_ORDER macro.
3033 cat > conftest.$ac_ext <<EOF 3355 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure" 3356 #line 3357 "configure"
3035 #include "confdefs.h" 3357 #include "confdefs.h"
3036 #include <sys/types.h> 3358 #include <sys/types.h>
3037 #include <sys/param.h> 3359 #include <sys/param.h>
3038 int main() { 3360 int main() {
3039 3361
3040 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3362 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3041 bogus endian macros 3363 bogus endian macros
3042 #endif 3364 #endif
3043 ; return 0; } 3365 ; return 0; }
3044 EOF 3366 EOF
3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3367 if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046 rm -rf conftest* 3368 rm -rf conftest*
3047 # It does; now see whether it defined to BIG_ENDIAN or not. 3369 # It does; now see whether it defined to BIG_ENDIAN or not.
3048 cat > conftest.$ac_ext <<EOF 3370 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure" 3371 #line 3372 "configure"
3050 #include "confdefs.h" 3372 #include "confdefs.h"
3051 #include <sys/types.h> 3373 #include <sys/types.h>
3052 #include <sys/param.h> 3374 #include <sys/param.h>
3053 int main() { 3375 int main() {
3054 3376
3055 #if BYTE_ORDER != BIG_ENDIAN 3377 #if BYTE_ORDER != BIG_ENDIAN
3056 not big endian 3378 not big endian
3057 #endif 3379 #endif
3058 ; return 0; } 3380 ; return 0; }
3059 EOF 3381 EOF
3060 if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3382 if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061 rm -rf conftest* 3383 rm -rf conftest*
3062 ac_cv_c_bigendian=yes 3384 ac_cv_c_bigendian=yes
3063 else 3385 else
3064 echo "configure: failed program was:" >&5 3386 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5 3387 cat conftest.$ac_ext >&5
3072 cat conftest.$ac_ext >&5 3394 cat conftest.$ac_ext >&5
3073 fi 3395 fi
3074 rm -f conftest* 3396 rm -f conftest*
3075 if test $ac_cv_c_bigendian = unknown; then 3397 if test $ac_cv_c_bigendian = unknown; then
3076 cat > conftest.$ac_ext <<EOF 3398 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure" 3399 #line 3400 "configure"
3078 #include "confdefs.h" 3400 #include "confdefs.h"
3079 main () { 3401 main () {
3080 /* Are we little or big endian? From Harbison&Steele. */ 3402 /* Are we little or big endian? From Harbison&Steele. */
3081 union 3403 union
3082 { 3404 {
3085 } u; 3407 } u;
3086 u.l = 1; 3408 u.l = 1;
3087 exit (u.c[sizeof (long) - 1] == 1); 3409 exit (u.c[sizeof (long) - 1] == 1);
3088 } 3410 }
3089 EOF 3411 EOF
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3091 then 3413 then
3092 ac_cv_c_bigendian=no 3414 ac_cv_c_bigendian=no
3093 else 3415 else
3094 echo "configure: failed program was:" >&5 3416 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5 3417 cat conftest.$ac_ext >&5
3111 3433
3112 fi 3434 fi
3113 3435
3114 3436
3115 echo $ac_n "checking size of short""... $ac_c" 1>&6 3437 echo $ac_n "checking size of short""... $ac_c" 1>&6
3116 echo "configure:3117: checking size of short" >&5 3438 echo "configure:3439: checking size of short" >&5
3117 3439
3118 cat > conftest.$ac_ext <<EOF 3440 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure" 3441 #line 3442 "configure"
3120 #include "confdefs.h" 3442 #include "confdefs.h"
3121 #include <stdio.h> 3443 #include <stdio.h>
3122 main() 3444 main()
3123 { 3445 {
3124 FILE *f=fopen("conftestval", "w"); 3446 FILE *f=fopen("conftestval", "w");
3125 if (!f) exit(1); 3447 if (!f) exit(1);
3126 fprintf(f, "%d\n", sizeof(short)); 3448 fprintf(f, "%d\n", sizeof(short));
3127 exit(0); 3449 exit(0);
3128 } 3450 }
3129 EOF 3451 EOF
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3131 then 3453 then
3132 ac_cv_sizeof_short=`cat conftestval` 3454 ac_cv_sizeof_short=`cat conftestval`
3133 else 3455 else
3134 echo "configure: failed program was:" >&5 3456 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5 3457 cat conftest.$ac_ext >&5
3145 #define SIZEOF_SHORT $ac_cv_sizeof_short 3467 #define SIZEOF_SHORT $ac_cv_sizeof_short
3146 EOF 3468 EOF
3147 } 3469 }
3148 3470
3149 3471
3472 if test "$ac_cv_sizeof_short" = 0; then
3473 echo ""
3474 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3475 echo "*** PANIC *** Please examine config.log for compilation errors."
3476 exit 1
3477 fi
3150 echo $ac_n "checking size of int""... $ac_c" 1>&6 3478 echo $ac_n "checking size of int""... $ac_c" 1>&6
3151 echo "configure:3152: checking size of int" >&5 3479 echo "configure:3480: checking size of int" >&5
3152 3480
3153 cat > conftest.$ac_ext <<EOF 3481 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure" 3482 #line 3483 "configure"
3155 #include "confdefs.h" 3483 #include "confdefs.h"
3156 #include <stdio.h> 3484 #include <stdio.h>
3157 main() 3485 main()
3158 { 3486 {
3159 FILE *f=fopen("conftestval", "w"); 3487 FILE *f=fopen("conftestval", "w");
3160 if (!f) exit(1); 3488 if (!f) exit(1);
3161 fprintf(f, "%d\n", sizeof(int)); 3489 fprintf(f, "%d\n", sizeof(int));
3162 exit(0); 3490 exit(0);
3163 } 3491 }
3164 EOF 3492 EOF
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3166 then 3494 then
3167 ac_cv_sizeof_int=`cat conftestval` 3495 ac_cv_sizeof_int=`cat conftestval`
3168 else 3496 else
3169 echo "configure: failed program was:" >&5 3497 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5 3498 cat conftest.$ac_ext >&5
3181 EOF 3509 EOF
3182 } 3510 }
3183 3511
3184 3512
3185 echo $ac_n "checking size of long""... $ac_c" 1>&6 3513 echo $ac_n "checking size of long""... $ac_c" 1>&6
3186 echo "configure:3187: checking size of long" >&5 3514 echo "configure:3515: checking size of long" >&5
3187 3515
3188 cat > conftest.$ac_ext <<EOF 3516 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure" 3517 #line 3518 "configure"
3190 #include "confdefs.h" 3518 #include "confdefs.h"
3191 #include <stdio.h> 3519 #include <stdio.h>
3192 main() 3520 main()
3193 { 3521 {
3194 FILE *f=fopen("conftestval", "w"); 3522 FILE *f=fopen("conftestval", "w");
3195 if (!f) exit(1); 3523 if (!f) exit(1);
3196 fprintf(f, "%d\n", sizeof(long)); 3524 fprintf(f, "%d\n", sizeof(long));
3197 exit(0); 3525 exit(0);
3198 } 3526 }
3199 EOF 3527 EOF
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3201 then 3529 then
3202 ac_cv_sizeof_long=`cat conftestval` 3530 ac_cv_sizeof_long=`cat conftestval`
3203 else 3531 else
3204 echo "configure: failed program was:" >&5 3532 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5 3533 cat conftest.$ac_ext >&5
3215 #define SIZEOF_LONG $ac_cv_sizeof_long 3543 #define SIZEOF_LONG $ac_cv_sizeof_long
3216 EOF 3544 EOF
3217 } 3545 }
3218 3546
3219 3547
3220 if test "$ac_cv_sizeof_long" = 0; then 3548 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3221 echo "" 3549 echo "configure:3550: checking size of long long" >&5
3222 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3550
3223 echo "*** PANIC *** Please examine config.log for compilation errors." 3551 cat > conftest.$ac_ext <<EOF
3224 exit 1 3552 #line 3553 "configure"
3225 fi 3553 #include "confdefs.h"
3554 #include <stdio.h>
3555 main()
3556 {
3557 FILE *f=fopen("conftestval", "w");
3558 if (!f) exit(1);
3559 fprintf(f, "%d\n", sizeof(long long));
3560 exit(0);
3561 }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3564 then
3565 ac_cv_sizeof_long_long=`cat conftestval`
3566 else
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 rm -fr conftest*
3570 ac_cv_sizeof_long_long=0
3571 fi
3572 rm -fr conftest*
3573 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3574 { test "$extra_verbose" = "yes" && cat << EOF
3575 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
3576 EOF
3577 cat >> confdefs.h <<EOF
3578 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3579 EOF
3580 }
3581
3582
3583 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3584 echo "configure:3585: checking size of void *" >&5
3585
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <stdio.h>
3590 main()
3591 {
3592 FILE *f=fopen("conftestval", "w");
3593 if (!f) exit(1);
3594 fprintf(f, "%d\n", sizeof(void *));
3595 exit(0);
3596 }
3597 EOF
3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3599 then
3600 ac_cv_sizeof_void_p=`cat conftestval`
3601 else
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 rm -fr conftest*
3605 ac_cv_sizeof_void_p=0
3606 fi
3607 rm -fr conftest*
3608 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3609 { test "$extra_verbose" = "yes" && cat << EOF
3610 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
3611 EOF
3612 cat >> confdefs.h <<EOF
3613 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3614 EOF
3615 }
3616
3617
3226 3618
3227 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3619 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3228 echo "configure:3229: checking for long file names" >&5 3620 echo "configure:3621: checking for long file names" >&5
3229 3621
3230 ac_cv_sys_long_file_names=yes 3622 ac_cv_sys_long_file_names=yes
3231 # Test for long file names in all the places we know might matter: 3623 # Test for long file names in all the places we know might matter:
3232 # . the current directory, where building will happen 3624 # . the current directory, where building will happen
3233 # $prefix/lib where we will be installing things 3625 # $prefix/lib where we will be installing things
3270 fi 3662 fi
3271 3663
3272 3664
3273 3665
3274 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3666 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3275 echo "configure:3276: checking for sqrt in -lm" >&5 3667 echo "configure:3668: checking for sqrt in -lm" >&5
3276 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3668 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3277 3669
3278 xe_check_libs=" -lm " 3670 xe_check_libs=" -lm "
3279 cat > conftest.$ac_ext <<EOF 3671 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure" 3672 #line 3673 "configure"
3281 #include "confdefs.h" 3673 #include "confdefs.h"
3282 /* Override any gcc2 internal prototype to avoid an error. */ 3674 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2 3675 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */ 3676 builtin and then its argument prototype would still apply. */
3285 char sqrt(); 3677 char sqrt();
3286 3678
3287 int main() { 3679 int main() {
3288 sqrt() 3680 sqrt()
3289 ; return 0; } 3681 ; return 0; }
3290 EOF 3682 EOF
3291 if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3292 rm -rf conftest* 3684 rm -rf conftest*
3293 eval "ac_cv_lib_$ac_lib_var=yes" 3685 eval "ac_cv_lib_$ac_lib_var=yes"
3294 else 3686 else
3295 echo "configure: failed program was:" >&5 3687 echo "configure: failed program was:" >&5
3296 cat conftest.$ac_ext >&5 3688 cat conftest.$ac_ext >&5
3319 fi 3711 fi
3320 3712
3321 3713
3322 3714
3323 3715
3324 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3325 echo "configure:3326: checking for main in -lPW" >&5
3326 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3327
3328 xe_check_libs=" -lPW "
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332
3333 int main() {
3334 main()
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3338 rm -rf conftest*
3339 eval "ac_cv_lib_$ac_lib_var=yes"
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -rf conftest*
3344 eval "ac_cv_lib_$ac_lib_var=no"
3345 fi
3346 rm -f conftest*
3347 xe_check_libs=""
3348
3349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3353 { test "$extra_verbose" = "yes" && cat << EOF
3354 Defining $ac_tr_lib
3355 EOF
3356 cat >> confdefs.h <<EOF
3357 #define $ac_tr_lib 1
3358 EOF
3359 }
3360
3361 LIBS="-lPW $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lPW\" to \$LIBS"; fi
3362
3363 else
3364 echo "$ac_t""no" 1>&6
3365 fi
3366
3367
3368
3369 { test "$extra_verbose" = "yes" && cat << \EOF 3716 { test "$extra_verbose" = "yes" && cat << \EOF
3370 Defining LISP_FLOAT_TYPE 3717 Defining LISP_FLOAT_TYPE
3371 EOF 3718 EOF
3372 cat >> confdefs.h <<\EOF 3719 cat >> confdefs.h <<\EOF
3373 #define LISP_FLOAT_TYPE 1 3720 #define LISP_FLOAT_TYPE 1
3374 EOF 3721 EOF
3375 } 3722 }
3376 3723
3377 3724
3378 echo "checking type of mail spool file locking" 1>&6 3725 echo "checking type of mail spool file locking" 1>&6
3379 echo "configure:3380: checking type of mail spool file locking" >&5 3726 echo "configure:3727: checking type of mail spool file locking" >&5
3380 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3727 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3381 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3728 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3382 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3729 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3383 Defining REAL_MAIL_USE_LOCKF 3730 Defining REAL_MAIL_USE_LOCKF
3384 EOF 3731 EOF
3398 else mail_locking="dot-locking" 3745 else mail_locking="dot-locking"
3399 fi 3746 fi
3400 3747
3401 3748
3402 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3749 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3403 echo "configure:3404: checking for kstat_open in -lkstat" >&5 3750 echo "configure:3751: checking for kstat_open in -lkstat" >&5
3404 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3751 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3405 3752
3406 xe_check_libs=" -lkstat " 3753 xe_check_libs=" -lkstat "
3407 cat > conftest.$ac_ext <<EOF 3754 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure" 3755 #line 3756 "configure"
3409 #include "confdefs.h" 3756 #include "confdefs.h"
3410 /* Override any gcc2 internal prototype to avoid an error. */ 3757 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2 3758 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */ 3759 builtin and then its argument prototype would still apply. */
3413 char kstat_open(); 3760 char kstat_open();
3414 3761
3415 int main() { 3762 int main() {
3416 kstat_open() 3763 kstat_open()
3417 ; return 0; } 3764 ; return 0; }
3418 EOF 3765 EOF
3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3420 rm -rf conftest* 3767 rm -rf conftest*
3421 eval "ac_cv_lib_$ac_lib_var=yes" 3768 eval "ac_cv_lib_$ac_lib_var=yes"
3422 else 3769 else
3423 echo "configure: failed program was:" >&5 3770 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5 3771 cat conftest.$ac_ext >&5
3448 3795
3449 3796
3450 3797
3451 3798
3452 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3799 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3453 echo "configure:3454: checking for kvm_read in -lkvm" >&5 3800 echo "configure:3801: checking for kvm_read in -lkvm" >&5
3454 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3801 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3455 3802
3456 xe_check_libs=" -lkvm " 3803 xe_check_libs=" -lkvm "
3457 cat > conftest.$ac_ext <<EOF 3804 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure" 3805 #line 3806 "configure"
3459 #include "confdefs.h" 3806 #include "confdefs.h"
3460 /* Override any gcc2 internal prototype to avoid an error. */ 3807 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2 3808 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */ 3809 builtin and then its argument prototype would still apply. */
3463 char kvm_read(); 3810 char kvm_read();
3464 3811
3465 int main() { 3812 int main() {
3466 kvm_read() 3813 kvm_read()
3467 ; return 0; } 3814 ; return 0; }
3468 EOF 3815 EOF
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3470 rm -rf conftest* 3817 rm -rf conftest*
3471 eval "ac_cv_lib_$ac_lib_var=yes" 3818 eval "ac_cv_lib_$ac_lib_var=yes"
3472 else 3819 else
3473 echo "configure: failed program was:" >&5 3820 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5 3821 cat conftest.$ac_ext >&5
3498 3845
3499 3846
3500 3847
3501 3848
3502 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3849 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3503 echo "configure:3504: checking for cma_open in -lpthreads" >&5 3850 echo "configure:3851: checking for cma_open in -lpthreads" >&5
3504 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3851 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3505 3852
3506 xe_check_libs=" -lpthreads " 3853 xe_check_libs=" -lpthreads "
3507 cat > conftest.$ac_ext <<EOF 3854 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure" 3855 #line 3856 "configure"
3509 #include "confdefs.h" 3856 #include "confdefs.h"
3510 /* Override any gcc2 internal prototype to avoid an error. */ 3857 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2 3858 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */ 3859 builtin and then its argument prototype would still apply. */
3513 char cma_open(); 3860 char cma_open();
3514 3861
3515 int main() { 3862 int main() {
3516 cma_open() 3863 cma_open()
3517 ; return 0; } 3864 ; return 0; }
3518 EOF 3865 EOF
3519 if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3520 rm -rf conftest* 3867 rm -rf conftest*
3521 eval "ac_cv_lib_$ac_lib_var=yes" 3868 eval "ac_cv_lib_$ac_lib_var=yes"
3522 else 3869 else
3523 echo "configure: failed program was:" >&5 3870 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5 3871 cat conftest.$ac_ext >&5
3550 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 3897 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3551 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 3898 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3552 fi 3899 fi
3553 3900
3554 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 3901 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3555 echo "configure:3556: checking whether the -xildoff compiler flag is required" >&5 3902 echo "configure:3903: checking whether the -xildoff compiler flag is required" >&5
3556 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 3903 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3557 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 3904 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3558 then echo "$ac_t""no" 1>&6; 3905 then echo "$ac_t""no" 1>&6;
3559 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 3906 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
3560 fi 3907 fi
3561 else echo "$ac_t""no" 1>&6 3908 else echo "$ac_t""no" 1>&6
3562 fi 3909 fi
3563 3910
3564 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3911 if test "$opsys" = "sol2" -a "${OS_RELEASE:-0}" -ge 56; then
3565 echo "configure:3566: checking for dynodump" >&5
3566 case "$opsys" in sol2* )
3567 echo "$ac_t""yes" 1>&6
3568 { test "$extra_verbose" = "yes" && cat << \EOF
3569 Defining DYNODUMP
3570 EOF
3571 cat >> confdefs.h <<\EOF
3572 #define DYNODUMP 1
3573 EOF
3574 }
3575
3576 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
3577 case "$machine" in
3578 sparc ) dynodump_arch=sparc ;;
3579 *86* ) dynodump_arch=i386 ;;
3580 powerpc ) dynodump_arch=ppc ;;
3581 esac
3582 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi ;;
3583 *) echo "$ac_t""no" 1>&6 ;;
3584 esac
3585
3586 case "$opsys" in sol2-[6-9]* )
3587 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 3912 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3588 echo "configure:3589: checking for \"-z ignore\" linker flag" >&5 3913 echo "configure:3914: checking for \"-z ignore\" linker flag" >&5
3589 case "`ld -h 2>&1`" in 3914 case "`ld -h 2>&1`" in
3590 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 3915 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3591 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 3916 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3592 *) echo "$ac_t""no" 1>&6 ;; 3917 *) echo "$ac_t""no" 1>&6 ;;
3593 esac ;; 3918 esac
3594 esac 3919 fi
3595 3920
3596 3921
3597 echo "checking "for specified window system"" 1>&6 3922 echo "checking "for specified window system"" 1>&6
3598 echo "configure:3599: checking "for specified window system"" >&5 3923 echo "configure:3924: checking "for specified window system"" >&5
3599 3924
3600 if test "$x_includes $x_libraries" = "NONE NONE"; then 3925 if test "$x_includes $x_libraries" = "NONE NONE"; then
3601 if test -n "$OPENWINHOME" \ 3926 if test -n "$OPENWINHOME" \
3602 -a "$OPENWINHOME" != "/usr/openwin" \ 3927 -a "$OPENWINHOME" != "/usr/openwin" \
3603 -a -d "$OPENWINHOME"; then 3928 -a -d "$OPENWINHOME"; then
3614 # If we find X, set shell vars x_includes and x_libraries to the 3939 # If we find X, set shell vars x_includes and x_libraries to the
3615 # paths, otherwise set no_x=yes. 3940 # paths, otherwise set no_x=yes.
3616 # Uses ac_ vars as temps to allow command line to override cache and checks. 3941 # Uses ac_ vars as temps to allow command line to override cache and checks.
3617 # --without-x overrides everything else, but does not touch the cache. 3942 # --without-x overrides everything else, but does not touch the cache.
3618 echo $ac_n "checking for X""... $ac_c" 1>&6 3943 echo $ac_n "checking for X""... $ac_c" 1>&6
3619 echo "configure:3620: checking for X" >&5 3944 echo "configure:3945: checking for X" >&5
3620 3945
3621 # Check whether --with-x or --without-x was given. 3946 # Check whether --with-x or --without-x was given.
3622 if test "${with_x+set}" = set; then 3947 if test "${with_x+set}" = set; then
3623 withval="$with_x" 3948 withval="$with_x"
3624 : 3949 :
3674 # Guess where to find include files, by looking for this one X11 .h file. 3999 # Guess where to find include files, by looking for this one X11 .h file.
3675 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4000 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3676 4001
3677 # First, try using that file with no special directory specified. 4002 # First, try using that file with no special directory specified.
3678 cat > conftest.$ac_ext <<EOF 4003 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure" 4004 #line 4005 "configure"
3680 #include "confdefs.h" 4005 #include "confdefs.h"
3681 #include <$x_direct_test_include> 4006 #include <$x_direct_test_include>
3682 EOF 4007 EOF
3683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3684 { (eval echo configure:3685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4009 { (eval echo configure:4010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3685 ac_err=`grep -v '^ *+' conftest.out` 4010 ac_err=`grep -v '^ *+' conftest.out`
3686 if test -z "$ac_err"; then 4011 if test -z "$ac_err"; then
3687 rm -rf conftest* 4012 rm -rf conftest*
3688 # We can compile using X headers with no special include directory. 4013 # We can compile using X headers with no special include directory.
3689 ac_x_includes= 4014 ac_x_includes=
3748 # See if we find them without any special options. 4073 # See if we find them without any special options.
3749 # Don't add to $LIBS permanently. 4074 # Don't add to $LIBS permanently.
3750 ac_save_LIBS="$LIBS" 4075 ac_save_LIBS="$LIBS"
3751 LIBS="-l$x_direct_test_library $LIBS" 4076 LIBS="-l$x_direct_test_library $LIBS"
3752 cat > conftest.$ac_ext <<EOF 4077 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure" 4078 #line 4079 "configure"
3754 #include "confdefs.h" 4079 #include "confdefs.h"
3755 4080
3756 int main() { 4081 int main() {
3757 ${x_direct_test_function}() 4082 ${x_direct_test_function}()
3758 ; return 0; } 4083 ; return 0; }
3759 EOF 4084 EOF
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3761 rm -rf conftest* 4086 rm -rf conftest*
3762 LIBS="$ac_save_LIBS" 4087 LIBS="$ac_save_LIBS"
3763 # We can link X programs with no special library path. 4088 # We can link X programs with no special library path.
3764 ac_x_libraries= 4089 ac_x_libraries=
3765 else 4090 else
3864 # For Solaris; some versions of Sun CC require a space after -R and 4189 # For Solaris; some versions of Sun CC require a space after -R and
3865 # others require no space. Words are not sufficient . . . . 4190 # others require no space. Words are not sufficient . . . .
3866 case "`(uname -sr) 2>/dev/null`" in 4191 case "`(uname -sr) 2>/dev/null`" in
3867 "SunOS 5"*) 4192 "SunOS 5"*)
3868 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4193 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3869 echo "configure:3870: checking whether -R must be followed by a space" >&5 4194 echo "configure:4195: checking whether -R must be followed by a space" >&5
3870 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4195 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3871 cat > conftest.$ac_ext <<EOF 4196 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure" 4197 #line 4198 "configure"
3873 #include "confdefs.h" 4198 #include "confdefs.h"
3874 4199
3875 int main() { 4200 int main() {
3876 4201
3877 ; return 0; } 4202 ; return 0; }
3878 EOF 4203 EOF
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3880 rm -rf conftest* 4205 rm -rf conftest*
3881 ac_R_nospace=yes 4206 ac_R_nospace=yes
3882 else 4207 else
3883 echo "configure: failed program was:" >&5 4208 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5 4209 cat conftest.$ac_ext >&5
3890 echo "$ac_t""no" 1>&6 4215 echo "$ac_t""no" 1>&6
3891 X_LIBS="$X_LIBS -R$x_libraries" 4216 X_LIBS="$X_LIBS -R$x_libraries"
3892 else 4217 else
3893 LIBS="$ac_xsave_LIBS -R $x_libraries" 4218 LIBS="$ac_xsave_LIBS -R $x_libraries"
3894 cat > conftest.$ac_ext <<EOF 4219 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure" 4220 #line 4221 "configure"
3896 #include "confdefs.h" 4221 #include "confdefs.h"
3897 4222
3898 int main() { 4223 int main() {
3899 4224
3900 ; return 0; } 4225 ; return 0; }
3901 EOF 4226 EOF
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3903 rm -rf conftest* 4228 rm -rf conftest*
3904 ac_R_space=yes 4229 ac_R_space=yes
3905 else 4230 else
3906 echo "configure: failed program was:" >&5 4231 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5 4232 cat conftest.$ac_ext >&5
3933 if test "$with_dnet" = "no" ; then 4258 if test "$with_dnet" = "no" ; then
3934 ac_cv_lib_dnet_dnet_ntoa=no 4259 ac_cv_lib_dnet_dnet_ntoa=no
3935 else 4260 else
3936 4261
3937 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4262 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3938 echo "configure:3939: checking for dnet_ntoa in -ldnet" >&5 4263 echo "configure:4264: checking for dnet_ntoa in -ldnet" >&5
3939 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4264 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3940 4265
3941 xe_check_libs=" -ldnet " 4266 xe_check_libs=" -ldnet "
3942 cat > conftest.$ac_ext <<EOF 4267 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure" 4268 #line 4269 "configure"
3944 #include "confdefs.h" 4269 #include "confdefs.h"
3945 /* Override any gcc2 internal prototype to avoid an error. */ 4270 /* Override any gcc2 internal prototype to avoid an error. */
3946 /* We use char because int might match the return type of a gcc2 4271 /* We use char because int might match the return type of a gcc2
3947 builtin and then its argument prototype would still apply. */ 4272 builtin and then its argument prototype would still apply. */
3948 char dnet_ntoa(); 4273 char dnet_ntoa();
3949 4274
3950 int main() { 4275 int main() {
3951 dnet_ntoa() 4276 dnet_ntoa()
3952 ; return 0; } 4277 ; return 0; }
3953 EOF 4278 EOF
3954 if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3955 rm -rf conftest* 4280 rm -rf conftest*
3956 eval "ac_cv_lib_$ac_lib_var=yes" 4281 eval "ac_cv_lib_$ac_lib_var=yes"
3957 else 4282 else
3958 echo "configure: failed program was:" >&5 4283 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5 4284 cat conftest.$ac_ext >&5
3973 fi 4298 fi
3974 4299
3975 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3976 4301
3977 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4302 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3978 echo "configure:3979: checking for dnet_ntoa in -ldnet_stub" >&5 4303 echo "configure:4304: checking for dnet_ntoa in -ldnet_stub" >&5
3979 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4304 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3980 4305
3981 xe_check_libs=" -ldnet_stub " 4306 xe_check_libs=" -ldnet_stub "
3982 cat > conftest.$ac_ext <<EOF 4307 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure" 4308 #line 4309 "configure"
3984 #include "confdefs.h" 4309 #include "confdefs.h"
3985 /* Override any gcc2 internal prototype to avoid an error. */ 4310 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2 4311 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */ 4312 builtin and then its argument prototype would still apply. */
3988 char dnet_ntoa(); 4313 char dnet_ntoa();
3989 4314
3990 int main() { 4315 int main() {
3991 dnet_ntoa() 4316 dnet_ntoa()
3992 ; return 0; } 4317 ; return 0; }
3993 EOF 4318 EOF
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3995 rm -rf conftest* 4320 rm -rf conftest*
3996 eval "ac_cv_lib_$ac_lib_var=yes" 4321 eval "ac_cv_lib_$ac_lib_var=yes"
3997 else 4322 else
3998 echo "configure: failed program was:" >&5 4323 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5 4324 cat conftest.$ac_ext >&5
4018 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4343 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4019 # needs -lnsl. 4344 # needs -lnsl.
4020 # The nsl library prevents programs from opening the X display 4345 # The nsl library prevents programs from opening the X display
4021 # on Irix 5.2, according to dickey@clark.net. 4346 # on Irix 5.2, according to dickey@clark.net.
4022 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4347 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4023 echo "configure:4024: checking for gethostbyname" >&5 4348 echo "configure:4349: checking for gethostbyname" >&5
4024 4349
4025 cat > conftest.$ac_ext <<EOF 4350 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure" 4351 #line 4352 "configure"
4027 #include "confdefs.h" 4352 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes, 4353 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char gethostbyname(); below. */ 4354 which can conflict with char gethostbyname(); below. */
4030 #include <assert.h> 4355 #include <assert.h>
4031 /* Override any gcc2 internal prototype to avoid an error. */ 4356 /* Override any gcc2 internal prototype to avoid an error. */
4044 gethostbyname(); 4369 gethostbyname();
4045 #endif 4370 #endif
4046 4371
4047 ; return 0; } 4372 ; return 0; }
4048 EOF 4373 EOF
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4050 rm -rf conftest* 4375 rm -rf conftest*
4051 eval "ac_cv_func_gethostbyname=yes" 4376 eval "ac_cv_func_gethostbyname=yes"
4052 else 4377 else
4053 echo "configure: failed program was:" >&5 4378 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5 4379 cat conftest.$ac_ext >&5
4065 fi 4390 fi
4066 4391
4067 if test $ac_cv_func_gethostbyname = no; then 4392 if test $ac_cv_func_gethostbyname = no; then
4068 4393
4069 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4394 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4070 echo "configure:4071: checking for gethostbyname in -lnsl" >&5 4395 echo "configure:4396: checking for gethostbyname in -lnsl" >&5
4071 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4396 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4072 4397
4073 xe_check_libs=" -lnsl " 4398 xe_check_libs=" -lnsl "
4074 cat > conftest.$ac_ext <<EOF 4399 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure" 4400 #line 4401 "configure"
4076 #include "confdefs.h" 4401 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */ 4402 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2 4403 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */ 4404 builtin and then its argument prototype would still apply. */
4080 char gethostbyname(); 4405 char gethostbyname();
4081 4406
4082 int main() { 4407 int main() {
4083 gethostbyname() 4408 gethostbyname()
4084 ; return 0; } 4409 ; return 0; }
4085 EOF 4410 EOF
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4087 rm -rf conftest* 4412 rm -rf conftest*
4088 eval "ac_cv_lib_$ac_lib_var=yes" 4413 eval "ac_cv_lib_$ac_lib_var=yes"
4089 else 4414 else
4090 echo "configure: failed program was:" >&5 4415 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5 4416 cat conftest.$ac_ext >&5
4111 # on later versions), says simon@lia.di.epfl.ch: it contains 4436 # on later versions), says simon@lia.di.epfl.ch: it contains
4112 # gethostby* variants that don't use the nameserver (or something). 4437 # gethostby* variants that don't use the nameserver (or something).
4113 # -lsocket must be given before -lnsl if both are needed. 4438 # -lsocket must be given before -lnsl if both are needed.
4114 # We assume that if connect needs -lnsl, so does gethostbyname. 4439 # We assume that if connect needs -lnsl, so does gethostbyname.
4115 echo $ac_n "checking for connect""... $ac_c" 1>&6 4440 echo $ac_n "checking for connect""... $ac_c" 1>&6
4116 echo "configure:4117: checking for connect" >&5 4441 echo "configure:4442: checking for connect" >&5
4117 4442
4118 cat > conftest.$ac_ext <<EOF 4443 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure" 4444 #line 4445 "configure"
4120 #include "confdefs.h" 4445 #include "confdefs.h"
4121 /* System header to define __stub macros and hopefully few prototypes, 4446 /* System header to define __stub macros and hopefully few prototypes,
4122 which can conflict with char connect(); below. */ 4447 which can conflict with char connect(); below. */
4123 #include <assert.h> 4448 #include <assert.h>
4124 /* Override any gcc2 internal prototype to avoid an error. */ 4449 /* Override any gcc2 internal prototype to avoid an error. */
4137 connect(); 4462 connect();
4138 #endif 4463 #endif
4139 4464
4140 ; return 0; } 4465 ; return 0; }
4141 EOF 4466 EOF
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4467 if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4143 rm -rf conftest* 4468 rm -rf conftest*
4144 eval "ac_cv_func_connect=yes" 4469 eval "ac_cv_func_connect=yes"
4145 else 4470 else
4146 echo "configure: failed program was:" >&5 4471 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5 4472 cat conftest.$ac_ext >&5
4160 if test $ac_cv_func_connect = no; then 4485 if test $ac_cv_func_connect = no; then
4161 4486
4162 xe_msg_checking="for connect in -lsocket" 4487 xe_msg_checking="for connect in -lsocket"
4163 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4488 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4164 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4489 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4165 echo "configure:4166: checking "$xe_msg_checking"" >&5 4490 echo "configure:4491: checking "$xe_msg_checking"" >&5
4166 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4491 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4167 4492
4168 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4493 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4169 cat > conftest.$ac_ext <<EOF 4494 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure" 4495 #line 4496 "configure"
4171 #include "confdefs.h" 4496 #include "confdefs.h"
4172 /* Override any gcc2 internal prototype to avoid an error. */ 4497 /* Override any gcc2 internal prototype to avoid an error. */
4173 /* We use char because int might match the return type of a gcc2 4498 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */ 4499 builtin and then its argument prototype would still apply. */
4175 char connect(); 4500 char connect();
4176 4501
4177 int main() { 4502 int main() {
4178 connect() 4503 connect()
4179 ; return 0; } 4504 ; return 0; }
4180 EOF 4505 EOF
4181 if { (eval echo configure:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4182 rm -rf conftest* 4507 rm -rf conftest*
4183 eval "ac_cv_lib_$ac_lib_var=yes" 4508 eval "ac_cv_lib_$ac_lib_var=yes"
4184 else 4509 else
4185 echo "configure: failed program was:" >&5 4510 echo "configure: failed program was:" >&5
4186 cat conftest.$ac_ext >&5 4511 cat conftest.$ac_ext >&5
4200 4525
4201 fi 4526 fi
4202 4527
4203 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4528 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4204 echo $ac_n "checking for remove""... $ac_c" 1>&6 4529 echo $ac_n "checking for remove""... $ac_c" 1>&6
4205 echo "configure:4206: checking for remove" >&5 4530 echo "configure:4531: checking for remove" >&5
4206 4531
4207 cat > conftest.$ac_ext <<EOF 4532 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure" 4533 #line 4534 "configure"
4209 #include "confdefs.h" 4534 #include "confdefs.h"
4210 /* System header to define __stub macros and hopefully few prototypes, 4535 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char remove(); below. */ 4536 which can conflict with char remove(); below. */
4212 #include <assert.h> 4537 #include <assert.h>
4213 /* Override any gcc2 internal prototype to avoid an error. */ 4538 /* Override any gcc2 internal prototype to avoid an error. */
4226 remove(); 4551 remove();
4227 #endif 4552 #endif
4228 4553
4229 ; return 0; } 4554 ; return 0; }
4230 EOF 4555 EOF
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4232 rm -rf conftest* 4557 rm -rf conftest*
4233 eval "ac_cv_func_remove=yes" 4558 eval "ac_cv_func_remove=yes"
4234 else 4559 else
4235 echo "configure: failed program was:" >&5 4560 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5 4561 cat conftest.$ac_ext >&5
4247 fi 4572 fi
4248 4573
4249 if test $ac_cv_func_remove = no; then 4574 if test $ac_cv_func_remove = no; then
4250 4575
4251 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4576 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4252 echo "configure:4253: checking for remove in -lposix" >&5 4577 echo "configure:4578: checking for remove in -lposix" >&5
4253 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4578 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4254 4579
4255 xe_check_libs=" -lposix " 4580 xe_check_libs=" -lposix "
4256 cat > conftest.$ac_ext <<EOF 4581 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure" 4582 #line 4583 "configure"
4258 #include "confdefs.h" 4583 #include "confdefs.h"
4259 /* Override any gcc2 internal prototype to avoid an error. */ 4584 /* Override any gcc2 internal prototype to avoid an error. */
4260 /* We use char because int might match the return type of a gcc2 4585 /* We use char because int might match the return type of a gcc2
4261 builtin and then its argument prototype would still apply. */ 4586 builtin and then its argument prototype would still apply. */
4262 char remove(); 4587 char remove();
4263 4588
4264 int main() { 4589 int main() {
4265 remove() 4590 remove()
4266 ; return 0; } 4591 ; return 0; }
4267 EOF 4592 EOF
4268 if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4269 rm -rf conftest* 4594 rm -rf conftest*
4270 eval "ac_cv_lib_$ac_lib_var=yes" 4595 eval "ac_cv_lib_$ac_lib_var=yes"
4271 else 4596 else
4272 echo "configure: failed program was:" >&5 4597 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5 4598 cat conftest.$ac_ext >&5
4287 4612
4288 fi 4613 fi
4289 4614
4290 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4615 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4291 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4616 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4292 echo "configure:4293: checking for shmat" >&5 4617 echo "configure:4618: checking for shmat" >&5
4293 4618
4294 cat > conftest.$ac_ext <<EOF 4619 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure" 4620 #line 4621 "configure"
4296 #include "confdefs.h" 4621 #include "confdefs.h"
4297 /* System header to define __stub macros and hopefully few prototypes, 4622 /* System header to define __stub macros and hopefully few prototypes,
4298 which can conflict with char shmat(); below. */ 4623 which can conflict with char shmat(); below. */
4299 #include <assert.h> 4624 #include <assert.h>
4300 /* Override any gcc2 internal prototype to avoid an error. */ 4625 /* Override any gcc2 internal prototype to avoid an error. */
4313 shmat(); 4638 shmat();
4314 #endif 4639 #endif
4315 4640
4316 ; return 0; } 4641 ; return 0; }
4317 EOF 4642 EOF
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4319 rm -rf conftest* 4644 rm -rf conftest*
4320 eval "ac_cv_func_shmat=yes" 4645 eval "ac_cv_func_shmat=yes"
4321 else 4646 else
4322 echo "configure: failed program was:" >&5 4647 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5 4648 cat conftest.$ac_ext >&5
4334 fi 4659 fi
4335 4660
4336 if test $ac_cv_func_shmat = no; then 4661 if test $ac_cv_func_shmat = no; then
4337 4662
4338 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4663 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4339 echo "configure:4340: checking for shmat in -lipc" >&5 4664 echo "configure:4665: checking for shmat in -lipc" >&5
4340 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4665 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4341 4666
4342 xe_check_libs=" -lipc " 4667 xe_check_libs=" -lipc "
4343 cat > conftest.$ac_ext <<EOF 4668 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure" 4669 #line 4670 "configure"
4345 #include "confdefs.h" 4670 #include "confdefs.h"
4346 /* Override any gcc2 internal prototype to avoid an error. */ 4671 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2 4672 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */ 4673 builtin and then its argument prototype would still apply. */
4349 char shmat(); 4674 char shmat();
4350 4675
4351 int main() { 4676 int main() {
4352 shmat() 4677 shmat()
4353 ; return 0; } 4678 ; return 0; }
4354 EOF 4679 EOF
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4356 rm -rf conftest* 4681 rm -rf conftest*
4357 eval "ac_cv_lib_$ac_lib_var=yes" 4682 eval "ac_cv_lib_$ac_lib_var=yes"
4358 else 4683 else
4359 echo "configure: failed program was:" >&5 4684 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5 4685 cat conftest.$ac_ext >&5
4384 # These have to be linked with before -lX11, unlike the other 4709 # These have to be linked with before -lX11, unlike the other
4385 # libraries we check for below, so use a different variable. 4710 # libraries we check for below, so use a different variable.
4386 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4711 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4387 4712
4388 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4713 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4389 echo "configure:4390: checking for IceConnectionNumber in -lICE" >&5 4714 echo "configure:4715: checking for IceConnectionNumber in -lICE" >&5
4390 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4715 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4391 4716
4392 xe_check_libs=" -lICE " 4717 xe_check_libs=" -lICE "
4393 cat > conftest.$ac_ext <<EOF 4718 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure" 4719 #line 4720 "configure"
4395 #include "confdefs.h" 4720 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */ 4721 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2 4722 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */ 4723 builtin and then its argument prototype would still apply. */
4399 char IceConnectionNumber(); 4724 char IceConnectionNumber();
4400 4725
4401 int main() { 4726 int main() {
4402 IceConnectionNumber() 4727 IceConnectionNumber()
4403 ; return 0; } 4728 ; return 0; }
4404 EOF 4729 EOF
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4406 rm -rf conftest* 4731 rm -rf conftest*
4407 eval "ac_cv_lib_$ac_lib_var=yes" 4732 eval "ac_cv_lib_$ac_lib_var=yes"
4408 else 4733 else
4409 echo "configure: failed program was:" >&5 4734 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5 4735 cat conftest.$ac_ext >&5
4478 4803
4479 ld_switch_x_site="$X_LIBS" 4804 ld_switch_x_site="$X_LIBS"
4480 4805
4481 4806
4482 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 4807 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
4483 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"` 4808 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//"`
4484 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"` 4809 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//"`
4485 4810
4486 runpath="" 4811 runpath="" runpath_dirs=""
4487 if test -n "$LD_RUN_PATH"; then 4812 if test -n "$LD_RUN_PATH"; then
4488 runpath="$LD_RUN_PATH" 4813 runpath="$LD_RUN_PATH"
4489 elif test "$GCC" = "yes"; then 4814 elif test "$GCC" = "yes"; then
4490 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 4815 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
4816 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
4491 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 4817 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
4492 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 4818 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
4493 case "$arg" in P,* | -L* | -R* ) 4819 case "$arg" in P,* | -L* | -R* )
4494 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 4820 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
4495 4821 {
4496 xe_runpath_dir="$dir" 4822 xe_runpath_dir="$dir"
4497 if test "$xe_runpath_dir" != "/lib" -a \ 4823 test "$xe_runpath_dir" != "/lib" -a \
4498 "$xe_runpath_dir" != "/usr/lib" -a \ 4824 "$xe_runpath_dir" != "/usr/lib" -a \
4499 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 4825 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
4500 test -n "$runpath" && runpath="${runpath}:" 4826 eval "$xe_add_unique_runpath_dir"
4501 runpath="${runpath}${xe_runpath_dir}" 4827 }
4502 fi
4503
4504 done ;; 4828 done ;;
4505 esac 4829 esac
4506 done 4830 done
4831 ld_switch_run="$ld_switch_run_save"
4507 rm -f conftest* 4832 rm -f conftest*
4508 else 4833 else
4509 for arg in $ld_switch_site $ld_switch_x_site; do 4834 for arg in $ld_switch_site $ld_switch_x_site; do
4510 case "$arg" in -L*) 4835 case "$arg" in -L*) {
4511 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` 4836 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
4512 if test "$xe_runpath_dir" != "/lib" -a \ 4837 test "$xe_runpath_dir" != "/lib" -a \
4513 "$xe_runpath_dir" != "/usr/lib" -a \ 4838 "$xe_runpath_dir" != "/usr/lib" -a \
4514 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 4839 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
4515 test -n "$runpath" && runpath="${runpath}:" 4840 eval "$xe_add_unique_runpath_dir"
4516 runpath="${runpath}${xe_runpath_dir}" 4841 };; esac
4517 fi
4518 ;; esac
4519 done 4842 done
4520 case "$canonical" in *-solaris2.[1-4]* ) 4843 if test "$opsys $need_motif" = "sol2 yes"; then
4521 test "$need_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; 4844 xe_runpath_dir="/opt/SUNWdt/lib";
4522 esac 4845 eval "$xe_add_unique_runpath_dir";
4846 fi
4523 fi 4847 fi
4524 if test -n "$runpath"; then 4848 if test -n "$runpath"; then
4525 ld_switch_run="${dash_r}${runpath}" 4849 ld_switch_run="${dash_r}${runpath}"
4526 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 4850 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
4527 fi 4851 fi
4528 fi 4852 fi
4529 4853
4530 4854
4531 if test "$extra_verbose" = "yes"; then 4855 if test "$extra_verbose" = "yes"; then
4532 echo; echo "X11 compilation variables:" 4856 echo; echo "X11 compilation variables:"
4533 echo "x_libraries = \"$x_libraries\"" 4857 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
4534 echo "x_includes = \"$x_includes\""
4535 echo "X_CFLAGS = \"$X_CFLAGS\""
4536 echo "X_LIBS = \"$X_LIBS\""
4537 echo "X_PRE_LIBS = \"$X_PRE_LIBS\""
4538 echo "X_EXTRA_LIBS = \"$X_EXTRA_LIBS\""
4539 echo 4858 echo
4540 fi 4859 fi
4541 4860
4861 echo "checking for X defines extracted by xmkmf" 1>&6
4862 echo "configure:4863: checking for X defines extracted by xmkmf" >&5
4863 rm -fr conftestdir
4864 if mkdir conftestdir; then
4865 cd conftestdir
4866 cat > Imakefile <<'EOF'
4867 xetest:
4868 @echo ${PROTO_DEFINES} ${STD_DEFINES}
4869 EOF
4870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4872 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
4873 fi
4874 cd ..
4875 rm -fr conftestdir
4876 for word in $xmkmf_defines; do
4877 case "$word" in
4878 -D*=* ) ;;
4879 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
4880 { test "$extra_verbose" = "yes" && cat << EOF
4881 Defining $word
4882 EOF
4883 cat >> confdefs.h <<EOF
4884 #define $word 1
4885 EOF
4886 }
4887 ;;
4888 esac
4889 done
4890 fi
4891
4542 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 4892 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4543 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 4893 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4544 echo "configure:4545: checking for X11/Intrinsic.h" >&5 4894 echo "configure:4895: checking for X11/Intrinsic.h" >&5
4545 4895
4546 cat > conftest.$ac_ext <<EOF 4896 cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure" 4897 #line 4898 "configure"
4548 #include "confdefs.h" 4898 #include "confdefs.h"
4549 #include <X11/Intrinsic.h> 4899 #include <X11/Intrinsic.h>
4550 EOF 4900 EOF
4551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4552 { (eval echo configure:4553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4902 { (eval echo configure:4903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4553 ac_err=`grep -v '^ *+' conftest.out` 4903 ac_err=`grep -v '^ *+' conftest.out`
4554 if test -z "$ac_err"; then 4904 if test -z "$ac_err"; then
4555 rm -rf conftest* 4905 rm -rf conftest*
4556 eval "ac_cv_header_$ac_safe=yes" 4906 eval "ac_cv_header_$ac_safe=yes"
4557 else 4907 else
4571 fi 4921 fi
4572 4922
4573 4923
4574 4924
4575 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 4925 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4576 echo "configure:4577: checking for XOpenDisplay in -lX11" >&5 4926 echo "configure:4927: checking for XOpenDisplay in -lX11" >&5
4577 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 4927 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4578 4928
4579 xe_check_libs=" -lX11 " 4929 xe_check_libs=" -lX11 "
4580 cat > conftest.$ac_ext <<EOF 4930 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure" 4931 #line 4932 "configure"
4582 #include "confdefs.h" 4932 #include "confdefs.h"
4583 /* Override any gcc2 internal prototype to avoid an error. */ 4933 /* Override any gcc2 internal prototype to avoid an error. */
4584 /* We use char because int might match the return type of a gcc2 4934 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */ 4935 builtin and then its argument prototype would still apply. */
4586 char XOpenDisplay(); 4936 char XOpenDisplay();
4587 4937
4588 int main() { 4938 int main() {
4589 XOpenDisplay() 4939 XOpenDisplay()
4590 ; return 0; } 4940 ; return 0; }
4591 EOF 4941 EOF
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4593 rm -rf conftest* 4943 rm -rf conftest*
4594 eval "ac_cv_lib_$ac_lib_var=yes" 4944 eval "ac_cv_lib_$ac_lib_var=yes"
4595 else 4945 else
4596 echo "configure: failed program was:" >&5 4946 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5 4947 cat conftest.$ac_ext >&5
4612 if test "$have_lib_x11" != "yes"; then 4962 if test "$have_lib_x11" != "yes"; then
4613 4963
4614 xe_msg_checking="for XGetFontProperty in -lX11" 4964 xe_msg_checking="for XGetFontProperty in -lX11"
4615 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 4965 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
4616 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4966 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4617 echo "configure:4618: checking "$xe_msg_checking"" >&5 4967 echo "configure:4968: checking "$xe_msg_checking"" >&5
4618 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 4968 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
4619 4969
4620 xe_check_libs=" -lX11 -b i486-linuxaout" 4970 xe_check_libs=" -lX11 -b i486-linuxaout"
4621 cat > conftest.$ac_ext <<EOF 4971 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure" 4972 #line 4973 "configure"
4623 #include "confdefs.h" 4973 #include "confdefs.h"
4624 /* Override any gcc2 internal prototype to avoid an error. */ 4974 /* Override any gcc2 internal prototype to avoid an error. */
4625 /* We use char because int might match the return type of a gcc2 4975 /* We use char because int might match the return type of a gcc2
4626 builtin and then its argument prototype would still apply. */ 4976 builtin and then its argument prototype would still apply. */
4627 char XGetFontProperty(); 4977 char XGetFontProperty();
4628 4978
4629 int main() { 4979 int main() {
4630 XGetFontProperty() 4980 XGetFontProperty()
4631 ; return 0; } 4981 ; return 0; }
4632 EOF 4982 EOF
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4634 rm -rf conftest* 4984 rm -rf conftest*
4635 eval "ac_cv_lib_$ac_lib_var=yes" 4985 eval "ac_cv_lib_$ac_lib_var=yes"
4636 else 4986 else
4637 echo "configure: failed program was:" >&5 4987 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5 4988 cat conftest.$ac_ext >&5
4655 libs_x="-lX11" 5005 libs_x="-lX11"
4656 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5006 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
4657 5007
4658 5008
4659 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5009 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4660 echo "configure:4661: checking for XShapeSelectInput in -lXext" >&5 5010 echo "configure:5011: checking for XShapeSelectInput in -lXext" >&5
4661 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5011 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4662 5012
4663 xe_check_libs=" -lXext " 5013 xe_check_libs=" -lXext "
4664 cat > conftest.$ac_ext <<EOF 5014 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure" 5015 #line 5016 "configure"
4666 #include "confdefs.h" 5016 #include "confdefs.h"
4667 /* Override any gcc2 internal prototype to avoid an error. */ 5017 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2 5018 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */ 5019 builtin and then its argument prototype would still apply. */
4670 char XShapeSelectInput(); 5020 char XShapeSelectInput();
4671 5021
4672 int main() { 5022 int main() {
4673 XShapeSelectInput() 5023 XShapeSelectInput()
4674 ; return 0; } 5024 ; return 0; }
4675 EOF 5025 EOF
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4677 rm -rf conftest* 5027 rm -rf conftest*
4678 eval "ac_cv_lib_$ac_lib_var=yes" 5028 eval "ac_cv_lib_$ac_lib_var=yes"
4679 else 5029 else
4680 echo "configure: failed program was:" >&5 5030 echo "configure: failed program was:" >&5
4681 cat conftest.$ac_ext >&5 5031 cat conftest.$ac_ext >&5
4695 5045
4696 5046
4697 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 ;; 5047 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 ;;
4698 * ) 5048 * )
4699 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5049 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
4700 echo "configure:4701: checking for XtOpenDisplay in -lXt" >&5 5050 echo "configure:5051: checking for XtOpenDisplay in -lXt" >&5
4701 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5051 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
4702 5052
4703 xe_check_libs=" -lXt " 5053 xe_check_libs=" -lXt "
4704 cat > conftest.$ac_ext <<EOF 5054 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure" 5055 #line 5056 "configure"
4706 #include "confdefs.h" 5056 #include "confdefs.h"
4707 /* Override any gcc2 internal prototype to avoid an error. */ 5057 /* Override any gcc2 internal prototype to avoid an error. */
4708 /* We use char because int might match the return type of a gcc2 5058 /* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */ 5059 builtin and then its argument prototype would still apply. */
4710 char XtOpenDisplay(); 5060 char XtOpenDisplay();
4711 5061
4712 int main() { 5062 int main() {
4713 XtOpenDisplay() 5063 XtOpenDisplay()
4714 ; return 0; } 5064 ; return 0; }
4715 EOF 5065 EOF
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4717 rm -rf conftest* 5067 rm -rf conftest*
4718 eval "ac_cv_lib_$ac_lib_var=yes" 5068 eval "ac_cv_lib_$ac_lib_var=yes"
4719 else 5069 else
4720 echo "configure: failed program was:" >&5 5070 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5 5071 cat conftest.$ac_ext >&5
4735 5085
4736 ;; 5086 ;;
4737 esac 5087 esac
4738 5088
4739 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5089 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
4740 echo "configure:4741: checking the version of X11 being used" >&5 5090 echo "configure:5091: checking the version of X11 being used" >&5
4741 cat > conftest.$ac_ext <<EOF 5091 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure" 5092 #line 5093 "configure"
4743 #include "confdefs.h" 5093 #include "confdefs.h"
4744 #include <X11/Intrinsic.h> 5094 #include <X11/Intrinsic.h>
4745 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5095 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
4746 EOF 5096 EOF
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5097 if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4748 then 5098 then
4749 ./conftest foobar; x11_release=$? 5099 ./conftest foobar; x11_release=$?
4750 else 5100 else
4751 echo "configure: failed program was:" >&5 5101 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5 5102 cat conftest.$ac_ext >&5
4766 5116
4767 for ac_hdr in X11/Xlocale.h 5117 for ac_hdr in X11/Xlocale.h
4768 do 5118 do
4769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4771 echo "configure:4772: checking for $ac_hdr" >&5 5121 echo "configure:5122: checking for $ac_hdr" >&5
4772 5122
4773 cat > conftest.$ac_ext <<EOF 5123 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure" 5124 #line 5125 "configure"
4775 #include "confdefs.h" 5125 #include "confdefs.h"
4776 #include <$ac_hdr> 5126 #include <$ac_hdr>
4777 EOF 5127 EOF
4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5129 { (eval echo configure:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err=`grep -v '^ *+' conftest.out` 5130 ac_err=`grep -v '^ *+' conftest.out`
4781 if test -z "$ac_err"; then 5131 if test -z "$ac_err"; then
4782 rm -rf conftest* 5132 rm -rf conftest*
4783 eval "ac_cv_header_$ac_safe=yes" 5133 eval "ac_cv_header_$ac_safe=yes"
4784 else 5134 else
4805 fi 5155 fi
4806 done 5156 done
4807 5157
4808 5158
4809 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5159 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
4810 echo "configure:4811: checking for XFree86" >&5 5160 echo "configure:5161: checking for XFree86" >&5
4811 if test -d "/usr/X386/include" -o \ 5161 if test -d "/usr/X386/include" -o \
4812 -f "/etc/XF86Config" -o \ 5162 -f "/etc/XF86Config" -o \
4813 -f "/etc/X11/XF86Config" -o \ 5163 -f "/etc/X11/XF86Config" -o \
4814 -f "/usr/X11R6/lib/X11/XF86Config"; then 5164 -f "/usr/X11R6/lib/X11/XF86Config"; then
4815 echo "$ac_t""yes" 1>&6 5165 echo "$ac_t""yes" 1>&6
4827 5177
4828 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 ;; 5178 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 ;;
4829 * ) if test -z "$with_xmu"; then 5179 * ) if test -z "$with_xmu"; then
4830 5180
4831 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 5181 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4832 echo "configure:4833: checking for XmuConvertStandardSelection in -lXmu" >&5 5182 echo "configure:5183: checking for XmuConvertStandardSelection in -lXmu" >&5
4833 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 5183 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4834 5184
4835 xe_check_libs=" -lXmu " 5185 xe_check_libs=" -lXmu "
4836 cat > conftest.$ac_ext <<EOF 5186 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure" 5187 #line 5188 "configure"
4838 #include "confdefs.h" 5188 #include "confdefs.h"
4839 /* Override any gcc2 internal prototype to avoid an error. */ 5189 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2 5190 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */ 5191 builtin and then its argument prototype would still apply. */
4842 char XmuConvertStandardSelection(); 5192 char XmuConvertStandardSelection();
4843 5193
4844 int main() { 5194 int main() {
4845 XmuConvertStandardSelection() 5195 XmuConvertStandardSelection()
4846 ; return 0; } 5196 ; return 0; }
4847 EOF 5197 EOF
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4849 rm -rf conftest* 5199 rm -rf conftest*
4850 eval "ac_cv_lib_$ac_lib_var=yes" 5200 eval "ac_cv_lib_$ac_lib_var=yes"
4851 else 5201 else
4852 echo "configure: failed program was:" >&5 5202 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5 5203 cat conftest.$ac_ext >&5
4876 fi ;; 5226 fi ;;
4877 esac 5227 esac
4878 5228
4879 5229
4880 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5230 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4881 echo "configure:4882: checking for main in -lXbsd" >&5 5231 echo "configure:5232: checking for main in -lXbsd" >&5
4882 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5232 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4883 5233
4884 xe_check_libs=" -lXbsd " 5234 xe_check_libs=" -lXbsd "
4885 cat > conftest.$ac_ext <<EOF 5235 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure" 5236 #line 5237 "configure"
4887 #include "confdefs.h" 5237 #include "confdefs.h"
4888 5238
4889 int main() { 5239 int main() {
4890 main() 5240 main()
4891 ; return 0; } 5241 ; return 0; }
4892 EOF 5242 EOF
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4894 rm -rf conftest* 5244 rm -rf conftest*
4895 eval "ac_cv_lib_$ac_lib_var=yes" 5245 eval "ac_cv_lib_$ac_lib_var=yes"
4896 else 5246 else
4897 echo "configure: failed program was:" >&5 5247 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5 5248 cat conftest.$ac_ext >&5
4911 5261
4912 5262
4913 5263
4914 5264
4915 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 5265 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
4916 echo "configure:4917: checking for XawScrollbarSetThumb in -lXaw" >&5 5266 echo "configure:5267: checking for XawScrollbarSetThumb in -lXaw" >&5
4917 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 5267 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4918 5268
4919 xe_check_libs=" -lXaw " 5269 xe_check_libs=" -lXaw "
4920 cat > conftest.$ac_ext <<EOF 5270 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure" 5271 #line 5272 "configure"
4922 #include "confdefs.h" 5272 #include "confdefs.h"
4923 /* Override any gcc2 internal prototype to avoid an error. */ 5273 /* Override any gcc2 internal prototype to avoid an error. */
4924 /* We use char because int might match the return type of a gcc2 5274 /* We use char because int might match the return type of a gcc2
4925 builtin and then its argument prototype would still apply. */ 5275 builtin and then its argument prototype would still apply. */
4926 char XawScrollbarSetThumb(); 5276 char XawScrollbarSetThumb();
4927 5277
4928 int main() { 5278 int main() {
4929 XawScrollbarSetThumb() 5279 XawScrollbarSetThumb()
4930 ; return 0; } 5280 ; return 0; }
4931 EOF 5281 EOF
4932 if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4933 rm -rf conftest* 5283 rm -rf conftest*
4934 eval "ac_cv_lib_$ac_lib_var=yes" 5284 eval "ac_cv_lib_$ac_lib_var=yes"
4935 else 5285 else
4936 echo "configure: failed program was:" >&5 5286 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5 5287 cat conftest.$ac_ext >&5
4947 else 5297 else
4948 echo "$ac_t""no" 1>&6 5298 echo "$ac_t""no" 1>&6
4949 have_xaw=no 5299 have_xaw=no
4950 fi 5300 fi
4951 5301
4952
4953
4954 echo $ac_n "checking for NARROWPROTO""... $ac_c" 1>&6
4955 echo "configure:4956: checking for NARROWPROTO" >&5
4956 rm -fr conftestdir
4957 if mkdir conftestdir; then
4958 cd conftestdir
4959 cat > Imakefile <<'EOF'
4960 xetest:
4961 @echo 'proto_defines="${PROTO_DEFINES}"'
4962 EOF
4963 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4964 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4965 eval `${MAKE-make} xetest 2>/dev/null | grep -v make`
4966 case "$proto_defines" in *NARROWPROTO* ) narrowproto=yes ;; esac
4967 fi
4968 cd ..
4969 rm -fr conftestdir
4970 fi
4971 test -z "$narrowproto" && narrowproto=no
4972 echo "$ac_t""$narrowproto" 1>&6
4973 test "$narrowproto" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
4974 Defining NARROWPROTO
4975 EOF
4976 cat >> confdefs.h <<\EOF
4977 #define NARROWPROTO 1
4978 EOF
4979 }
4980 5302
4981 5303
4982 fi 5304 fi
4983 test -z "$window_system" && window_system="none" 5305 test -z "$window_system" && window_system="none"
4984 5306
5012 esac 5334 esac
5013 5335
5014 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5336 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5015 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5337 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5016 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5338 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5017 echo "configure:5018: checking for X11/Xauth.h" >&5 5339 echo "configure:5340: checking for X11/Xauth.h" >&5
5018 5340
5019 cat > conftest.$ac_ext <<EOF 5341 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure" 5342 #line 5343 "configure"
5021 #include "confdefs.h" 5343 #include "confdefs.h"
5022 #include <X11/Xauth.h> 5344 #include <X11/Xauth.h>
5023 EOF 5345 EOF
5024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5025 { (eval echo configure:5026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5347 { (eval echo configure:5348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5026 ac_err=`grep -v '^ *+' conftest.out` 5348 ac_err=`grep -v '^ *+' conftest.out`
5027 if test -z "$ac_err"; then 5349 if test -z "$ac_err"; then
5028 rm -rf conftest* 5350 rm -rf conftest*
5029 eval "ac_cv_header_$ac_safe=yes" 5351 eval "ac_cv_header_$ac_safe=yes"
5030 else 5352 else
5043 with_xauth=no 5365 with_xauth=no
5044 fi 5366 fi
5045 } 5367 }
5046 test -z "$with_xauth" && { 5368 test -z "$with_xauth" && {
5047 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5369 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5048 echo "configure:5049: checking for XauGetAuthByAddr in -lXau" >&5 5370 echo "configure:5371: checking for XauGetAuthByAddr in -lXau" >&5
5049 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5371 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5050 5372
5051 xe_check_libs=" -lXau " 5373 xe_check_libs=" -lXau "
5052 cat > conftest.$ac_ext <<EOF 5374 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure" 5375 #line 5376 "configure"
5054 #include "confdefs.h" 5376 #include "confdefs.h"
5055 /* Override any gcc2 internal prototype to avoid an error. */ 5377 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2 5378 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */ 5379 builtin and then its argument prototype would still apply. */
5058 char XauGetAuthByAddr(); 5380 char XauGetAuthByAddr();
5059 5381
5060 int main() { 5382 int main() {
5061 XauGetAuthByAddr() 5383 XauGetAuthByAddr()
5062 ; return 0; } 5384 ; return 0; }
5063 EOF 5385 EOF
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5386 if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5065 rm -rf conftest* 5387 rm -rf conftest*
5066 eval "ac_cv_lib_$ac_lib_var=yes" 5388 eval "ac_cv_lib_$ac_lib_var=yes"
5067 else 5389 else
5068 echo "configure: failed program was:" >&5 5390 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5 5391 cat conftest.$ac_ext >&5
5100 fi 5422 fi
5101 5423
5102 5424
5103 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5425 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5104 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5426 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5105 echo "configure:5106: checking for OffiX/DragAndDrop.h" >&5 5427 echo "configure:5428: checking for OffiX/DragAndDrop.h" >&5
5106 5428
5107 cat > conftest.$ac_ext <<EOF 5429 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure" 5430 #line 5431 "configure"
5109 #include "confdefs.h" 5431 #include "confdefs.h"
5110 #include <OffiX/DragAndDrop.h> 5432 #include <OffiX/DragAndDrop.h>
5111 EOF 5433 EOF
5112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5113 { (eval echo configure:5114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5114 ac_err=`grep -v '^ *+' conftest.out` 5436 ac_err=`grep -v '^ *+' conftest.out`
5115 if test -z "$ac_err"; then 5437 if test -z "$ac_err"; then
5116 rm -rf conftest* 5438 rm -rf conftest*
5117 eval "ac_cv_header_$ac_safe=yes" 5439 eval "ac_cv_header_$ac_safe=yes"
5118 else 5440 else
5131 with_offix=no 5453 with_offix=no
5132 fi 5454 fi
5133 } 5455 }
5134 test -z "$with_offix" && { 5456 test -z "$with_offix" && {
5135 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5457 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5136 echo "configure:5137: checking for DndInitialize in -lDnd" >&5 5458 echo "configure:5459: checking for DndInitialize in -lDnd" >&5
5137 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5459 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5138 5460
5139 xe_check_libs=" -lDnd " 5461 xe_check_libs=" -lDnd "
5140 cat > conftest.$ac_ext <<EOF 5462 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure" 5463 #line 5464 "configure"
5142 #include "confdefs.h" 5464 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */ 5465 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2 5466 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */ 5467 builtin and then its argument prototype would still apply. */
5146 char DndInitialize(); 5468 char DndInitialize();
5147 5469
5148 int main() { 5470 int main() {
5149 DndInitialize() 5471 DndInitialize()
5150 ; return 0; } 5472 ; return 0; }
5151 EOF 5473 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5153 rm -rf conftest* 5475 rm -rf conftest*
5154 eval "ac_cv_lib_$ac_lib_var=yes" 5476 eval "ac_cv_lib_$ac_lib_var=yes"
5155 else 5477 else
5156 echo "configure: failed program was:" >&5 5478 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5 5479 cat conftest.$ac_ext >&5
5186 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5508 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5187 if test "$with_tooltalk" != "no" ; then 5509 if test "$with_tooltalk" != "no" ; then
5188 for dir in "" "Tt/" "desktop/" ; do 5510 for dir in "" "Tt/" "desktop/" ; do
5189 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5511 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5190 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5512 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5191 echo "configure:5192: checking for ${dir}tt_c.h" >&5 5513 echo "configure:5514: checking for ${dir}tt_c.h" >&5
5192 5514
5193 cat > conftest.$ac_ext <<EOF 5515 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure" 5516 #line 5517 "configure"
5195 #include "confdefs.h" 5517 #include "confdefs.h"
5196 #include <${dir}tt_c.h> 5518 #include <${dir}tt_c.h>
5197 EOF 5519 EOF
5198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5199 { (eval echo configure:5200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5521 { (eval echo configure:5522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5200 ac_err=`grep -v '^ *+' conftest.out` 5522 ac_err=`grep -v '^ *+' conftest.out`
5201 if test -z "$ac_err"; then 5523 if test -z "$ac_err"; then
5202 rm -rf conftest* 5524 rm -rf conftest*
5203 eval "ac_cv_header_$ac_safe=yes" 5525 eval "ac_cv_header_$ac_safe=yes"
5204 else 5526 else
5223 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5545 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5224 5546
5225 xe_msg_checking="for tt_message_create in -ltt" 5547 xe_msg_checking="for tt_message_create in -ltt"
5226 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5548 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5227 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5549 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5228 echo "configure:5229: checking "$xe_msg_checking"" >&5 5550 echo "configure:5551: checking "$xe_msg_checking"" >&5
5229 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5551 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5230 5552
5231 xe_check_libs=" -ltt $extra_libs" 5553 xe_check_libs=" -ltt $extra_libs"
5232 cat > conftest.$ac_ext <<EOF 5554 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure" 5555 #line 5556 "configure"
5234 #include "confdefs.h" 5556 #include "confdefs.h"
5235 /* Override any gcc2 internal prototype to avoid an error. */ 5557 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2 5558 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */ 5559 builtin and then its argument prototype would still apply. */
5238 char tt_message_create(); 5560 char tt_message_create();
5239 5561
5240 int main() { 5562 int main() {
5241 tt_message_create() 5563 tt_message_create()
5242 ; return 0; } 5564 ; return 0; }
5243 EOF 5565 EOF
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5566 if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5245 rm -rf conftest* 5567 rm -rf conftest*
5246 eval "ac_cv_lib_$ac_lib_var=yes" 5568 eval "ac_cv_lib_$ac_lib_var=yes"
5247 else 5569 else
5248 echo "configure: failed program was:" >&5 5570 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5 5571 cat conftest.$ac_ext >&5
5288 fi 5610 fi
5289 fi 5611 fi
5290 5612
5291 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5613 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5292 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5614 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5293 echo "configure:5294: checking for Dt/Dt.h" >&5 5615 echo "configure:5616: checking for Dt/Dt.h" >&5
5294 5616
5295 cat > conftest.$ac_ext <<EOF 5617 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure" 5618 #line 5619 "configure"
5297 #include "confdefs.h" 5619 #include "confdefs.h"
5298 #include <Dt/Dt.h> 5620 #include <Dt/Dt.h>
5299 EOF 5621 EOF
5300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5301 { (eval echo configure:5302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5623 { (eval echo configure:5624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5302 ac_err=`grep -v '^ *+' conftest.out` 5624 ac_err=`grep -v '^ *+' conftest.out`
5303 if test -z "$ac_err"; then 5625 if test -z "$ac_err"; then
5304 rm -rf conftest* 5626 rm -rf conftest*
5305 eval "ac_cv_header_$ac_safe=yes" 5627 eval "ac_cv_header_$ac_safe=yes"
5306 else 5628 else
5319 with_cde=no 5641 with_cde=no
5320 fi 5642 fi
5321 } 5643 }
5322 test -z "$with_cde" && { 5644 test -z "$with_cde" && {
5323 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5645 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5324 echo "configure:5325: checking for DtDndDragStart in -lDtSvc" >&5 5646 echo "configure:5647: checking for DtDndDragStart in -lDtSvc" >&5
5325 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5647 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5326 5648
5327 xe_check_libs=" -lDtSvc " 5649 xe_check_libs=" -lDtSvc "
5328 cat > conftest.$ac_ext <<EOF 5650 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure" 5651 #line 5652 "configure"
5330 #include "confdefs.h" 5652 #include "confdefs.h"
5331 /* Override any gcc2 internal prototype to avoid an error. */ 5653 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2 5654 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */ 5655 builtin and then its argument prototype would still apply. */
5334 char DtDndDragStart(); 5656 char DtDndDragStart();
5335 5657
5336 int main() { 5658 int main() {
5337 DtDndDragStart() 5659 DtDndDragStart()
5338 ; return 0; } 5660 ; return 0; }
5339 EOF 5661 EOF
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5341 rm -rf conftest* 5663 rm -rf conftest*
5342 eval "ac_cv_lib_$ac_lib_var=yes" 5664 eval "ac_cv_lib_$ac_lib_var=yes"
5343 else 5665 else
5344 echo "configure: failed program was:" >&5 5666 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5 5667 cat conftest.$ac_ext >&5
5382 EOF 5704 EOF
5383 } 5705 }
5384 5706
5385 5707
5386 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5708 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5387 echo "configure:5388: checking for main in -lenergize" >&5 5709 echo "configure:5710: checking for main in -lenergize" >&5
5388 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5710 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5389 5711
5390 xe_check_libs=" -lenergize " 5712 xe_check_libs=" -lenergize "
5391 cat > conftest.$ac_ext <<EOF 5713 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure" 5714 #line 5715 "configure"
5393 #include "confdefs.h" 5715 #include "confdefs.h"
5394 5716
5395 int main() { 5717 int main() {
5396 main() 5718 main()
5397 ; return 0; } 5719 ; return 0; }
5398 EOF 5720 EOF
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5400 rm -rf conftest* 5722 rm -rf conftest*
5401 eval "ac_cv_lib_$ac_lib_var=yes" 5723 eval "ac_cv_lib_$ac_lib_var=yes"
5402 else 5724 else
5403 echo "configure: failed program was:" >&5 5725 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5 5726 cat conftest.$ac_ext >&5
5426 5748
5427 5749
5428 if test -z "$energize_version"; then 5750 if test -z "$energize_version"; then
5429 5751
5430 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5752 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5431 echo "configure:5432: checking for main in -lconn" >&5 5753 echo "configure:5754: checking for main in -lconn" >&5
5432 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5754 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5433 5755
5434 xe_check_libs=" -lconn " 5756 xe_check_libs=" -lconn "
5435 cat > conftest.$ac_ext <<EOF 5757 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure" 5758 #line 5759 "configure"
5437 #include "confdefs.h" 5759 #include "confdefs.h"
5438 5760
5439 int main() { 5761 int main() {
5440 main() 5762 main()
5441 ; return 0; } 5763 ; return 0; }
5442 EOF 5764 EOF
5443 if { (eval echo configure:5444: \"$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
5444 rm -rf conftest* 5766 rm -rf conftest*
5445 eval "ac_cv_lib_$ac_lib_var=yes" 5767 eval "ac_cv_lib_$ac_lib_var=yes"
5446 else 5768 else
5447 echo "configure: failed program was:" >&5 5769 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5 5770 cat conftest.$ac_ext >&5
5471 5793
5472 5794
5473 fi 5795 fi
5474 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5796 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5475 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5797 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5476 echo "configure:5477: checking for editorconn.h" >&5 5798 echo "configure:5799: checking for editorconn.h" >&5
5477 5799
5478 cat > conftest.$ac_ext <<EOF 5800 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure" 5801 #line 5802 "configure"
5480 #include "confdefs.h" 5802 #include "confdefs.h"
5481 #include <editorconn.h> 5803 #include <editorconn.h>
5482 EOF 5804 EOF
5483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5484 { (eval echo configure:5485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5806 { (eval echo configure:5807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5485 ac_err=`grep -v '^ *+' conftest.out` 5807 ac_err=`grep -v '^ *+' conftest.out`
5486 if test -z "$ac_err"; then 5808 if test -z "$ac_err"; then
5487 rm -rf conftest* 5809 rm -rf conftest*
5488 eval "ac_cv_header_$ac_safe=yes" 5810 eval "ac_cv_header_$ac_safe=yes"
5489 else 5811 else
5521 5843
5522 fi 5844 fi
5523 5845
5524 5846
5525 echo "checking for graphics libraries" 1>&6 5847 echo "checking for graphics libraries" 1>&6
5526 echo "configure:5527: checking for graphics libraries" >&5 5848 echo "configure:5849: checking for graphics libraries" >&5
5527 test -z "$with_gif" && with_gif=yes; 5849 test -z "$with_gif" && with_gif=yes;
5528 if test "$with_gif" = "yes"; then 5850 if test "$with_gif" = "yes"; then
5529 { test "$extra_verbose" = "yes" && cat << \EOF 5851 { test "$extra_verbose" = "yes" && cat << \EOF
5530 Defining HAVE_GIF 5852 Defining HAVE_GIF
5531 EOF 5853 EOF
5537 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then 5859 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then
5538 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 5860 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
5539 fi 5861 fi
5540 fi 5862 fi
5541 5863
5542 echo $ac_n "checking for Xpm""... $ac_c" 1>&6 5864 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
5543 echo "configure:5544: checking for Xpm" >&5 5865 echo "configure:5866: checking for Xpm - no older than 3.4f" >&5
5544 xe_check_libs=-lXpm 5866 xe_check_libs=-lXpm
5545 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 5867 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure" 5868 #line 5869 "configure"
5547 #include "confdefs.h" 5869 #include "confdefs.h"
5548 #include <X11/xpm.h> 5870 #include <X11/xpm.h>
5549 int main(int argc, char *argv[]) { 5871 int main(int c, char **v) {
5550 return (XpmIncludeVersion != XpmLibraryVersion()) || 5872 return c == 1 ? 0 :
5551 XpmIncludeVersion < 30406; 5873 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
5552 } 5874 XpmIncludeVersion < 30406 ? 2 :
5553 EOF 5875 0 ;
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5876 }
5877 EOF
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5555 then 5879 then
5556 with_xpm=yes 5880 ./conftest foobar; xpm_status=$?;
5881 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
5557 else 5882 else
5558 echo "configure: failed program was:" >&5 5883 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5 5884 cat conftest.$ac_ext >&5
5560 rm -fr conftest* 5885 rm -fr conftest*
5561 with_xpm=no 5886 with_xpm=no
5562 fi 5887 fi
5563 rm -fr conftest* 5888 rm -fr conftest*
5564 } 5889 }
5565 xe_check_libs= 5890 xe_check_libs=
5566 echo "$ac_t""$with_xpm" 1>&6 5891 echo "$ac_t""$with_xpm" 1>&6
5892 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
5893 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
5894 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
5895 echo "
5896 *** WARNING *** $problem
5897 I'm not touching that with a 10-foot pole!
5898 If you really want to use the installed version of Xpm, rerun
5899 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
5900 "
5901 fi
5567 if test "$with_xpm" = "yes"; then 5902 if test "$with_xpm" = "yes"; then
5568 { test "$extra_verbose" = "yes" && cat << \EOF 5903 { test "$extra_verbose" = "yes" && cat << \EOF
5569 Defining HAVE_XPM 5904 Defining HAVE_XPM
5570 EOF 5905 EOF
5571 cat >> confdefs.h <<\EOF 5906 cat >> confdefs.h <<\EOF
5576 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5911 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5577 fi 5912 fi
5578 5913
5579 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5914 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5580 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5915 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5581 echo "configure:5582: checking for compface.h" >&5 5916 echo "configure:5917: checking for compface.h" >&5
5582 5917
5583 cat > conftest.$ac_ext <<EOF 5918 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure" 5919 #line 5920 "configure"
5585 #include "confdefs.h" 5920 #include "confdefs.h"
5586 #include <compface.h> 5921 #include <compface.h>
5587 EOF 5922 EOF
5588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5589 { (eval echo configure:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5924 { (eval echo configure:5925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5590 ac_err=`grep -v '^ *+' conftest.out` 5925 ac_err=`grep -v '^ *+' conftest.out`
5591 if test -z "$ac_err"; then 5926 if test -z "$ac_err"; then
5592 rm -rf conftest* 5927 rm -rf conftest*
5593 eval "ac_cv_header_$ac_safe=yes" 5928 eval "ac_cv_header_$ac_safe=yes"
5594 else 5929 else
5607 with_xface=no 5942 with_xface=no
5608 fi 5943 fi
5609 } 5944 }
5610 test -z "$with_xface" && { 5945 test -z "$with_xface" && {
5611 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5946 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5612 echo "configure:5613: checking for UnGenFace in -lcompface" >&5 5947 echo "configure:5948: checking for UnGenFace in -lcompface" >&5
5613 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5948 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5614 5949
5615 xe_check_libs=" -lcompface " 5950 xe_check_libs=" -lcompface "
5616 cat > conftest.$ac_ext <<EOF 5951 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure" 5952 #line 5953 "configure"
5618 #include "confdefs.h" 5953 #include "confdefs.h"
5619 /* Override any gcc2 internal prototype to avoid an error. */ 5954 /* Override any gcc2 internal prototype to avoid an error. */
5620 /* We use char because int might match the return type of a gcc2 5955 /* We use char because int might match the return type of a gcc2
5621 builtin and then its argument prototype would still apply. */ 5956 builtin and then its argument prototype would still apply. */
5622 char UnGenFace(); 5957 char UnGenFace();
5623 5958
5624 int main() { 5959 int main() {
5625 UnGenFace() 5960 UnGenFace()
5626 ; return 0; } 5961 ; return 0; }
5627 EOF 5962 EOF
5628 if { (eval echo configure:5629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5629 rm -rf conftest* 5964 rm -rf conftest*
5630 eval "ac_cv_lib_$ac_lib_var=yes" 5965 eval "ac_cv_lib_$ac_lib_var=yes"
5631 else 5966 else
5632 echo "configure: failed program was:" >&5 5967 echo "configure: failed program was:" >&5
5633 cat conftest.$ac_ext >&5 5968 cat conftest.$ac_ext >&5
5659 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 5994 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
5660 fi 5995 fi
5661 5996
5662 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 5997 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5663 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 5998 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5664 echo "configure:5665: checking for jpeglib.h" >&5 5999 echo "configure:6000: checking for jpeglib.h" >&5
5665 6000
5666 cat > conftest.$ac_ext <<EOF 6001 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure" 6002 #line 6003 "configure"
5668 #include "confdefs.h" 6003 #include "confdefs.h"
5669 #include <jpeglib.h> 6004 #include <jpeglib.h>
5670 EOF 6005 EOF
5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6007 { (eval echo configure:6008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5673 ac_err=`grep -v '^ *+' conftest.out` 6008 ac_err=`grep -v '^ *+' conftest.out`
5674 if test -z "$ac_err"; then 6009 if test -z "$ac_err"; then
5675 rm -rf conftest* 6010 rm -rf conftest*
5676 eval "ac_cv_header_$ac_safe=yes" 6011 eval "ac_cv_header_$ac_safe=yes"
5677 else 6012 else
5690 with_jpeg=no 6025 with_jpeg=no
5691 fi 6026 fi
5692 } 6027 }
5693 test -z "$with_jpeg" && { 6028 test -z "$with_jpeg" && {
5694 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6029 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
5695 echo "configure:5696: checking for jpeg_destroy_decompress in -ljpeg" >&5 6030 echo "configure:6031: checking for jpeg_destroy_decompress in -ljpeg" >&5
5696 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6031 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
5697 6032
5698 xe_check_libs=" -ljpeg " 6033 xe_check_libs=" -ljpeg "
5699 cat > conftest.$ac_ext <<EOF 6034 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure" 6035 #line 6036 "configure"
5701 #include "confdefs.h" 6036 #include "confdefs.h"
5702 /* Override any gcc2 internal prototype to avoid an error. */ 6037 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2 6038 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */ 6039 builtin and then its argument prototype would still apply. */
5705 char jpeg_destroy_decompress(); 6040 char jpeg_destroy_decompress();
5706 6041
5707 int main() { 6042 int main() {
5708 jpeg_destroy_decompress() 6043 jpeg_destroy_decompress()
5709 ; return 0; } 6044 ; return 0; }
5710 EOF 6045 EOF
5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6046 if { (eval echo configure:6047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5712 rm -rf conftest* 6047 rm -rf conftest*
5713 eval "ac_cv_lib_$ac_lib_var=yes" 6048 eval "ac_cv_lib_$ac_lib_var=yes"
5714 else 6049 else
5715 echo "configure: failed program was:" >&5 6050 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5 6051 cat conftest.$ac_ext >&5
5742 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6077 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
5743 fi 6078 fi
5744 6079
5745 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6080 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5746 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6081 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5747 echo "configure:5748: checking for png.h" >&5 6082 echo "configure:6083: checking for png.h" >&5
5748 6083
5749 cat > conftest.$ac_ext <<EOF 6084 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure" 6085 #line 6086 "configure"
5751 #include "confdefs.h" 6086 #include "confdefs.h"
5752 #include <png.h> 6087 #include <png.h>
5753 EOF 6088 EOF
5754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5755 { (eval echo configure:5756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5756 ac_err=`grep -v '^ *+' conftest.out` 6091 ac_err=`grep -v '^ *+' conftest.out`
5757 if test -z "$ac_err"; then 6092 if test -z "$ac_err"; then
5758 rm -rf conftest* 6093 rm -rf conftest*
5759 eval "ac_cv_header_$ac_safe=yes" 6094 eval "ac_cv_header_$ac_safe=yes"
5760 else 6095 else
5772 echo "$ac_t""no" 1>&6 6107 echo "$ac_t""no" 1>&6
5773 with_png=no 6108 with_png=no
5774 fi 6109 fi
5775 } 6110 }
5776 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6111 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
5777 echo "configure:5778: checking for pow" >&5 6112 echo "configure:6113: checking for pow" >&5
5778 6113
5779 cat > conftest.$ac_ext <<EOF 6114 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure" 6115 #line 6116 "configure"
5781 #include "confdefs.h" 6116 #include "confdefs.h"
5782 /* System header to define __stub macros and hopefully few prototypes, 6117 /* System header to define __stub macros and hopefully few prototypes,
5783 which can conflict with char pow(); below. */ 6118 which can conflict with char pow(); below. */
5784 #include <assert.h> 6119 #include <assert.h>
5785 /* Override any gcc2 internal prototype to avoid an error. */ 6120 /* Override any gcc2 internal prototype to avoid an error. */
5798 pow(); 6133 pow();
5799 #endif 6134 #endif
5800 6135
5801 ; return 0; } 6136 ; return 0; }
5802 EOF 6137 EOF
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5804 rm -rf conftest* 6139 rm -rf conftest*
5805 eval "ac_cv_func_pow=yes" 6140 eval "ac_cv_func_pow=yes"
5806 else 6141 else
5807 echo "configure: failed program was:" >&5 6142 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5 6143 cat conftest.$ac_ext >&5
5823 for extra_libs in "" "-lz" "-lgz"; do 6158 for extra_libs in "" "-lz" "-lgz"; do
5824 6159
5825 xe_msg_checking="for png_read_image in -lpng" 6160 xe_msg_checking="for png_read_image in -lpng"
5826 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6161 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5827 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6162 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5828 echo "configure:5829: checking "$xe_msg_checking"" >&5 6163 echo "configure:6164: checking "$xe_msg_checking"" >&5
5829 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6164 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
5830 6165
5831 xe_check_libs=" -lpng $extra_libs" 6166 xe_check_libs=" -lpng $extra_libs"
5832 cat > conftest.$ac_ext <<EOF 6167 cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure" 6168 #line 6169 "configure"
5834 #include "confdefs.h" 6169 #include "confdefs.h"
5835 /* Override any gcc2 internal prototype to avoid an error. */ 6170 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2 6171 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */ 6172 builtin and then its argument prototype would still apply. */
5838 char png_read_image(); 6173 char png_read_image();
5839 6174
5840 int main() { 6175 int main() {
5841 png_read_image() 6176 png_read_image()
5842 ; return 0; } 6177 ; return 0; }
5843 EOF 6178 EOF
5844 if { (eval echo configure:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6179 if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5845 rm -rf conftest* 6180 rm -rf conftest*
5846 eval "ac_cv_lib_$ac_lib_var=yes" 6181 eval "ac_cv_lib_$ac_lib_var=yes"
5847 else 6182 else
5848 echo "configure: failed program was:" >&5 6183 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5 6184 cat conftest.$ac_ext >&5
5889 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 6224 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
5890 fi 6225 fi
5891 6226
5892 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6227 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
5893 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6228 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
5894 echo "configure:5895: checking for Xm/Xm.h" >&5 6229 echo "configure:6230: checking for Xm/Xm.h" >&5
5895 6230
5896 cat > conftest.$ac_ext <<EOF 6231 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure" 6232 #line 6233 "configure"
5898 #include "confdefs.h" 6233 #include "confdefs.h"
5899 #include <Xm/Xm.h> 6234 #include <Xm/Xm.h>
5900 EOF 6235 EOF
5901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5902 { (eval echo configure:5903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6237 { (eval echo configure:6238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5903 ac_err=`grep -v '^ *+' conftest.out` 6238 ac_err=`grep -v '^ *+' conftest.out`
5904 if test -z "$ac_err"; then 6239 if test -z "$ac_err"; then
5905 rm -rf conftest* 6240 rm -rf conftest*
5906 eval "ac_cv_header_$ac_safe=yes" 6241 eval "ac_cv_header_$ac_safe=yes"
5907 else 6242 else
5914 rm -f conftest* 6249 rm -f conftest*
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6 6251 echo "$ac_t""yes" 1>&6
5917 6252
5918 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6253 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
5919 echo "configure:5920: checking for XmStringFree in -lXm" >&5 6254 echo "configure:6255: checking for XmStringFree in -lXm" >&5
5920 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6255 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
5921 6256
5922 xe_check_libs=" -lXm " 6257 xe_check_libs=" -lXm "
5923 cat > conftest.$ac_ext <<EOF 6258 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure" 6259 #line 6260 "configure"
5925 #include "confdefs.h" 6260 #include "confdefs.h"
5926 /* Override any gcc2 internal prototype to avoid an error. */ 6261 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2 6262 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */ 6263 builtin and then its argument prototype would still apply. */
5929 char XmStringFree(); 6264 char XmStringFree();
5930 6265
5931 int main() { 6266 int main() {
5932 XmStringFree() 6267 XmStringFree()
5933 ; return 0; } 6268 ; return 0; }
5934 EOF 6269 EOF
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6270 if { (eval echo configure:6271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5936 rm -rf conftest* 6271 rm -rf conftest*
5937 eval "ac_cv_lib_$ac_lib_var=yes" 6272 eval "ac_cv_lib_$ac_lib_var=yes"
5938 else 6273 else
5939 echo "configure: failed program was:" >&5 6274 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5 6275 cat conftest.$ac_ext >&5
6178 6513
6179 test -z "$with_mule" && with_mule=no 6514 test -z "$with_mule" && with_mule=no
6180 6515
6181 if test "$with_mule" = "yes" ; then 6516 if test "$with_mule" = "yes" ; then
6182 echo "checking for Mule-related features" 1>&6 6517 echo "checking for Mule-related features" 1>&6
6183 echo "configure:6184: checking for Mule-related features" >&5 6518 echo "configure:6519: checking for Mule-related features" >&5
6184 { test "$extra_verbose" = "yes" && cat << \EOF 6519 { test "$extra_verbose" = "yes" && cat << \EOF
6185 Defining MULE 6520 Defining MULE
6186 EOF 6521 EOF
6187 cat >> confdefs.h <<\EOF 6522 cat >> confdefs.h <<\EOF
6188 #define MULE 1 6523 #define MULE 1
6195 6530
6196 for ac_hdr in libintl.h 6531 for ac_hdr in libintl.h
6197 do 6532 do
6198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6200 echo "configure:6201: checking for $ac_hdr" >&5 6535 echo "configure:6536: checking for $ac_hdr" >&5
6201 6536
6202 cat > conftest.$ac_ext <<EOF 6537 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure" 6538 #line 6539 "configure"
6204 #include "confdefs.h" 6539 #include "confdefs.h"
6205 #include <$ac_hdr> 6540 #include <$ac_hdr>
6206 EOF 6541 EOF
6207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6208 { (eval echo configure:6209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6543 { (eval echo configure:6544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6209 ac_err=`grep -v '^ *+' conftest.out` 6544 ac_err=`grep -v '^ *+' conftest.out`
6210 if test -z "$ac_err"; then 6545 if test -z "$ac_err"; then
6211 rm -rf conftest* 6546 rm -rf conftest*
6212 eval "ac_cv_header_$ac_safe=yes" 6547 eval "ac_cv_header_$ac_safe=yes"
6213 else 6548 else
6234 fi 6569 fi
6235 done 6570 done
6236 6571
6237 6572
6238 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6573 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6239 echo "configure:6240: checking for strerror in -lintl" >&5 6574 echo "configure:6575: checking for strerror in -lintl" >&5
6240 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6575 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6241 6576
6242 xe_check_libs=" -lintl " 6577 xe_check_libs=" -lintl "
6243 cat > conftest.$ac_ext <<EOF 6578 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure" 6579 #line 6580 "configure"
6245 #include "confdefs.h" 6580 #include "confdefs.h"
6246 /* Override any gcc2 internal prototype to avoid an error. */ 6581 /* Override any gcc2 internal prototype to avoid an error. */
6247 /* We use char because int might match the return type of a gcc2 6582 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */ 6583 builtin and then its argument prototype would still apply. */
6249 char strerror(); 6584 char strerror();
6250 6585
6251 int main() { 6586 int main() {
6252 strerror() 6587 strerror()
6253 ; return 0; } 6588 ; return 0; }
6254 EOF 6589 EOF
6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6256 rm -rf conftest* 6591 rm -rf conftest*
6257 eval "ac_cv_lib_$ac_lib_var=yes" 6592 eval "ac_cv_lib_$ac_lib_var=yes"
6258 else 6593 else
6259 echo "configure: failed program was:" >&5 6594 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5 6595 cat conftest.$ac_ext >&5
6283 fi 6618 fi
6284 6619
6285 6620
6286 6621
6287 echo "checking for Mule input methods" 1>&6 6622 echo "checking for Mule input methods" 1>&6
6288 echo "configure:6289: checking for Mule input methods" >&5 6623 echo "configure:6624: checking for Mule input methods" >&5
6289 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac 6624 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6290 case "$with_xim" in "" | "yes" ) 6625 case "$with_xim" in "" | "yes" )
6291 echo "checking for XIM" 1>&6 6626 echo "checking for XIM" 1>&6
6292 echo "configure:6293: checking for XIM" >&5 6627 echo "configure:6628: checking for XIM" >&5
6293 6628
6294 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6629 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6295 echo "configure:6296: checking for XmImMbLookupString in -lXm" >&5 6630 echo "configure:6631: checking for XmImMbLookupString in -lXm" >&5
6296 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6631 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6297 6632
6298 xe_check_libs=" -lXm " 6633 xe_check_libs=" -lXm "
6299 cat > conftest.$ac_ext <<EOF 6634 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure" 6635 #line 6636 "configure"
6301 #include "confdefs.h" 6636 #include "confdefs.h"
6302 /* Override any gcc2 internal prototype to avoid an error. */ 6637 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2 6638 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */ 6639 builtin and then its argument prototype would still apply. */
6305 char XmImMbLookupString(); 6640 char XmImMbLookupString();
6306 6641
6307 int main() { 6642 int main() {
6308 XmImMbLookupString() 6643 XmImMbLookupString()
6309 ; return 0; } 6644 ; return 0; }
6310 EOF 6645 EOF
6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6312 rm -rf conftest* 6647 rm -rf conftest*
6313 eval "ac_cv_lib_$ac_lib_var=yes" 6648 eval "ac_cv_lib_$ac_lib_var=yes"
6314 else 6649 else
6315 echo "configure: failed program was:" >&5 6650 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5 6651 cat conftest.$ac_ext >&5
6368 fi 6703 fi
6369 fi 6704 fi
6370 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6705 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6371 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6706 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6372 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6707 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6373 echo "configure:6374: checking for wnn/jllib.h" >&5 6708 echo "configure:6709: checking for wnn/jllib.h" >&5
6374 6709
6375 cat > conftest.$ac_ext <<EOF 6710 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure" 6711 #line 6712 "configure"
6377 #include "confdefs.h" 6712 #include "confdefs.h"
6378 #include <wnn/jllib.h> 6713 #include <wnn/jllib.h>
6379 EOF 6714 EOF
6380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6381 { (eval echo configure:6382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6716 { (eval echo configure:6717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6382 ac_err=`grep -v '^ *+' conftest.out` 6717 ac_err=`grep -v '^ *+' conftest.out`
6383 if test -z "$ac_err"; then 6718 if test -z "$ac_err"; then
6384 rm -rf conftest* 6719 rm -rf conftest*
6385 eval "ac_cv_header_$ac_safe=yes" 6720 eval "ac_cv_header_$ac_safe=yes"
6386 else 6721 else
6399 with_wnn=no 6734 with_wnn=no
6400 fi 6735 fi
6401 } 6736 }
6402 test -z "$with_wnn" && { 6737 test -z "$with_wnn" && {
6403 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 6738 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
6404 echo "configure:6405: checking for jl_dic_list_e in -lwnn" >&5 6739 echo "configure:6740: checking for jl_dic_list_e in -lwnn" >&5
6405 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 6740 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
6406 6741
6407 xe_check_libs=" -lwnn " 6742 xe_check_libs=" -lwnn "
6408 cat > conftest.$ac_ext <<EOF 6743 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure" 6744 #line 6745 "configure"
6410 #include "confdefs.h" 6745 #include "confdefs.h"
6411 /* Override any gcc2 internal prototype to avoid an error. */ 6746 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2 6747 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */ 6748 builtin and then its argument prototype would still apply. */
6414 char jl_dic_list_e(); 6749 char jl_dic_list_e();
6415 6750
6416 int main() { 6751 int main() {
6417 jl_dic_list_e() 6752 jl_dic_list_e()
6418 ; return 0; } 6753 ; return 0; }
6419 EOF 6754 EOF
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6421 rm -rf conftest* 6756 rm -rf conftest*
6422 eval "ac_cv_lib_$ac_lib_var=yes" 6757 eval "ac_cv_lib_$ac_lib_var=yes"
6423 else 6758 else
6424 echo "configure: failed program was:" >&5 6759 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5 6760 cat conftest.$ac_ext >&5
6452 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 6787 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
6453 echo " xemacs will be linked with \"mule-wnnfns.o\"" 6788 echo " xemacs will be linked with \"mule-wnnfns.o\""
6454 fi 6789 fi
6455 6790
6456 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 6791 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
6457 echo "configure:6458: checking for jl_fi_dic_list in -lwnn" >&5 6792 echo "configure:6793: checking for jl_fi_dic_list in -lwnn" >&5
6458 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 6793 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
6459 6794
6460 xe_check_libs=" -lwnn " 6795 xe_check_libs=" -lwnn "
6461 cat > conftest.$ac_ext <<EOF 6796 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure" 6797 #line 6798 "configure"
6463 #include "confdefs.h" 6798 #include "confdefs.h"
6464 /* Override any gcc2 internal prototype to avoid an error. */ 6799 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2 6800 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */ 6801 builtin and then its argument prototype would still apply. */
6467 char jl_fi_dic_list(); 6802 char jl_fi_dic_list();
6468 6803
6469 int main() { 6804 int main() {
6470 jl_fi_dic_list() 6805 jl_fi_dic_list()
6471 ; return 0; } 6806 ; return 0; }
6472 EOF 6807 EOF
6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6474 rm -rf conftest* 6809 rm -rf conftest*
6475 eval "ac_cv_lib_$ac_lib_var=yes" 6810 eval "ac_cv_lib_$ac_lib_var=yes"
6476 else 6811 else
6477 echo "configure: failed program was:" >&5 6812 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5 6813 cat conftest.$ac_ext >&5
6500 6835
6501 fi 6836 fi
6502 6837
6503 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 6838 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
6504 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 6839 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
6505 echo "configure:6506: checking for canna/RK.h" >&5 6840 echo "configure:6841: checking for canna/RK.h" >&5
6506 6841
6507 cat > conftest.$ac_ext <<EOF 6842 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure" 6843 #line 6844 "configure"
6509 #include "confdefs.h" 6844 #include "confdefs.h"
6510 #include <canna/RK.h> 6845 #include <canna/RK.h>
6511 EOF 6846 EOF
6512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6513 { (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6848 { (eval echo configure:6849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6514 ac_err=`grep -v '^ *+' conftest.out` 6849 ac_err=`grep -v '^ *+' conftest.out`
6515 if test -z "$ac_err"; then 6850 if test -z "$ac_err"; then
6516 rm -rf conftest* 6851 rm -rf conftest*
6517 eval "ac_cv_header_$ac_safe=yes" 6852 eval "ac_cv_header_$ac_safe=yes"
6518 else 6853 else
6531 with_canna=no 6866 with_canna=no
6532 fi 6867 fi
6533 } 6868 }
6534 test -z "$with_canna" && { 6869 test -z "$with_canna" && {
6535 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 6870 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
6536 echo "configure:6537: checking for RkBgnBun in -lRKC" >&5 6871 echo "configure:6872: checking for RkBgnBun in -lRKC" >&5
6537 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 6872 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
6538 6873
6539 xe_check_libs=" -lRKC " 6874 xe_check_libs=" -lRKC "
6540 cat > conftest.$ac_ext <<EOF 6875 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure" 6876 #line 6877 "configure"
6542 #include "confdefs.h" 6877 #include "confdefs.h"
6543 /* Override any gcc2 internal prototype to avoid an error. */ 6878 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2 6879 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */ 6880 builtin and then its argument prototype would still apply. */
6546 char RkBgnBun(); 6881 char RkBgnBun();
6547 6882
6548 int main() { 6883 int main() {
6549 RkBgnBun() 6884 RkBgnBun()
6550 ; return 0; } 6885 ; return 0; }
6551 EOF 6886 EOF
6552 if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6553 rm -rf conftest* 6888 rm -rf conftest*
6554 eval "ac_cv_lib_$ac_lib_var=yes" 6889 eval "ac_cv_lib_$ac_lib_var=yes"
6555 else 6890 else
6556 echo "configure: failed program was:" >&5 6891 echo "configure: failed program was:" >&5
6557 cat conftest.$ac_ext >&5 6892 cat conftest.$ac_ext >&5
6570 fi 6905 fi
6571 6906
6572 } 6907 }
6573 test -z "$with_canna" && { 6908 test -z "$with_canna" && {
6574 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 6909 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
6575 echo "configure:6576: checking for jrKanjiControl in -lcanna" >&5 6910 echo "configure:6911: checking for jrKanjiControl in -lcanna" >&5
6576 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 6911 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
6577 6912
6578 xe_check_libs=" -lcanna " 6913 xe_check_libs=" -lcanna "
6579 cat > conftest.$ac_ext <<EOF 6914 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure" 6915 #line 6916 "configure"
6581 #include "confdefs.h" 6916 #include "confdefs.h"
6582 /* Override any gcc2 internal prototype to avoid an error. */ 6917 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2 6918 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */ 6919 builtin and then its argument prototype would still apply. */
6585 char jrKanjiControl(); 6920 char jrKanjiControl();
6586 6921
6587 int main() { 6922 int main() {
6588 jrKanjiControl() 6923 jrKanjiControl()
6589 ; return 0; } 6924 ; return 0; }
6590 EOF 6925 EOF
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6926 if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6592 rm -rf conftest* 6927 rm -rf conftest*
6593 eval "ac_cv_lib_$ac_lib_var=yes" 6928 eval "ac_cv_lib_$ac_lib_var=yes"
6594 else 6929 else
6595 echo "configure: failed program was:" >&5 6930 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5 6931 cat conftest.$ac_ext >&5
6635 6970
6636 if test "$need_motif" = "yes" ; then 6971 if test "$need_motif" = "yes" ; then
6637 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 6972 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
6638 6973
6639 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 6974 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
6640 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"` 6975 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//"`
6641 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/${dash_r}[^ ]*//"` 6976 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//"`
6642 6977
6643 runpath="" 6978 runpath="" runpath_dirs=""
6644 if test -n "$LD_RUN_PATH"; then 6979 if test -n "$LD_RUN_PATH"; then
6645 runpath="$LD_RUN_PATH" 6980 runpath="$LD_RUN_PATH"
6646 elif test "$GCC" = "yes"; then 6981 elif test "$GCC" = "yes"; then
6647 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 6982 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
6983 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
6648 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 6984 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
6649 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 6985 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
6650 case "$arg" in P,* | -L* | -R* ) 6986 case "$arg" in P,* | -L* | -R* )
6651 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 6987 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
6652 6988 {
6653 xe_runpath_dir="$dir" 6989 xe_runpath_dir="$dir"
6654 if test "$xe_runpath_dir" != "/lib" -a \ 6990 test "$xe_runpath_dir" != "/lib" -a \
6655 "$xe_runpath_dir" != "/usr/lib" -a \ 6991 "$xe_runpath_dir" != "/usr/lib" -a \
6656 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 6992 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6657 test -n "$runpath" && runpath="${runpath}:" 6993 eval "$xe_add_unique_runpath_dir"
6658 runpath="${runpath}${xe_runpath_dir}" 6994 }
6659 fi
6660
6661 done ;; 6995 done ;;
6662 esac 6996 esac
6663 done 6997 done
6998 ld_switch_run="$ld_switch_run_save"
6664 rm -f conftest* 6999 rm -f conftest*
6665 else 7000 else
6666 for arg in $ld_switch_site $ld_switch_x_site; do 7001 for arg in $ld_switch_site $ld_switch_x_site; do
6667 case "$arg" in -L*) 7002 case "$arg" in -L*) {
6668 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` 7003 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
6669 if test "$xe_runpath_dir" != "/lib" -a \ 7004 test "$xe_runpath_dir" != "/lib" -a \
6670 "$xe_runpath_dir" != "/usr/lib" -a \ 7005 "$xe_runpath_dir" != "/usr/lib" -a \
6671 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`"; then 7006 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
6672 test -n "$runpath" && runpath="${runpath}:" 7007 eval "$xe_add_unique_runpath_dir"
6673 runpath="${runpath}${xe_runpath_dir}" 7008 };; esac
6674 fi
6675 ;; esac
6676 done 7009 done
6677 case "$canonical" in *-solaris2.[1-4]* ) 7010 if test "$opsys $need_motif" = "sol2 yes"; then
6678 test "$need_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; 7011 xe_runpath_dir="/opt/SUNWdt/lib";
6679 esac 7012 eval "$xe_add_unique_runpath_dir";
7013 fi
6680 fi 7014 fi
6681 if test -n "$runpath"; then 7015 if test -n "$runpath"; then
6682 ld_switch_run="${dash_r}${runpath}" 7016 ld_switch_run="${dash_r}${runpath}"
6683 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 7017 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
6684 fi 7018 fi
6687 fi 7021 fi
6688 7022
6689 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 7023 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
6690 do 7024 do
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5 7026 echo "configure:7027: checking for $ac_func" >&5
6693 7027
6694 cat > conftest.$ac_ext <<EOF 7028 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure" 7029 #line 7030 "configure"
6696 #include "confdefs.h" 7030 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes, 7031 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */ 7032 which can conflict with char $ac_func(); below. */
6699 #include <assert.h> 7033 #include <assert.h>
6700 /* Override any gcc2 internal prototype to avoid an error. */ 7034 /* Override any gcc2 internal prototype to avoid an error. */
6713 $ac_func(); 7047 $ac_func();
6714 #endif 7048 #endif
6715 7049
6716 ; return 0; } 7050 ; return 0; }
6717 EOF 7051 EOF
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6719 rm -rf conftest* 7053 rm -rf conftest*
6720 eval "ac_cv_func_$ac_func=yes" 7054 eval "ac_cv_func_$ac_func=yes"
6721 else 7055 else
6722 echo "configure: failed program was:" >&5 7056 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5 7057 cat conftest.$ac_ext >&5
6750 fi ;; 7084 fi ;;
6751 * ) 7085 * )
6752 for ac_func in realpath 7086 for ac_func in realpath
6753 do 7087 do
6754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6755 echo "configure:6756: checking for $ac_func" >&5 7089 echo "configure:7090: checking for $ac_func" >&5
6756 7090
6757 cat > conftest.$ac_ext <<EOF 7091 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure" 7092 #line 7093 "configure"
6759 #include "confdefs.h" 7093 #include "confdefs.h"
6760 /* System header to define __stub macros and hopefully few prototypes, 7094 /* System header to define __stub macros and hopefully few prototypes,
6761 which can conflict with char $ac_func(); below. */ 7095 which can conflict with char $ac_func(); below. */
6762 #include <assert.h> 7096 #include <assert.h>
6763 /* Override any gcc2 internal prototype to avoid an error. */ 7097 /* Override any gcc2 internal prototype to avoid an error. */
6776 $ac_func(); 7110 $ac_func();
6777 #endif 7111 #endif
6778 7112
6779 ; return 0; } 7113 ; return 0; }
6780 EOF 7114 EOF
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7115 if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6782 rm -rf conftest* 7116 rm -rf conftest*
6783 eval "ac_cv_func_$ac_func=yes" 7117 eval "ac_cv_func_$ac_func=yes"
6784 else 7118 else
6785 echo "configure: failed program was:" >&5 7119 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5 7120 cat conftest.$ac_ext >&5
6809 echo " xemacs will be linked with \"realpath.o\"" 7143 echo " xemacs will be linked with \"realpath.o\""
6810 fi ;; 7144 fi ;;
6811 esac 7145 esac
6812 7146
6813 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7147 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
6814 echo "configure:6815: checking whether netdb declares h_errno" >&5 7148 echo "configure:7149: checking whether netdb declares h_errno" >&5
6815 cat > conftest.$ac_ext <<EOF 7149 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure" 7150 #line 7151 "configure"
6817 #include "confdefs.h" 7151 #include "confdefs.h"
6818 #include <netdb.h> 7152 #include <netdb.h>
6819 int main() { 7153 int main() {
6820 return h_errno; 7154 return h_errno;
6821 ; return 0; } 7155 ; return 0; }
6822 EOF 7156 EOF
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6824 rm -rf conftest* 7158 rm -rf conftest*
6825 echo "$ac_t""yes" 1>&6 7159 echo "$ac_t""yes" 1>&6
6826 { test "$extra_verbose" = "yes" && cat << \EOF 7160 { test "$extra_verbose" = "yes" && cat << \EOF
6827 Defining HAVE_H_ERRNO 7161 Defining HAVE_H_ERRNO
6828 EOF 7162 EOF
6838 echo "$ac_t""no" 1>&6 7172 echo "$ac_t""no" 1>&6
6839 fi 7173 fi
6840 rm -f conftest* 7174 rm -f conftest*
6841 7175
6842 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7176 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6843 echo "configure:6844: checking for sigsetjmp" >&5 7177 echo "configure:7178: checking for sigsetjmp" >&5
6844 cat > conftest.$ac_ext <<EOF 7178 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure" 7179 #line 7180 "configure"
6846 #include "confdefs.h" 7180 #include "confdefs.h"
6847 #include <setjmp.h> 7181 #include <setjmp.h>
6848 int main() { 7182 int main() {
6849 sigjmp_buf bar; sigsetjmp (bar, 0); 7183 sigjmp_buf bar; sigsetjmp (bar, 0);
6850 ; return 0; } 7184 ; return 0; }
6851 EOF 7185 EOF
6852 if { (eval echo configure:6853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7186 if { (eval echo configure:7187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6853 rm -rf conftest* 7187 rm -rf conftest*
6854 echo "$ac_t""yes" 1>&6 7188 echo "$ac_t""yes" 1>&6
6855 { test "$extra_verbose" = "yes" && cat << \EOF 7189 { test "$extra_verbose" = "yes" && cat << \EOF
6856 Defining HAVE_SIGSETJMP 7190 Defining HAVE_SIGSETJMP
6857 EOF 7191 EOF
6867 echo "$ac_t""no" 1>&6 7201 echo "$ac_t""no" 1>&6
6868 fi 7202 fi
6869 rm -f conftest* 7203 rm -f conftest*
6870 7204
6871 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7205 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6872 echo "configure:6873: checking whether localtime caches TZ" >&5 7206 echo "configure:7207: checking whether localtime caches TZ" >&5
6873 7207
6874 if test "$ac_cv_func_tzset" = "yes"; then 7208 if test "$ac_cv_func_tzset" = "yes"; then
6875 cat > conftest.$ac_ext <<EOF 7209 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure" 7210 #line 7211 "configure"
6877 #include "confdefs.h" 7211 #include "confdefs.h"
6878 #include <time.h> 7212 #include <time.h>
6879 #if STDC_HEADERS 7213 #if STDC_HEADERS
6880 # include <stdlib.h> 7214 # include <stdlib.h>
6881 #endif 7215 #endif
6906 if (localtime (&now)->tm_hour != hour_unset) 7240 if (localtime (&now)->tm_hour != hour_unset)
6907 exit (1); 7241 exit (1);
6908 exit (0); 7242 exit (0);
6909 } 7243 }
6910 EOF 7244 EOF
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6912 then 7246 then
6913 emacs_cv_localtime_cache=no 7247 emacs_cv_localtime_cache=no
6914 else 7248 else
6915 echo "configure: failed program was:" >&5 7249 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5 7250 cat conftest.$ac_ext >&5
6935 7269
6936 fi 7270 fi
6937 7271
6938 if test "$HAVE_TIMEVAL" = "yes"; then 7272 if test "$HAVE_TIMEVAL" = "yes"; then
6939 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7273 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
6940 echo "configure:6941: checking whether gettimeofday cannot accept two arguments" >&5 7274 echo "configure:7275: checking whether gettimeofday cannot accept two arguments" >&5
6941 cat > conftest.$ac_ext <<EOF 7275 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure" 7276 #line 7277 "configure"
6943 #include "confdefs.h" 7277 #include "confdefs.h"
6944 7278
6945 #ifdef TIME_WITH_SYS_TIME 7279 #ifdef TIME_WITH_SYS_TIME
6946 #include <sys/time.h> 7280 #include <sys/time.h>
6947 #include <time.h> 7281 #include <time.h>
6959 struct timezone dummy; 7293 struct timezone dummy;
6960 gettimeofday (&time, &dummy); 7294 gettimeofday (&time, &dummy);
6961 7295
6962 ; return 0; } 7296 ; return 0; }
6963 EOF 7297 EOF
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7298 if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6965 rm -rf conftest* 7299 rm -rf conftest*
6966 echo "$ac_t""no" 1>&6 7300 echo "$ac_t""no" 1>&6
6967 else 7301 else
6968 echo "configure: failed program was:" >&5 7302 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5 7303 cat conftest.$ac_ext >&5
6981 rm -f conftest* 7315 rm -f conftest*
6982 fi 7316 fi
6983 7317
6984 7318
6985 echo $ac_n "checking for inline""... $ac_c" 1>&6 7319 echo $ac_n "checking for inline""... $ac_c" 1>&6
6986 echo "configure:6987: checking for inline" >&5 7320 echo "configure:7321: checking for inline" >&5
6987 7321
6988 ac_cv_c_inline=no 7322 ac_cv_c_inline=no
6989 for ac_kw in inline __inline__ __inline; do 7323 for ac_kw in inline __inline__ __inline; do
6990 cat > conftest.$ac_ext <<EOF 7324 cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure" 7325 #line 7326 "configure"
6992 #include "confdefs.h" 7326 #include "confdefs.h"
6993 7327
6994 int main() { 7328 int main() {
6995 } $ac_kw foo() { 7329 } $ac_kw foo() {
6996 ; return 0; } 7330 ; return 0; }
6997 EOF 7331 EOF
6998 if { (eval echo configure:6999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7332 if { (eval echo configure:7333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6999 rm -rf conftest* 7333 rm -rf conftest*
7000 ac_cv_c_inline=$ac_kw; break 7334 ac_cv_c_inline=$ac_kw; break
7001 else 7335 else
7002 echo "configure: failed program was:" >&5 7336 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5 7337 cat conftest.$ac_ext >&5
7043 7377
7044 7378
7045 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7379 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7046 # for constant arguments. Useless! 7380 # for constant arguments. Useless!
7047 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7381 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7048 echo "configure:7049: checking for working alloca.h" >&5 7382 echo "configure:7383: checking for working alloca.h" >&5
7049 7383
7050 cat > conftest.$ac_ext <<EOF 7384 cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure" 7385 #line 7386 "configure"
7052 #include "confdefs.h" 7386 #include "confdefs.h"
7053 #include <alloca.h> 7387 #include <alloca.h>
7054 int main() { 7388 int main() {
7055 char *p = alloca(2 * sizeof(int)); 7389 char *p = alloca(2 * sizeof(int));
7056 ; return 0; } 7390 ; return 0; }
7057 EOF 7391 EOF
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7392 if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7059 rm -rf conftest* 7393 rm -rf conftest*
7060 ac_cv_header_alloca_h=yes 7394 ac_cv_header_alloca_h=yes
7061 else 7395 else
7062 echo "configure: failed program was:" >&5 7396 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5 7397 cat conftest.$ac_ext >&5
7077 } 7411 }
7078 7412
7079 fi 7413 fi
7080 7414
7081 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7415 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7082 echo "configure:7083: checking for alloca" >&5 7416 echo "configure:7417: checking for alloca" >&5
7083 7417
7084 cat > conftest.$ac_ext <<EOF 7418 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure" 7419 #line 7420 "configure"
7086 #include "confdefs.h" 7420 #include "confdefs.h"
7087 7421
7088 #ifdef __GNUC__ 7422 #ifdef __GNUC__
7089 # define alloca __builtin_alloca 7423 # define alloca __builtin_alloca
7090 #else 7424 #else
7103 7437
7104 int main() { 7438 int main() {
7105 char *p = (char *) alloca(1); 7439 char *p = (char *) alloca(1);
7106 ; return 0; } 7440 ; return 0; }
7107 EOF 7441 EOF
7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7109 rm -rf conftest* 7443 rm -rf conftest*
7110 ac_cv_func_alloca_works=yes 7444 ac_cv_func_alloca_works=yes
7111 else 7445 else
7112 echo "configure: failed program was:" >&5 7446 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5 7447 cat conftest.$ac_ext >&5
7142 EOF 7476 EOF
7143 } 7477 }
7144 7478
7145 7479
7146 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7480 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7147 echo "configure:7148: checking whether alloca needs Cray hooks" >&5 7481 echo "configure:7482: checking whether alloca needs Cray hooks" >&5
7148 7482
7149 cat > conftest.$ac_ext <<EOF 7483 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure" 7484 #line 7485 "configure"
7151 #include "confdefs.h" 7485 #include "confdefs.h"
7152 #if defined(CRAY) && ! defined(CRAY2) 7486 #if defined(CRAY) && ! defined(CRAY2)
7153 webecray 7487 webecray
7154 #else 7488 #else
7155 wenotbecray 7489 wenotbecray
7169 7503
7170 echo "$ac_t""$ac_cv_os_cray" 1>&6 7504 echo "$ac_t""$ac_cv_os_cray" 1>&6
7171 if test $ac_cv_os_cray = yes; then 7505 if test $ac_cv_os_cray = yes; then
7172 for ac_func in _getb67 GETB67 getb67; do 7506 for ac_func in _getb67 GETB67 getb67; do
7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_func" >&5 7508 echo "configure:7509: checking for $ac_func" >&5
7175 7509
7176 cat > conftest.$ac_ext <<EOF 7510 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure" 7511 #line 7512 "configure"
7178 #include "confdefs.h" 7512 #include "confdefs.h"
7179 /* System header to define __stub macros and hopefully few prototypes, 7513 /* System header to define __stub macros and hopefully few prototypes,
7180 which can conflict with char $ac_func(); below. */ 7514 which can conflict with char $ac_func(); below. */
7181 #include <assert.h> 7515 #include <assert.h>
7182 /* Override any gcc2 internal prototype to avoid an error. */ 7516 /* Override any gcc2 internal prototype to avoid an error. */
7195 $ac_func(); 7529 $ac_func();
7196 #endif 7530 #endif
7197 7531
7198 ; return 0; } 7532 ; return 0; }
7199 EOF 7533 EOF
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7534 if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7201 rm -rf conftest* 7535 rm -rf conftest*
7202 eval "ac_cv_func_$ac_func=yes" 7536 eval "ac_cv_func_$ac_func=yes"
7203 else 7537 else
7204 echo "configure: failed program was:" >&5 7538 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5 7539 cat conftest.$ac_ext >&5
7225 7559
7226 done 7560 done
7227 fi 7561 fi
7228 7562
7229 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7563 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7230 echo "configure:7231: checking stack direction for C alloca" >&5 7564 echo "configure:7565: checking stack direction for C alloca" >&5
7231 7565
7232 cat > conftest.$ac_ext <<EOF 7566 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure" 7567 #line 7568 "configure"
7234 #include "confdefs.h" 7568 #include "confdefs.h"
7235 find_stack_direction () 7569 find_stack_direction ()
7236 { 7570 {
7237 static char *addr = 0; 7571 static char *addr = 0;
7238 auto char dummy; 7572 auto char dummy;
7247 main () 7581 main ()
7248 { 7582 {
7249 exit (find_stack_direction() < 0); 7583 exit (find_stack_direction() < 0);
7250 } 7584 }
7251 EOF 7585 EOF
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7586 if { (eval echo configure:7587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7253 then 7587 then
7254 ac_cv_c_stack_direction=1 7588 ac_cv_c_stack_direction=1
7255 else 7589 else
7256 echo "configure: failed program was:" >&5 7590 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5 7591 cat conftest.$ac_ext >&5
7273 7607
7274 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then 7608 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
7275 echo " xemacs will be linked with \"$ALLOCA\"" 7609 echo " xemacs will be linked with \"$ALLOCA\""
7276 fi 7610 fi
7277 7611
7278 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7279 echo "configure:7280: checking for pid_t" >&5
7280
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 #include <sys/types.h>
7285 #if STDC_HEADERS
7286 #include <stdlib.h>
7287 #include <stddef.h>
7288 #endif
7289 EOF
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7292 rm -rf conftest*
7293 ac_cv_type_pid_t=yes
7294 else
7295 rm -rf conftest*
7296 ac_cv_type_pid_t=no
7297 fi
7298 rm -f conftest*
7299
7300 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7301 if test $ac_cv_type_pid_t = no; then
7302 { test "$extra_verbose" = "yes" && cat << \EOF
7303 Defining pid_t = int
7304 EOF
7305 cat >> confdefs.h <<\EOF
7306 #define pid_t int
7307 EOF
7308 }
7309
7310 fi
7311
7312 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7612 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7313 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7613 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7314 echo "configure:7315: checking for vfork.h" >&5 7614 echo "configure:7615: checking for vfork.h" >&5
7315 7615
7316 cat > conftest.$ac_ext <<EOF 7616 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure" 7617 #line 7618 "configure"
7318 #include "confdefs.h" 7618 #include "confdefs.h"
7319 #include <vfork.h> 7619 #include <vfork.h>
7320 EOF 7620 EOF
7321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7322 { (eval echo configure:7323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7622 { (eval echo configure:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7323 ac_err=`grep -v '^ *+' conftest.out` 7623 ac_err=`grep -v '^ *+' conftest.out`
7324 if test -z "$ac_err"; then 7624 if test -z "$ac_err"; then
7325 rm -rf conftest* 7625 rm -rf conftest*
7326 eval "ac_cv_header_$ac_safe=yes" 7626 eval "ac_cv_header_$ac_safe=yes"
7327 else 7627 else
7345 else 7645 else
7346 echo "$ac_t""no" 1>&6 7646 echo "$ac_t""no" 1>&6
7347 fi 7647 fi
7348 7648
7349 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7649 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7350 echo "configure:7351: checking for working vfork" >&5 7650 echo "configure:7651: checking for working vfork" >&5
7351 7651
7352 cat > conftest.$ac_ext <<EOF 7652 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure" 7653 #line 7654 "configure"
7354 #include "confdefs.h" 7654 #include "confdefs.h"
7355 /* Thanks to Paul Eggert for this test. */ 7655 /* Thanks to Paul Eggert for this test. */
7356 #include <stdio.h> 7656 #include <stdio.h>
7357 #include <sys/types.h> 7657 #include <sys/types.h>
7358 #include <sys/stat.h> 7658 #include <sys/stat.h>
7443 || fstat(fileno(stdout), &st) != 0 7743 || fstat(fileno(stdout), &st) != 0
7444 ); 7744 );
7445 } 7745 }
7446 } 7746 }
7447 EOF 7747 EOF
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7449 then 7749 then
7450 ac_cv_func_vfork_works=yes 7750 ac_cv_func_vfork_works=yes
7451 else 7751 else
7452 echo "configure: failed program was:" >&5 7752 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5 7753 cat conftest.$ac_ext >&5
7468 7768
7469 fi 7769 fi
7470 7770
7471 7771
7472 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 7772 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
7473 echo "configure:7474: checking for working strcoll" >&5 7773 echo "configure:7774: checking for working strcoll" >&5
7474 7774
7475 cat > conftest.$ac_ext <<EOF 7775 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure" 7776 #line 7777 "configure"
7477 #include "confdefs.h" 7777 #include "confdefs.h"
7478 #include <string.h> 7778 #include <string.h>
7479 main () 7779 main ()
7480 { 7780 {
7481 exit (strcoll ("abc", "def") >= 0 || 7781 exit (strcoll ("abc", "def") >= 0 ||
7482 strcoll ("ABC", "DEF") >= 0 || 7782 strcoll ("ABC", "DEF") >= 0 ||
7483 strcoll ("123", "456") >= 0); 7783 strcoll ("123", "456") >= 0);
7484 } 7784 }
7485 EOF 7785 EOF
7486 if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7487 then 7787 then
7488 ac_cv_func_strcoll_works=yes 7788 ac_cv_func_strcoll_works=yes
7489 else 7789 else
7490 echo "configure: failed program was:" >&5 7790 echo "configure: failed program was:" >&5
7491 cat conftest.$ac_ext >&5 7791 cat conftest.$ac_ext >&5
7505 } 7805 }
7506 7806
7507 fi 7807 fi
7508 7808
7509 7809
7810 for ac_func in getpgrp
7811 do
7812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_func" >&5
7814
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func(); below. */
7820 #include <assert.h>
7821 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824 char $ac_func();
7825
7826 int main() {
7827
7828 /* The GNU C library defines this for functions which it implements
7829 to always fail with ENOSYS. Some functions are actually named
7830 something starting with __ and the normal name is an alias. */
7831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7832 choke me
7833 #else
7834 $ac_func();
7835 #endif
7836
7837 ; return 0; }
7838 EOF
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7840 rm -rf conftest*
7841 eval "ac_cv_func_$ac_func=yes"
7842 else
7843 echo "configure: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7845 rm -rf conftest*
7846 eval "ac_cv_func_$ac_func=no"
7847 fi
7848 rm -f conftest*
7849
7850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7851 echo "$ac_t""yes" 1>&6
7852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7853 { test "$extra_verbose" = "yes" && cat << EOF
7854 Defining $ac_tr_func
7855 EOF
7856 cat >> confdefs.h <<EOF
7857 #define $ac_tr_func 1
7858 EOF
7859 }
7860
7861 else
7862 echo "$ac_t""no" 1>&6
7863 fi
7864 done
7865
7866 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
7867 echo "configure:7868: checking whether getpgrp takes no argument" >&5
7868
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872
7873 /*
7874 * If this system has a BSD-style getpgrp(),
7875 * which takes a pid argument, exit unsuccessfully.
7876 *
7877 * Snarfed from Chet Ramey's bash pgrp.c test program
7878 */
7879 #include <stdio.h>
7880 #include <sys/types.h>
7881
7882 int pid;
7883 int pg1, pg2, pg3, pg4;
7884 int ng, np, s, child;
7885
7886 main()
7887 {
7888 pid = getpid();
7889 pg1 = getpgrp(0);
7890 pg2 = getpgrp();
7891 pg3 = getpgrp(pid);
7892 pg4 = getpgrp(1);
7893
7894 /*
7895 * If all of these values are the same, it's pretty sure that
7896 * we're on a system that ignores getpgrp's first argument.
7897 */
7898 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
7899 exit(0);
7900
7901 child = fork();
7902 if (child < 0)
7903 exit(1);
7904 else if (child == 0) {
7905 np = getpid();
7906 /*
7907 * If this is Sys V, this will not work; pgrp will be
7908 * set to np because setpgrp just changes a pgrp to be
7909 * the same as the pid.
7910 */
7911 setpgrp(np, pg1);
7912 ng = getpgrp(0); /* Same result for Sys V and BSD */
7913 if (ng == pg1) {
7914 exit(1);
7915 } else {
7916 exit(0);
7917 }
7918 } else {
7919 wait(&s);
7920 exit(s>>8);
7921 }
7922 }
7923
7924 EOF
7925 if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7926 then
7927 ac_cv_func_getpgrp_void=yes
7928 else
7929 echo "configure: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7931 rm -fr conftest*
7932 ac_cv_func_getpgrp_void=no
7933 fi
7934 rm -fr conftest*
7935
7936
7937 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
7938 if test $ac_cv_func_getpgrp_void = yes; then
7939 { test "$extra_verbose" = "yes" && cat << \EOF
7940 Defining GETPGRP_VOID
7941 EOF
7942 cat >> confdefs.h <<\EOF
7943 #define GETPGRP_VOID 1
7944 EOF
7945 }
7946
7947 fi
7948
7949
7510 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 7950 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7511 echo "configure:7512: checking for working mmap" >&5 7951 echo "configure:7952: checking for working mmap" >&5
7512 case "$opsys" in ultrix* ) have_mmap=no ;; *) 7952 case "$opsys" in ultrix* ) have_mmap=no ;; *)
7513 cat > conftest.$ac_ext <<EOF 7953 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure" 7954 #line 7955 "configure"
7515 #include "confdefs.h" 7955 #include "confdefs.h"
7516 #include <stdio.h> 7956 #include <stdio.h>
7517 #include <unistd.h> 7957 #include <unistd.h>
7518 #include <fcntl.h> 7958 #include <fcntl.h>
7519 #include <sys/mman.h> 7959 #include <sys/mman.h>
7542 return 0; 7982 return 0;
7543 perror ("conftest: mmap failed"); 7983 perror ("conftest: mmap failed");
7544 return 1; 7984 return 1;
7545 } 7985 }
7546 EOF 7986 EOF
7547 if { (eval echo configure:7548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7987 if { (eval echo configure:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7548 then 7988 then
7549 have_mmap=yes 7989 have_mmap=yes
7550 else 7990 else
7551 echo "configure: failed program was:" >&5 7991 echo "configure: failed program was:" >&5
7552 cat conftest.$ac_ext >&5 7992 cat conftest.$ac_ext >&5
7575 EOF 8015 EOF
7576 } 8016 }
7577 8017
7578 8018
7579 echo $ac_n "checking for socket""... $ac_c" 1>&6 8019 echo $ac_n "checking for socket""... $ac_c" 1>&6
7580 echo "configure:7581: checking for socket" >&5 8020 echo "configure:8021: checking for socket" >&5
7581 8021
7582 cat > conftest.$ac_ext <<EOF 8022 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure" 8023 #line 8024 "configure"
7584 #include "confdefs.h" 8024 #include "confdefs.h"
7585 /* System header to define __stub macros and hopefully few prototypes, 8025 /* System header to define __stub macros and hopefully few prototypes,
7586 which can conflict with char socket(); below. */ 8026 which can conflict with char socket(); below. */
7587 #include <assert.h> 8027 #include <assert.h>
7588 /* Override any gcc2 internal prototype to avoid an error. */ 8028 /* Override any gcc2 internal prototype to avoid an error. */
7601 socket(); 8041 socket();
7602 #endif 8042 #endif
7603 8043
7604 ; return 0; } 8044 ; return 0; }
7605 EOF 8045 EOF
7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8046 if { (eval echo configure:8047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7607 rm -rf conftest* 8047 rm -rf conftest*
7608 eval "ac_cv_func_socket=yes" 8048 eval "ac_cv_func_socket=yes"
7609 else 8049 else
7610 echo "configure: failed program was:" >&5 8050 echo "configure: failed program was:" >&5
7611 cat conftest.$ac_ext >&5 8051 cat conftest.$ac_ext >&5
7616 8056
7617 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8057 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6 8058 echo "$ac_t""yes" 1>&6
7619 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8059 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7620 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8060 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7621 echo "configure:7622: checking for netinet/in.h" >&5 8061 echo "configure:8062: checking for netinet/in.h" >&5
7622 8062
7623 cat > conftest.$ac_ext <<EOF 8063 cat > conftest.$ac_ext <<EOF
7624 #line 7625 "configure" 8064 #line 8065 "configure"
7625 #include "confdefs.h" 8065 #include "confdefs.h"
7626 #include <netinet/in.h> 8066 #include <netinet/in.h>
7627 EOF 8067 EOF
7628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7629 { (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8069 { (eval echo configure:8070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7630 ac_err=`grep -v '^ *+' conftest.out` 8070 ac_err=`grep -v '^ *+' conftest.out`
7631 if test -z "$ac_err"; then 8071 if test -z "$ac_err"; then
7632 rm -rf conftest* 8072 rm -rf conftest*
7633 eval "ac_cv_header_$ac_safe=yes" 8073 eval "ac_cv_header_$ac_safe=yes"
7634 else 8074 else
7641 rm -f conftest* 8081 rm -f conftest*
7642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6 8083 echo "$ac_t""yes" 1>&6
7644 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8084 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
7645 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8085 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
7646 echo "configure:7647: checking for arpa/inet.h" >&5 8086 echo "configure:8087: checking for arpa/inet.h" >&5
7647 8087
7648 cat > conftest.$ac_ext <<EOF 8088 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure" 8089 #line 8090 "configure"
7650 #include "confdefs.h" 8090 #include "confdefs.h"
7651 #include <arpa/inet.h> 8091 #include <arpa/inet.h>
7652 EOF 8092 EOF
7653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7654 { (eval echo configure:7655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8094 { (eval echo configure:8095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7655 ac_err=`grep -v '^ *+' conftest.out` 8095 ac_err=`grep -v '^ *+' conftest.out`
7656 if test -z "$ac_err"; then 8096 if test -z "$ac_err"; then
7657 rm -rf conftest* 8097 rm -rf conftest*
7658 eval "ac_cv_header_$ac_safe=yes" 8098 eval "ac_cv_header_$ac_safe=yes"
7659 else 8099 else
7674 #define HAVE_SOCKETS 1 8114 #define HAVE_SOCKETS 1
7675 EOF 8115 EOF
7676 } 8116 }
7677 8117
7678 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8118 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
7679 echo "configure:7680: checking "for sun_len member in struct sockaddr_un"" >&5 8119 echo "configure:8120: checking "for sun_len member in struct sockaddr_un"" >&5
7680 cat > conftest.$ac_ext <<EOF 8120 cat > conftest.$ac_ext <<EOF
7681 #line 7682 "configure" 8121 #line 8122 "configure"
7682 #include "confdefs.h" 8122 #include "confdefs.h"
7683 8123
7684 #include <sys/types.h> 8124 #include <sys/types.h>
7685 #include <sys/socket.h> 8125 #include <sys/socket.h>
7686 #include <sys/un.h> 8126 #include <sys/un.h>
7687 8127
7688 int main() { 8128 int main() {
7689 static struct sockaddr_un x; x.sun_len = 1; 8129 static struct sockaddr_un x; x.sun_len = 1;
7690 ; return 0; } 8130 ; return 0; }
7691 EOF 8131 EOF
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7693 rm -rf conftest* 8133 rm -rf conftest*
7694 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8134 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
7695 Defining HAVE_SOCKADDR_SUN_LEN 8135 Defining HAVE_SOCKADDR_SUN_LEN
7696 EOF 8136 EOF
7697 cat >> confdefs.h <<\EOF 8137 cat >> confdefs.h <<\EOF
7718 echo "$ac_t""no" 1>&6 8158 echo "$ac_t""no" 1>&6
7719 fi 8159 fi
7720 8160
7721 8161
7722 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8162 echo $ac_n "checking for msgget""... $ac_c" 1>&6
7723 echo "configure:7724: checking for msgget" >&5 8163 echo "configure:8164: checking for msgget" >&5
7724 8164
7725 cat > conftest.$ac_ext <<EOF 8165 cat > conftest.$ac_ext <<EOF
7726 #line 7727 "configure" 8166 #line 8167 "configure"
7727 #include "confdefs.h" 8167 #include "confdefs.h"
7728 /* System header to define __stub macros and hopefully few prototypes, 8168 /* System header to define __stub macros and hopefully few prototypes,
7729 which can conflict with char msgget(); below. */ 8169 which can conflict with char msgget(); below. */
7730 #include <assert.h> 8170 #include <assert.h>
7731 /* Override any gcc2 internal prototype to avoid an error. */ 8171 /* Override any gcc2 internal prototype to avoid an error. */
7744 msgget(); 8184 msgget();
7745 #endif 8185 #endif
7746 8186
7747 ; return 0; } 8187 ; return 0; }
7748 EOF 8188 EOF
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7750 rm -rf conftest* 8190 rm -rf conftest*
7751 eval "ac_cv_func_msgget=yes" 8191 eval "ac_cv_func_msgget=yes"
7752 else 8192 else
7753 echo "configure: failed program was:" >&5 8193 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5 8194 cat conftest.$ac_ext >&5
7759 8199
7760 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8200 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6 8201 echo "$ac_t""yes" 1>&6
7762 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8202 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
7763 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8203 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
7764 echo "configure:7765: checking for sys/ipc.h" >&5 8204 echo "configure:8205: checking for sys/ipc.h" >&5
7765 8205
7766 cat > conftest.$ac_ext <<EOF 8206 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure" 8207 #line 8208 "configure"
7768 #include "confdefs.h" 8208 #include "confdefs.h"
7769 #include <sys/ipc.h> 8209 #include <sys/ipc.h>
7770 EOF 8210 EOF
7771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7772 { (eval echo configure:7773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8212 { (eval echo configure:8213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7773 ac_err=`grep -v '^ *+' conftest.out` 8213 ac_err=`grep -v '^ *+' conftest.out`
7774 if test -z "$ac_err"; then 8214 if test -z "$ac_err"; then
7775 rm -rf conftest* 8215 rm -rf conftest*
7776 eval "ac_cv_header_$ac_safe=yes" 8216 eval "ac_cv_header_$ac_safe=yes"
7777 else 8217 else
7784 rm -f conftest* 8224 rm -f conftest*
7785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7786 echo "$ac_t""yes" 1>&6 8226 echo "$ac_t""yes" 1>&6
7787 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8227 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
7788 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8228 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
7789 echo "configure:7790: checking for sys/msg.h" >&5 8229 echo "configure:8230: checking for sys/msg.h" >&5
7790 8230
7791 cat > conftest.$ac_ext <<EOF 8231 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure" 8232 #line 8233 "configure"
7793 #include "confdefs.h" 8233 #include "confdefs.h"
7794 #include <sys/msg.h> 8234 #include <sys/msg.h>
7795 EOF 8235 EOF
7796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7797 { (eval echo configure:7798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8237 { (eval echo configure:8238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7798 ac_err=`grep -v '^ *+' conftest.out` 8238 ac_err=`grep -v '^ *+' conftest.out`
7799 if test -z "$ac_err"; then 8239 if test -z "$ac_err"; then
7800 rm -rf conftest* 8240 rm -rf conftest*
7801 eval "ac_cv_header_$ac_safe=yes" 8241 eval "ac_cv_header_$ac_safe=yes"
7802 else 8242 else
7830 fi 8270 fi
7831 8271
7832 8272
7833 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8273 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
7834 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8274 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
7835 echo "configure:7836: checking for dirent.h" >&5 8275 echo "configure:8276: checking for dirent.h" >&5
7836 8276
7837 cat > conftest.$ac_ext <<EOF 8277 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure" 8278 #line 8279 "configure"
7839 #include "confdefs.h" 8279 #include "confdefs.h"
7840 #include <dirent.h> 8280 #include <dirent.h>
7841 EOF 8281 EOF
7842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7843 { (eval echo configure:7844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8283 { (eval echo configure:8284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7844 ac_err=`grep -v '^ *+' conftest.out` 8284 ac_err=`grep -v '^ *+' conftest.out`
7845 if test -z "$ac_err"; then 8285 if test -z "$ac_err"; then
7846 rm -rf conftest* 8286 rm -rf conftest*
7847 eval "ac_cv_header_$ac_safe=yes" 8287 eval "ac_cv_header_$ac_safe=yes"
7848 else 8288 else
7865 8305
7866 else 8306 else
7867 echo "$ac_t""no" 1>&6 8307 echo "$ac_t""no" 1>&6
7868 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8308 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
7869 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8309 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
7870 echo "configure:7871: checking for sys/dir.h" >&5 8310 echo "configure:8311: checking for sys/dir.h" >&5
7871 8311
7872 cat > conftest.$ac_ext <<EOF 8312 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure" 8313 #line 8314 "configure"
7874 #include "confdefs.h" 8314 #include "confdefs.h"
7875 #include <sys/dir.h> 8315 #include <sys/dir.h>
7876 EOF 8316 EOF
7877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7878 { (eval echo configure:7879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7879 ac_err=`grep -v '^ *+' conftest.out` 8319 ac_err=`grep -v '^ *+' conftest.out`
7880 if test -z "$ac_err"; then 8320 if test -z "$ac_err"; then
7881 rm -rf conftest* 8321 rm -rf conftest*
7882 eval "ac_cv_header_$ac_safe=yes" 8322 eval "ac_cv_header_$ac_safe=yes"
7883 else 8323 else
7906 fi 8346 fi
7907 8347
7908 8348
7909 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8349 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
7910 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8350 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
7911 echo "configure:7912: checking for nlist.h" >&5 8351 echo "configure:8352: checking for nlist.h" >&5
7912 8352
7913 cat > conftest.$ac_ext <<EOF 8353 cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure" 8354 #line 8355 "configure"
7915 #include "confdefs.h" 8355 #include "confdefs.h"
7916 #include <nlist.h> 8356 #include <nlist.h>
7917 EOF 8357 EOF
7918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7919 { (eval echo configure:7920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8359 { (eval echo configure:8360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7920 ac_err=`grep -v '^ *+' conftest.out` 8360 ac_err=`grep -v '^ *+' conftest.out`
7921 if test -z "$ac_err"; then 8361 if test -z "$ac_err"; then
7922 rm -rf conftest* 8362 rm -rf conftest*
7923 eval "ac_cv_header_$ac_safe=yes" 8363 eval "ac_cv_header_$ac_safe=yes"
7924 else 8364 else
7953 EOF 8393 EOF
7954 } 8394 }
7955 break; fi 8395 break; fi
7956 done 8396 done
7957 8397
7958 file="$srcdir/lisp/version.el" 8398 . "$srcdir/version.sh" || exit 1;
7959 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"` 8399 #version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
7960 if test -z "$version"; then 8400 #if test -z "$version"; then
7961 echo "$progname: can't find current emacs version in \"$file\"." >&2 8401 # echo "$progname: can't find current emacs version in \"$file\"." >&2
7962 exit 1 8402 # exit 1
7963 fi 8403 #fi
7964 beta=`sed -ne 's/^.*beta.*(beta\([0-9][0-9]*\)).*$/\1/p' "$file"` 8404 #beta=`sed -ne 's/^.*beta.*(beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"`
7965 test -n "$beta" && version="${version}-b${beta}" 8405 #test -n "$beta" && version="${version}-b${beta}"
8406 version="${emacs_major_version}.${emacs_minor_version}"
8407 { test "$extra_verbose" = "yes" && cat << EOF
8408 Defining EMACS_MAJOR_VERSION = $emacs_major_version
8409 EOF
8410 cat >> confdefs.h <<EOF
8411 #define EMACS_MAJOR_VERSION $emacs_major_version
8412 EOF
8413 }
8414
8415 { test "$extra_verbose" = "yes" && cat << EOF
8416 Defining EMACS_MINOR_VERSION = $emacs_minor_version
8417 EOF
8418 cat >> confdefs.h <<EOF
8419 #define EMACS_MINOR_VERSION $emacs_minor_version
8420 EOF
8421 }
8422
8423 if test -n "$emacs_beta_version"; then
8424 version="${version}-b${emacs_beta_version}"
8425 { test "$extra_verbose" = "yes" && cat << EOF
8426 Defining EMACS_BETA_VERSION = $emacs_beta_version
8427 EOF
8428 cat >> confdefs.h <<EOF
8429 #define EMACS_BETA_VERSION $emacs_beta_version
8430 EOF
8431 }
8432
8433 fi
8434 { test "$extra_verbose" = "yes" && cat << EOF
8435 Defining XEMACS_CODENAME = "$xemacs_codename"
8436 EOF
8437 cat >> confdefs.h <<EOF
8438 #define XEMACS_CODENAME "$xemacs_codename"
8439 EOF
8440 }
8441
7966 { test "$extra_verbose" = "yes" && cat << EOF 8442 { test "$extra_verbose" = "yes" && cat << EOF
7967 Defining EMACS_VERSION = "$version" 8443 Defining EMACS_VERSION = "$version"
7968 EOF 8444 EOF
7969 cat >> confdefs.h <<EOF 8445 cat >> confdefs.h <<EOF
7970 #define EMACS_VERSION "$version" 8446 #define EMACS_VERSION "$version"
7971 EOF 8447 EOF
7972 } 8448 }
7973 8449
7974 main_1_id=`echo main_1_xemacs_${version}_${canonical} | sed 'y/.-/__/'` 8450 canonical_version=`echo ${version}_${canonical} | sed 'y/.-/__/'`
7975 { test "$extra_verbose" = "yes" && cat << EOF 8451 { test "$extra_verbose" = "yes" && cat << EOF
7976 Defining main_1 = $main_1_id 8452 Defining CANONICAL_VERSION = $canonical_version
7977 EOF 8453 EOF
7978 cat >> confdefs.h <<EOF 8454 cat >> confdefs.h <<EOF
7979 #define main_1 $main_1_id 8455 #define CANONICAL_VERSION $canonical_version
7980 EOF 8456 EOF
7981 } 8457 }
7982 8458
7983 8459
7984 8460
7985 8461
7986 echo "checking "for sound support"" 1>&6 8462 echo "checking "for sound support"" 1>&6
7987 echo "configure:7988: checking "for sound support"" >&5 8463 echo "configure:8464: checking "for sound support"" >&5
7988 case "$with_sound" in 8464 case "$with_sound" in
7989 native | both ) with_native_sound=yes;; 8465 native | both ) with_native_sound=yes;;
7990 nas | no ) with_native_sound=no;; 8466 nas | no ) with_native_sound=no;;
7991 esac 8467 esac
7992 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8468 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
7993 8469
7994 if test "$with_native_sound" != "no"; then 8470 if test "$with_native_sound" != "no"; then
7995 if test -n "$native_sound_lib"; then 8471 if test -n "$native_sound_lib"; then
7996 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8472 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
7997 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8473 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
7998 echo "configure:7999: checking for multimedia/audio_device.h" >&5 8474 echo "configure:8475: checking for multimedia/audio_device.h" >&5
7999 8475
8000 cat > conftest.$ac_ext <<EOF 8476 cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure" 8477 #line 8478 "configure"
8002 #include "confdefs.h" 8478 #include "confdefs.h"
8003 #include <multimedia/audio_device.h> 8479 #include <multimedia/audio_device.h>
8004 EOF 8480 EOF
8005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8006 { (eval echo configure:8007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8482 { (eval echo configure:8483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8007 ac_err=`grep -v '^ *+' conftest.out` 8483 ac_err=`grep -v '^ *+' conftest.out`
8008 if test -z "$ac_err"; then 8484 if test -z "$ac_err"; then
8009 rm -rf conftest* 8485 rm -rf conftest*
8010 eval "ac_cv_header_$ac_safe=yes" 8486 eval "ac_cv_header_$ac_safe=yes"
8011 else 8487 else
8049 case "$canonical" in 8525 case "$canonical" in
8050 *-sgi-* ) 8526 *-sgi-* )
8051 if test -z "$native_sound_lib"; then 8527 if test -z "$native_sound_lib"; then
8052 8528
8053 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8529 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8054 echo "configure:8055: checking for ALopenport in -laudio" >&5 8530 echo "configure:8531: checking for ALopenport in -laudio" >&5
8055 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8531 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8056 8532
8057 xe_check_libs=" -laudio " 8533 xe_check_libs=" -laudio "
8058 cat > conftest.$ac_ext <<EOF 8534 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure" 8535 #line 8536 "configure"
8060 #include "confdefs.h" 8536 #include "confdefs.h"
8061 /* Override any gcc2 internal prototype to avoid an error. */ 8537 /* Override any gcc2 internal prototype to avoid an error. */
8062 /* We use char because int might match the return type of a gcc2 8538 /* We use char because int might match the return type of a gcc2
8063 builtin and then its argument prototype would still apply. */ 8539 builtin and then its argument prototype would still apply. */
8064 char ALopenport(); 8540 char ALopenport();
8065 8541
8066 int main() { 8542 int main() {
8067 ALopenport() 8543 ALopenport()
8068 ; return 0; } 8544 ; return 0; }
8069 EOF 8545 EOF
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8546 if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8071 rm -rf conftest* 8547 rm -rf conftest*
8072 eval "ac_cv_lib_$ac_lib_var=yes" 8548 eval "ac_cv_lib_$ac_lib_var=yes"
8073 else 8549 else
8074 echo "configure: failed program was:" >&5 8550 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5 8551 cat conftest.$ac_ext >&5
8096 fi ;; 8572 fi ;;
8097 hppa*-hp-hpux* ) 8573 hppa*-hp-hpux* )
8098 if test -z "$native_sound_lib"; then 8574 if test -z "$native_sound_lib"; then
8099 8575
8100 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8576 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8101 echo "configure:8102: checking for AOpenAudio in -lAlib" >&5 8577 echo "configure:8578: checking for AOpenAudio in -lAlib" >&5
8102 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8578 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8103 8579
8104 xe_check_libs=" -lAlib " 8580 xe_check_libs=" -lAlib "
8105 cat > conftest.$ac_ext <<EOF 8581 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure" 8582 #line 8583 "configure"
8107 #include "confdefs.h" 8583 #include "confdefs.h"
8108 /* Override any gcc2 internal prototype to avoid an error. */ 8584 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2 8585 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */ 8586 builtin and then its argument prototype would still apply. */
8111 char AOpenAudio(); 8587 char AOpenAudio();
8112 8588
8113 int main() { 8589 int main() {
8114 AOpenAudio() 8590 AOpenAudio()
8115 ; return 0; } 8591 ; return 0; }
8116 EOF 8592 EOF
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8118 rm -rf conftest* 8594 rm -rf conftest*
8119 eval "ac_cv_lib_$ac_lib_var=yes" 8595 eval "ac_cv_lib_$ac_lib_var=yes"
8120 else 8596 else
8121 echo "configure: failed program was:" >&5 8597 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5 8598 cat conftest.$ac_ext >&5
8150 8626
8151 if test -z "$sound_found"; then 8627 if test -z "$sound_found"; then
8152 for dir in "machine" "sys" "linux"; do 8628 for dir in "machine" "sys" "linux"; do
8153 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 8629 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8154 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 8630 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8155 echo "configure:8156: checking for ${dir}/soundcard.h" >&5 8631 echo "configure:8632: checking for ${dir}/soundcard.h" >&5
8156 8632
8157 cat > conftest.$ac_ext <<EOF 8633 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure" 8634 #line 8635 "configure"
8159 #include "confdefs.h" 8635 #include "confdefs.h"
8160 #include <${dir}/soundcard.h> 8636 #include <${dir}/soundcard.h>
8161 EOF 8637 EOF
8162 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"
8163 { (eval echo configure:8164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8639 { (eval echo configure:8640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8164 ac_err=`grep -v '^ *+' conftest.out` 8640 ac_err=`grep -v '^ *+' conftest.out`
8165 if test -z "$ac_err"; then 8641 if test -z "$ac_err"; then
8166 rm -rf conftest* 8642 rm -rf conftest*
8167 eval "ac_cv_header_$ac_safe=yes" 8643 eval "ac_cv_header_$ac_safe=yes"
8168 else 8644 else
8228 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 8704 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
8229 echo " xemacs will be linked with \"nas.o\"" 8705 echo " xemacs will be linked with \"nas.o\""
8230 fi 8706 fi
8231 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 8707 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
8232 cat > conftest.$ac_ext <<EOF 8708 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure" 8709 #line 8710 "configure"
8234 #include "confdefs.h" 8710 #include "confdefs.h"
8235 #include <audio/Xtutil.h> 8711 #include <audio/Xtutil.h>
8236 EOF 8712 EOF
8237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8238 egrep "AuXtErrorJump" >/dev/null 2>&1; then 8714 egrep "AuXtErrorJump" >/dev/null 2>&1; then
8255 8731
8256 test -z "$with_tty" && with_tty=yes 8732 test -z "$with_tty" && with_tty=yes
8257 8733
8258 if test "$with_tty" = "yes" ; then 8734 if test "$with_tty" = "yes" ; then
8259 echo "checking for TTY-related features" 1>&6 8735 echo "checking for TTY-related features" 1>&6
8260 echo "configure:8261: checking for TTY-related features" >&5 8736 echo "configure:8737: checking for TTY-related features" >&5
8261 { test "$extra_verbose" = "yes" && cat << \EOF 8737 { test "$extra_verbose" = "yes" && cat << \EOF
8262 Defining HAVE_TTY 8738 Defining HAVE_TTY
8263 EOF 8739 EOF
8264 cat >> confdefs.h <<\EOF 8740 cat >> confdefs.h <<\EOF
8265 #define HAVE_TTY 1 8741 #define HAVE_TTY 1
8270 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\"" 8746 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\""
8271 fi 8747 fi
8272 8748
8273 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8749 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8274 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8750 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8275 echo "configure:8276: checking for termios.h" >&5 8751 echo "configure:8752: checking for termios.h" >&5
8276 8752
8277 cat > conftest.$ac_ext <<EOF 8753 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure" 8754 #line 8755 "configure"
8279 #include "confdefs.h" 8755 #include "confdefs.h"
8280 #include <termios.h> 8756 #include <termios.h>
8281 EOF 8757 EOF
8282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8283 { (eval echo configure:8284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8759 { (eval echo configure:8760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8284 ac_err=`grep -v '^ *+' conftest.out` 8760 ac_err=`grep -v '^ *+' conftest.out`
8285 if test -z "$ac_err"; then 8761 if test -z "$ac_err"; then
8286 rm -rf conftest* 8762 rm -rf conftest*
8287 eval "ac_cv_header_$ac_safe=yes" 8763 eval "ac_cv_header_$ac_safe=yes"
8288 else 8764 else
8305 8781
8306 else 8782 else
8307 echo "$ac_t""no" 1>&6 8783 echo "$ac_t""no" 1>&6
8308 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8784 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8785 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8310 echo "configure:8311: checking for termio.h" >&5 8786 echo "configure:8787: checking for termio.h" >&5
8311 8787
8312 cat > conftest.$ac_ext <<EOF 8788 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure" 8789 #line 8790 "configure"
8314 #include "confdefs.h" 8790 #include "confdefs.h"
8315 #include <termio.h> 8791 #include <termio.h>
8316 EOF 8792 EOF
8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8793 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; } 8794 { (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8319 ac_err=`grep -v '^ *+' conftest.out` 8795 ac_err=`grep -v '^ *+' conftest.out`
8320 if test -z "$ac_err"; then 8796 if test -z "$ac_err"; then
8321 rm -rf conftest* 8797 rm -rf conftest*
8322 eval "ac_cv_header_$ac_safe=yes" 8798 eval "ac_cv_header_$ac_safe=yes"
8323 else 8799 else
8346 8822
8347 8823
8348 if test -z "$with_ncurses"; then 8824 if test -z "$with_ncurses"; then
8349 8825
8350 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 8826 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8351 echo "configure:8352: checking for tgetent in -lncurses" >&5 8827 echo "configure:8828: checking for tgetent in -lncurses" >&5
8352 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 8828 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8353 8829
8354 xe_check_libs=" -lncurses " 8830 xe_check_libs=" -lncurses "
8355 cat > conftest.$ac_ext <<EOF 8831 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure" 8832 #line 8833 "configure"
8357 #include "confdefs.h" 8833 #include "confdefs.h"
8358 /* Override any gcc2 internal prototype to avoid an error. */ 8834 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2 8835 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */ 8836 builtin and then its argument prototype would still apply. */
8361 char tgetent(); 8837 char tgetent();
8362 8838
8363 int main() { 8839 int main() {
8364 tgetent() 8840 tgetent()
8365 ; return 0; } 8841 ; return 0; }
8366 EOF 8842 EOF
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8843 if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8368 rm -rf conftest* 8844 rm -rf conftest*
8369 eval "ac_cv_lib_$ac_lib_var=yes" 8845 eval "ac_cv_lib_$ac_lib_var=yes"
8370 else 8846 else
8371 echo "configure: failed program was:" >&5 8847 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5 8848 cat conftest.$ac_ext >&5
8395 EOF 8871 EOF
8396 } 8872 }
8397 8873
8398 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8874 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8399 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8875 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8400 echo "configure:8401: checking for ncurses/curses.h" >&5 8876 echo "configure:8877: checking for ncurses/curses.h" >&5
8401 8877
8402 cat > conftest.$ac_ext <<EOF 8878 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure" 8879 #line 8880 "configure"
8404 #include "confdefs.h" 8880 #include "confdefs.h"
8405 #include <ncurses/curses.h> 8881 #include <ncurses/curses.h>
8406 EOF 8882 EOF
8407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8408 { (eval echo configure:8409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8884 { (eval echo configure:8885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8409 ac_err=`grep -v '^ *+' conftest.out` 8885 ac_err=`grep -v '^ *+' conftest.out`
8410 if test -z "$ac_err"; then 8886 if test -z "$ac_err"; then
8411 rm -rf conftest* 8887 rm -rf conftest*
8412 eval "ac_cv_header_$ac_safe=yes" 8888 eval "ac_cv_header_$ac_safe=yes"
8413 else 8889 else
8425 echo "$ac_t""no" 1>&6 8901 echo "$ac_t""no" 1>&6
8426 fi 8902 fi
8427 8903
8428 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 8904 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
8429 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 8905 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
8430 echo "configure:8431: checking for ncurses/term.h" >&5 8906 echo "configure:8907: checking for ncurses/term.h" >&5
8431 8907
8432 cat > conftest.$ac_ext <<EOF 8908 cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure" 8909 #line 8910 "configure"
8434 #include "confdefs.h" 8910 #include "confdefs.h"
8435 #include <ncurses/term.h> 8911 #include <ncurses/term.h>
8436 EOF 8912 EOF
8437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8438 { (eval echo configure:8439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8914 { (eval echo configure:8915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8439 ac_err=`grep -v '^ *+' conftest.out` 8915 ac_err=`grep -v '^ *+' conftest.out`
8440 if test -z "$ac_err"; then 8916 if test -z "$ac_err"; then
8441 rm -rf conftest* 8917 rm -rf conftest*
8442 eval "ac_cv_header_$ac_safe=yes" 8918 eval "ac_cv_header_$ac_safe=yes"
8443 else 8919 else
8463 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 8939 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
8464 save_c_switch_site="$c_switch_site" 8940 save_c_switch_site="$c_switch_site"
8465 c_switch_site="$c_switch_site -I/usr/include/ncurses" 8941 c_switch_site="$c_switch_site -I/usr/include/ncurses"
8466 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8942 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8467 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8943 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8468 echo "configure:8469: checking for ncurses/curses.h" >&5 8944 echo "configure:8945: checking for ncurses/curses.h" >&5
8469 8945
8470 cat > conftest.$ac_ext <<EOF 8946 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure" 8947 #line 8948 "configure"
8472 #include "confdefs.h" 8948 #include "confdefs.h"
8473 #include <ncurses/curses.h> 8949 #include <ncurses/curses.h>
8474 EOF 8950 EOF
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8952 { (eval echo configure:8953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out` 8953 ac_err=`grep -v '^ *+' conftest.out`
8478 if test -z "$ac_err"; then 8954 if test -z "$ac_err"; then
8479 rm -rf conftest* 8955 rm -rf conftest*
8480 eval "ac_cv_header_$ac_safe=yes" 8956 eval "ac_cv_header_$ac_safe=yes"
8481 else 8957 else
8506 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8982 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8507 else 8983 else
8508 for lib in curses termlib termcap; do 8984 for lib in curses termlib termcap; do
8509 8985
8510 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 8986 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
8511 echo "configure:8512: checking for tgetent in -l$lib" >&5 8987 echo "configure:8988: checking for tgetent in -l$lib" >&5
8512 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 8988 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
8513 8989
8514 xe_check_libs=" -l$lib " 8990 xe_check_libs=" -l$lib "
8515 cat > conftest.$ac_ext <<EOF 8991 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure" 8992 #line 8993 "configure"
8517 #include "confdefs.h" 8993 #include "confdefs.h"
8518 /* Override any gcc2 internal prototype to avoid an error. */ 8994 /* Override any gcc2 internal prototype to avoid an error. */
8519 /* We use char because int might match the return type of a gcc2 8995 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */ 8996 builtin and then its argument prototype would still apply. */
8521 char tgetent(); 8997 char tgetent();
8522 8998
8523 int main() { 8999 int main() {
8524 tgetent() 9000 tgetent()
8525 ; return 0; } 9001 ; return 0; }
8526 EOF 9002 EOF
8527 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8528 rm -rf conftest* 9004 rm -rf conftest*
8529 eval "ac_cv_lib_$ac_lib_var=yes" 9005 eval "ac_cv_lib_$ac_lib_var=yes"
8530 else 9006 else
8531 echo "configure: failed program was:" >&5 9007 echo "configure: failed program was:" >&5
8532 cat conftest.$ac_ext >&5 9008 cat conftest.$ac_ext >&5
8553 if test -n "$libs_termcap"; then 9029 if test -n "$libs_termcap"; then
8554 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9030 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8555 else 9031 else
8556 9032
8557 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9033 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
8558 echo "configure:8559: checking for tgetent in -lcurses" >&5 9034 echo "configure:9035: checking for tgetent in -lcurses" >&5
8559 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9035 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
8560 9036
8561 xe_check_libs=" -lcurses " 9037 xe_check_libs=" -lcurses "
8562 cat > conftest.$ac_ext <<EOF 9038 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure" 9039 #line 9040 "configure"
8564 #include "confdefs.h" 9040 #include "confdefs.h"
8565 /* Override any gcc2 internal prototype to avoid an error. */ 9041 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2 9042 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */ 9043 builtin and then its argument prototype would still apply. */
8568 char tgetent(); 9044 char tgetent();
8569 9045
8570 int main() { 9046 int main() {
8571 tgetent() 9047 tgetent()
8572 ; return 0; } 9048 ; return 0; }
8573 EOF 9049 EOF
8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8575 rm -rf conftest* 9051 rm -rf conftest*
8576 eval "ac_cv_lib_$ac_lib_var=yes" 9052 eval "ac_cv_lib_$ac_lib_var=yes"
8577 else 9053 else
8578 echo "configure: failed program was:" >&5 9054 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5 9055 cat conftest.$ac_ext >&5
8587 echo "$ac_t""yes" 1>&6 9063 echo "$ac_t""yes" 1>&6
8588 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9064 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
8589 else 9065 else
8590 echo "$ac_t""no" 1>&6 9066 echo "$ac_t""no" 1>&6
8591 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9067 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
8592 echo "configure:8593: checking for tgetent in -ltermcap" >&5 9068 echo "configure:9069: checking for tgetent in -ltermcap" >&5
8593 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9069 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
8594 9070
8595 xe_check_libs=" -ltermcap " 9071 xe_check_libs=" -ltermcap "
8596 cat > conftest.$ac_ext <<EOF 9072 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure" 9073 #line 9074 "configure"
8598 #include "confdefs.h" 9074 #include "confdefs.h"
8599 /* Override any gcc2 internal prototype to avoid an error. */ 9075 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2 9076 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */ 9077 builtin and then its argument prototype would still apply. */
8602 char tgetent(); 9078 char tgetent();
8603 9079
8604 int main() { 9080 int main() {
8605 tgetent() 9081 tgetent()
8606 ; return 0; } 9082 ; return 0; }
8607 EOF 9083 EOF
8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9084 if { (eval echo configure:9085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8609 rm -rf conftest* 9085 rm -rf conftest*
8610 eval "ac_cv_lib_$ac_lib_var=yes" 9086 eval "ac_cv_lib_$ac_lib_var=yes"
8611 else 9087 else
8612 echo "configure: failed program was:" >&5 9088 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5 9089 cat conftest.$ac_ext >&5
8651 } 9127 }
8652 9128
8653 9129
8654 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9130 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
8655 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9131 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
8656 echo "configure:8657: checking for gpm.h" >&5 9132 echo "configure:9133: checking for gpm.h" >&5
8657 9133
8658 cat > conftest.$ac_ext <<EOF 9134 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure" 9135 #line 9136 "configure"
8660 #include "confdefs.h" 9136 #include "confdefs.h"
8661 #include <gpm.h> 9137 #include <gpm.h>
8662 EOF 9138 EOF
8663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8664 { (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9140 { (eval echo configure:9141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8665 ac_err=`grep -v '^ *+' conftest.out` 9141 ac_err=`grep -v '^ *+' conftest.out`
8666 if test -z "$ac_err"; then 9142 if test -z "$ac_err"; then
8667 rm -rf conftest* 9143 rm -rf conftest*
8668 eval "ac_cv_header_$ac_safe=yes" 9144 eval "ac_cv_header_$ac_safe=yes"
8669 else 9145 else
8682 with_gpm=no 9158 with_gpm=no
8683 fi 9159 fi
8684 } 9160 }
8685 test -z "$with_gpm" && { 9161 test -z "$with_gpm" && {
8686 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9162 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
8687 echo "configure:8688: checking for Gpm_Open in -lgpm" >&5 9163 echo "configure:9164: checking for Gpm_Open in -lgpm" >&5
8688 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9164 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
8689 9165
8690 xe_check_libs=" -lgpm " 9166 xe_check_libs=" -lgpm "
8691 cat > conftest.$ac_ext <<EOF 9167 cat > conftest.$ac_ext <<EOF
8692 #line 8693 "configure" 9168 #line 9169 "configure"
8693 #include "confdefs.h" 9169 #include "confdefs.h"
8694 /* Override any gcc2 internal prototype to avoid an error. */ 9170 /* Override any gcc2 internal prototype to avoid an error. */
8695 /* We use char because int might match the return type of a gcc2 9171 /* We use char because int might match the return type of a gcc2
8696 builtin and then its argument prototype would still apply. */ 9172 builtin and then its argument prototype would still apply. */
8697 char Gpm_Open(); 9173 char Gpm_Open();
8698 9174
8699 int main() { 9175 int main() {
8700 Gpm_Open() 9176 Gpm_Open()
8701 ; return 0; } 9177 ; return 0; }
8702 EOF 9178 EOF
8703 if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8704 rm -rf conftest* 9180 rm -rf conftest*
8705 eval "ac_cv_lib_$ac_lib_var=yes" 9181 eval "ac_cv_lib_$ac_lib_var=yes"
8706 else 9182 else
8707 echo "configure: failed program was:" >&5 9183 echo "configure: failed program was:" >&5
8708 cat conftest.$ac_ext >&5 9184 cat conftest.$ac_ext >&5
8741 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2 9217 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
8742 fi 9218 fi
8743 eval "with_${feature}=no" 9219 eval "with_${feature}=no"
8744 done 9220 done
8745 fi 9221 fi
9222 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
9223 echo " xemacs will be linked with \"event-unixoid.o\""
9224 fi
9225
8746 9226
8747 echo "checking for database support" 1>&6 9227 echo "checking for database support" 1>&6
8748 echo "configure:8749: checking for database support" >&5 9228 echo "configure:9229: checking for database support" >&5
8749 9229
8750 if test "$with_database_gnudbm" != "no"; then 9230 if test "$with_database_gnudbm" != "no"; then
8751 9231
8752 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9232 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
8753 echo "configure:8754: checking for dbm_open in -lgdbm" >&5 9233 echo "configure:9234: checking for dbm_open in -lgdbm" >&5
8754 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9234 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
8755 9235
8756 xe_check_libs=" -lgdbm " 9236 xe_check_libs=" -lgdbm "
8757 cat > conftest.$ac_ext <<EOF 9237 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure" 9238 #line 9239 "configure"
8759 #include "confdefs.h" 9239 #include "confdefs.h"
8760 /* Override any gcc2 internal prototype to avoid an error. */ 9240 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2 9241 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */ 9242 builtin and then its argument prototype would still apply. */
8763 char dbm_open(); 9243 char dbm_open();
8764 9244
8765 int main() { 9245 int main() {
8766 dbm_open() 9246 dbm_open()
8767 ; return 0; } 9247 ; return 0; }
8768 EOF 9248 EOF
8769 if { (eval echo configure:8770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8770 rm -rf conftest* 9250 rm -rf conftest*
8771 eval "ac_cv_lib_$ac_lib_var=yes" 9251 eval "ac_cv_lib_$ac_lib_var=yes"
8772 else 9252 else
8773 echo "configure: failed program was:" >&5 9253 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5 9254 cat conftest.$ac_ext >&5
8786 fi 9266 fi
8787 9267
8788 9268
8789 if test "$with_database_gnudbm" != "yes"; then 9269 if test "$with_database_gnudbm" != "yes"; then
8790 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9270 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8791 echo "configure:8792: checking for dbm_open" >&5 9271 echo "configure:9272: checking for dbm_open" >&5
8792 9272
8793 cat > conftest.$ac_ext <<EOF 9273 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure" 9274 #line 9275 "configure"
8795 #include "confdefs.h" 9275 #include "confdefs.h"
8796 /* System header to define __stub macros and hopefully few prototypes, 9276 /* System header to define __stub macros and hopefully few prototypes,
8797 which can conflict with char dbm_open(); below. */ 9277 which can conflict with char dbm_open(); below. */
8798 #include <assert.h> 9278 #include <assert.h>
8799 /* Override any gcc2 internal prototype to avoid an error. */ 9279 /* Override any gcc2 internal prototype to avoid an error. */
8812 dbm_open(); 9292 dbm_open();
8813 #endif 9293 #endif
8814 9294
8815 ; return 0; } 9295 ; return 0; }
8816 EOF 9296 EOF
8817 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9297 if { (eval echo configure:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8818 rm -rf conftest* 9298 rm -rf conftest*
8819 eval "ac_cv_func_dbm_open=yes" 9299 eval "ac_cv_func_dbm_open=yes"
8820 else 9300 else
8821 echo "configure: failed program was:" >&5 9301 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5 9302 cat conftest.$ac_ext >&5
8848 fi 9328 fi
8849 fi 9329 fi
8850 9330
8851 if test "$with_database_dbm" != "no"; then 9331 if test "$with_database_dbm" != "no"; then
8852 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9332 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8853 echo "configure:8854: checking for dbm_open" >&5 9333 echo "configure:9334: checking for dbm_open" >&5
8854 9334
8855 cat > conftest.$ac_ext <<EOF 9335 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure" 9336 #line 9337 "configure"
8857 #include "confdefs.h" 9337 #include "confdefs.h"
8858 /* System header to define __stub macros and hopefully few prototypes, 9338 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char dbm_open(); below. */ 9339 which can conflict with char dbm_open(); below. */
8860 #include <assert.h> 9340 #include <assert.h>
8861 /* Override any gcc2 internal prototype to avoid an error. */ 9341 /* Override any gcc2 internal prototype to avoid an error. */
8874 dbm_open(); 9354 dbm_open();
8875 #endif 9355 #endif
8876 9356
8877 ; return 0; } 9357 ; return 0; }
8878 EOF 9358 EOF
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9359 if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8880 rm -rf conftest* 9360 rm -rf conftest*
8881 eval "ac_cv_func_dbm_open=yes" 9361 eval "ac_cv_func_dbm_open=yes"
8882 else 9362 else
8883 echo "configure: failed program was:" >&5 9363 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5 9364 cat conftest.$ac_ext >&5
8895 fi 9375 fi
8896 9376
8897 if test "$need_libdbm" != "no"; then 9377 if test "$need_libdbm" != "no"; then
8898 9378
8899 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9379 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8900 echo "configure:8901: checking for dbm_open in -ldbm" >&5 9380 echo "configure:9381: checking for dbm_open in -ldbm" >&5
8901 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9381 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8902 9382
8903 xe_check_libs=" -ldbm " 9383 xe_check_libs=" -ldbm "
8904 cat > conftest.$ac_ext <<EOF 9384 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure" 9385 #line 9386 "configure"
8906 #include "confdefs.h" 9386 #include "confdefs.h"
8907 /* Override any gcc2 internal prototype to avoid an error. */ 9387 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2 9388 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */ 9389 builtin and then its argument prototype would still apply. */
8910 char dbm_open(); 9390 char dbm_open();
8911 9391
8912 int main() { 9392 int main() {
8913 dbm_open() 9393 dbm_open()
8914 ; return 0; } 9394 ; return 0; }
8915 EOF 9395 EOF
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8917 rm -rf conftest* 9397 rm -rf conftest*
8918 eval "ac_cv_lib_$ac_lib_var=yes" 9398 eval "ac_cv_lib_$ac_lib_var=yes"
8919 else 9399 else
8920 echo "configure: failed program was:" >&5 9400 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5 9401 cat conftest.$ac_ext >&5
8948 fi 9428 fi
8949 fi 9429 fi
8950 9430
8951 if test "$with_database_berkdb" != "no"; then 9431 if test "$with_database_berkdb" != "no"; then
8952 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9432 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8953 echo "configure:8954: checking for dbopen" >&5 9433 echo "configure:9434: checking for dbopen" >&5
8954 9434
8955 cat > conftest.$ac_ext <<EOF 9435 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure" 9436 #line 9437 "configure"
8957 #include "confdefs.h" 9437 #include "confdefs.h"
8958 /* System header to define __stub macros and hopefully few prototypes, 9438 /* System header to define __stub macros and hopefully few prototypes,
8959 which can conflict with char dbopen(); below. */ 9439 which can conflict with char dbopen(); below. */
8960 #include <assert.h> 9440 #include <assert.h>
8961 /* Override any gcc2 internal prototype to avoid an error. */ 9441 /* Override any gcc2 internal prototype to avoid an error. */
8974 dbopen(); 9454 dbopen();
8975 #endif 9455 #endif
8976 9456
8977 ; return 0; } 9457 ; return 0; }
8978 EOF 9458 EOF
8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8980 rm -rf conftest* 9460 rm -rf conftest*
8981 eval "ac_cv_func_dbopen=yes" 9461 eval "ac_cv_func_dbopen=yes"
8982 else 9462 else
8983 echo "configure: failed program was:" >&5 9463 echo "configure: failed program was:" >&5
8984 cat conftest.$ac_ext >&5 9464 cat conftest.$ac_ext >&5
8995 fi 9475 fi
8996 9476
8997 if test "$need_libdb" != "no"; then 9477 if test "$need_libdb" != "no"; then
8998 9478
8999 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9479 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9000 echo "configure:9001: checking for dbopen in -ldb" >&5 9480 echo "configure:9481: checking for dbopen in -ldb" >&5
9001 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9481 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9002 9482
9003 xe_check_libs=" -ldb " 9483 xe_check_libs=" -ldb "
9004 cat > conftest.$ac_ext <<EOF 9484 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure" 9485 #line 9486 "configure"
9006 #include "confdefs.h" 9486 #include "confdefs.h"
9007 /* Override any gcc2 internal prototype to avoid an error. */ 9487 /* Override any gcc2 internal prototype to avoid an error. */
9008 /* We use char because int might match the return type of a gcc2 9488 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */ 9489 builtin and then its argument prototype would still apply. */
9010 char dbopen(); 9490 char dbopen();
9011 9491
9012 int main() { 9492 int main() {
9013 dbopen() 9493 dbopen()
9014 ; return 0; } 9494 ; return 0; }
9015 EOF 9495 EOF
9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9017 rm -rf conftest* 9497 rm -rf conftest*
9018 eval "ac_cv_lib_$ac_lib_var=yes" 9498 eval "ac_cv_lib_$ac_lib_var=yes"
9019 else 9499 else
9020 echo "configure: failed program was:" >&5 9500 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5 9501 cat conftest.$ac_ext >&5
9035 9515
9036 fi 9516 fi
9037 if test "$with_database_berkdb" = "yes"; then 9517 if test "$with_database_berkdb" = "yes"; then
9038 for path in "db/db.h" "db.h"; do 9518 for path in "db/db.h" "db.h"; do
9039 cat > conftest.$ac_ext <<EOF 9519 cat > conftest.$ac_ext <<EOF
9040 #line 9041 "configure" 9520 #line 9521 "configure"
9041 #include "confdefs.h" 9521 #include "confdefs.h"
9042 #ifdef HAVE_INTTYPES_H 9522 #ifdef HAVE_INTTYPES_H
9043 #define __BIT_TYPES_DEFINED__ 9523 #define __BIT_TYPES_DEFINED__
9044 #include <inttypes.h> 9524 #include <inttypes.h>
9045 typedef uint8_t u_int8_t; 9525 typedef uint8_t u_int8_t;
9053 9533
9054 int main() { 9534 int main() {
9055 9535
9056 ; return 0; } 9536 ; return 0; }
9057 EOF 9537 EOF
9058 if { (eval echo configure:9059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9538 if { (eval echo configure:9539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9059 rm -rf conftest* 9539 rm -rf conftest*
9060 db_h_path="$path"; break 9540 db_h_path="$path"; break
9061 else 9541 else
9062 echo "configure: failed program was:" >&5 9542 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5 9543 cat conftest.$ac_ext >&5
9105 fi 9585 fi
9106 9586
9107 if test "$with_socks" = "yes"; then 9587 if test "$with_socks" = "yes"; then
9108 9588
9109 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9589 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9110 echo "configure:9111: checking for SOCKSinit in -lsocks" >&5 9590 echo "configure:9591: checking for SOCKSinit in -lsocks" >&5
9111 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9591 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9112 9592
9113 xe_check_libs=" -lsocks " 9593 xe_check_libs=" -lsocks "
9114 cat > conftest.$ac_ext <<EOF 9594 cat > conftest.$ac_ext <<EOF
9115 #line 9116 "configure" 9595 #line 9596 "configure"
9116 #include "confdefs.h" 9596 #include "confdefs.h"
9117 /* Override any gcc2 internal prototype to avoid an error. */ 9597 /* Override any gcc2 internal prototype to avoid an error. */
9118 /* We use char because int might match the return type of a gcc2 9598 /* We use char because int might match the return type of a gcc2
9119 builtin and then its argument prototype would still apply. */ 9599 builtin and then its argument prototype would still apply. */
9120 char SOCKSinit(); 9600 char SOCKSinit();
9121 9601
9122 int main() { 9602 int main() {
9123 SOCKSinit() 9603 SOCKSinit()
9124 ; return 0; } 9604 ; return 0; }
9125 EOF 9605 EOF
9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9127 rm -rf conftest* 9607 rm -rf conftest*
9128 eval "ac_cv_lib_$ac_lib_var=yes" 9608 eval "ac_cv_lib_$ac_lib_var=yes"
9129 else 9609 else
9130 echo "configure: failed program was:" >&5 9610 echo "configure: failed program was:" >&5
9131 cat conftest.$ac_ext >&5 9611 cat conftest.$ac_ext >&5
9257 fi 9737 fi
9258 done 9738 done
9259 9739
9260 if test "$extra_verbose" = "yes"; then 9740 if test "$extra_verbose" = "yes"; then
9261 echo "" 9741 echo ""
9262 echo "extra_objs = \"$extra_objs\"" 9742 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
9263 echo "c_switch_general = \"$c_switch_general\""
9264 echo "c_switch_window_system = \"$c_switch_window_system\""
9265 echo "c_switch_all = \"$c_switch_all\""
9266 echo "ld_switch_general = \"$ld_switch_general\""
9267 echo "ld_switch_window_system = \"$ld_switch_window_system\""
9268 echo "ld_switch_all = \"$ld_switch_all\""
9269 echo "ld_libs_general = \"$ld_libs_general\""
9270 echo "ld_libs_window_system = \"$ld_libs_window_system\""
9271 echo "ld_libs_all = \"$ld_libs_all\""
9272 echo "" 9743 echo ""
9273 fi 9744 fi
9274 9745
9275 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 9746 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
9276 echo "creating src/gdbinit"; echo "" 9747 echo "creating src/gdbinit"; echo ""
9827 s%@infodir@%$infodir%g 10298 s%@infodir@%$infodir%g
9828 s%@mandir@%$mandir%g 10299 s%@mandir@%$mandir%g
9829 s%@LN_S@%$LN_S%g 10300 s%@LN_S@%$LN_S%g
9830 s%@CC@%$CC%g 10301 s%@CC@%$CC%g
9831 s%@CPP@%$CPP%g 10302 s%@CPP@%$CPP%g
10303 s%@ld_switch_call_shared@%$ld_switch_call_shared%g
10304 s%@ld_switch_shared@%$ld_switch_shared%g
10305 s%@start_files@%$start_files%g
10306 s%@start_flags@%$start_flags%g
10307 s%@ld@%$ld%g
10308 s%@lib_gcc@%$lib_gcc%g
9832 s%@RANLIB@%$RANLIB%g 10309 s%@RANLIB@%$RANLIB%g
9833 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 10310 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9834 s%@INSTALL_DATA@%$INSTALL_DATA%g 10311 s%@INSTALL_DATA@%$INSTALL_DATA%g
9835 s%@YACC@%$YACC%g 10312 s%@YACC@%$YACC%g
9836 s%@SET_MAKE@%$SET_MAKE%g 10313 s%@SET_MAKE@%$SET_MAKE%g
10099 for dir in $MAKE_SUBDIR; do 10576 for dir in $MAKE_SUBDIR; do
10100 echo creating $dir/Makefile 10577 echo creating $dir/Makefile
10101 ( 10578 (
10102 cd $dir 10579 cd $dir
10103 rm -f junk.c 10580 rm -f junk.c
10104 sed -e 's/^# Generated.*//' -e 's%/\*\*/#.*%%' < Makefile.in > junk.c; 10581 < Makefile.in \
10582 sed -e 's/^# Generated.*//' \
10583 -e 's%/\*\*/#.*%%' \
10584 -e 's/^[ \f\t]*#[ \f\t]*/#/' \
10585 -e '/^##/d' \
10586 -e '/^#/ {
10587 p
10588 d
10589 }' -e '/./ {
10590 s/\([\"]\)/\\\1/g
10591 s/^/"/
10592 s/$/"/
10593 }' > junk.c;
10105 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp; 10594 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
10106 < junk.cpp \ 10595 < junk.cpp \
10107 sed -e 's/^#.*//' \ 10596 sed -e 's/^#.*//' \
10108 -e 's/^[ \f\t][ \f\t]*$//' \ 10597 -e 's/^[ \f\t][ \f\t]*$//' \
10109 -e 's/^ / /' \ 10598 -e 's/^ / /' \
10110 | sed -n -e '/^..*$/p' \ 10599 | sed -n -e '/^..*$/p' \
10111 > Makefile.new 10600 | sed '/^"/ {
10601 s/\\\([\"]\)/\1/g
10602 s/^"//
10603 s/"$//
10604 }' > Makefile.new
10112 chmod 444 Makefile.new 10605 chmod 444 Makefile.new
10113 mv -f Makefile.new Makefile 10606 mv -f Makefile.new Makefile
10114 rm -f junk.c junk.cpp 10607 rm -f junk.c junk.cpp
10115 ) 10608 )
10116 done 10609 done