Index: emacs/Makefile.in =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/Makefile.in,v retrieving revision 1.1.1.7 retrieving revision 1.7 diff -u -r1.1.1.7 -r1.7 --- Makefile.in 2002/09/10 23:31:56 1.1.1.7 +++ Makefile.in 2002/09/11 01:34:01 1.7 @@ -329,7 +329,6 @@ libexecdir=${libexecdir} archlibdir=${archlibdir} \ INSTALL_STRIP=${INSTALL_STRIP}) ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version} - -chmod 1755 ${bindir}/emacs-${version} rm -f ${bindir}/$(EMACS) -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) -unset CDPATH; \ @@ -447,7 +446,7 @@ -chmod -R a+r ${datadir}/emacs ${COPYDESTS} ${infodir} thisdir=`/bin/pwd`; \ cd ${srcdir}/etc; \ - for page in emacs etags ctags gfdl ; do \ + for page in emacs etags gfdl ; do \ (cd $${thisdir}; \ ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \ chmod a+r ${man1dir}/$${page}${manext}); \ Index: emacs/config.guess =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/config.guess,v retrieving revision 1.1.1.6 retrieving revision 1.4 diff -u -r1.1.1.6 -r1.4 Index: emacs/config.sub =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/config.sub,v retrieving revision 1.1.1.6 retrieving revision 1.5 diff -u -r1.1.1.6 -r1.5 Index: emacs/configure =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/configure,v retrieving revision 1.1.1.7 retrieving revision 1.7 diff -u -r1.1.1.7 -r1.7 --- configure 2002/09/10 23:31:54 1.1.1.7 +++ configure 2002/09/11 01:34:01 1.7 @@ -1174,6 +1174,24 @@ machine=hp800 opsys=nextstep ;; + ## Mac OS X Server + *-*-rhapsody*) + opsys=rhapsody + case "${canonical}" in + powerpc-*-rhapsody*) machine=powermacintosh ;; + i386-*-rhapsody*) machine=intel386 ;; + esac + ;; + + ## Darwin / Mac OS X + *-*-darwin*) + opsys=darwin + case "${canonical}" in + powerpc-*-darwin*) machine=powermacintosh ;; + i?86-*-darwin*) machine=intel386 ;; + esac + ;; + ## Orion machines orion-orion-bsd* ) machine=orion opsys=bsd4-2 @@ -1741,7 +1759,7 @@ * ) # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1745: checking for $ac_word" >&5 +echo "configure:1763: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1771,7 +1789,7 @@ # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1775: checking for $ac_word" >&5 +echo "configure:1793: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1822,7 +1840,7 @@ # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1826: checking for $ac_word" >&5 +echo "configure:1844: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1854,7 +1872,7 @@ fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1865,12 +1883,12 @@ cat > conftest.$ac_ext << EOF -#line 1869 "configure" +#line 1887 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1896,12 +1914,12 @@ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1918: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1905: checking whether we are using GNU C" >&5 +echo "configure:1923: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1910,7 +1928,7 @@ yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1929,7 +1947,7 @@ ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1933: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1951: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2009,7 +2027,7 @@ #### #undef clause to src/config.h.in for autoconf to modify. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:2013: checking whether ln -s works" >&5 +echo "configure:2031: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2030,7 +2048,7 @@ fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:2034: checking how to run the C preprocessor" >&5 +echo "configure:2052: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -2045,13 +2063,13 @@ # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2062,13 +2080,13 @@ rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2079,13 +2097,13 @@ rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2121,7 +2139,7 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:2125: checking for a BSD compatible install" >&5 +echo "configure:2143: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2178,7 +2196,7 @@ # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2182: checking for $ac_word" >&5 +echo "configure:2200: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2212,7 +2230,7 @@ # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2216: checking for $ac_word" >&5 +echo "configure:2234: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2242,9 +2260,9 @@ fi echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:2246: checking for AIX" >&5 +echo "configure:2264: checking for AIX" >&5 cat > conftest.$ac_ext <&6 -echo "configure:2275: checking the machine- and system-dependent files to find out +echo "configure:2293: checking the machine- and system-dependent files to find out - which libraries the lib-src programs will want, and - whether the GNU malloc routines are usable" >&5 @@ -2421,7 +2439,7 @@ if test "$enable_largefile" != no; then echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 -echo "configure:2425: checking for special C compiler options needed for large files" >&5 +echo "configure:2443: checking for special C compiler options needed for large files" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2430,7 +2448,7 @@ # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat > conftest.$ac_ext < int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; @@ -2439,7 +2457,7 @@ ; return 0; } EOF -if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -2448,7 +2466,7 @@ ac_save_CC="$CC" CC="$CC -n32" cat > conftest.$ac_ext < int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; @@ -2457,7 +2475,7 @@ ; return 0; } EOF -if { (eval echo configure:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sys_largefile_CC=' -n32' else @@ -2477,13 +2495,13 @@ fi echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 -echo "configure:2481: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +echo "configure:2499: checking for _FILE_OFFSET_BITS value needed for large files" >&5 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_file_offset_bits=no cat > conftest.$ac_ext < int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; @@ -2492,14 +2510,14 @@ ; return 0; } EOF -if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < @@ -2510,7 +2528,7 @@ ; return 0; } EOF -if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sys_file_offset_bits=64 else @@ -2530,27 +2548,27 @@ fi echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 -echo "configure:2534: checking for _LARGE_FILES value needed for large files" >&5 +echo "configure:2552: checking for _LARGE_FILES value needed for large files" >&5 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_large_files=no cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sys_large_files=1 else @@ -2586,17 +2604,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2590: checking for $ac_hdr" >&5 +echo "configure:2608: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2624,7 +2642,7 @@ # Emulation library used on NetBSD. echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 -echo "configure:2628: checking for _oss_ioctl in -lossaudio" >&5 +echo "configure:2646: checking for _oss_ioctl in -lossaudio" >&5 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2632,7 +2650,7 @@ ac_save_LIBS="$LIBS" LIBS="-lossaudio $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2672,17 +2690,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2676: checking for $ac_hdr" >&5 +echo "configure:2694: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2709,12 +2727,12 @@ done echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:2713: checking for ANSI C header files" >&5 +echo "configure:2731: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2722,7 +2740,7 @@ #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2739,7 +2757,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -2757,7 +2775,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -2778,7 +2796,7 @@ : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -2789,7 +2807,7 @@ exit (0); } EOF -if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -2813,12 +2831,12 @@ fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:2817: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:2835: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2827,7 +2845,7 @@ struct tm *tp; ; return 0; } EOF -if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -2848,12 +2866,12 @@ fi echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 -echo "configure:2852: checking for sys_siglist declaration in signal.h or unistd.h" >&5 +echo "configure:2870: checking for sys_siglist declaration in signal.h or unistd.h" >&5 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2865,7 +2883,7 @@ char *msg = *(sys_siglist + 1); ; return 0; } EOF -if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_siglist=yes else @@ -2886,12 +2904,12 @@ fi echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:2890: checking for sys/wait.h that is POSIX.1 compatible" >&5 +echo "configure:2908: checking for sys/wait.h that is POSIX.1 compatible" >&5 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2907,7 +2925,7 @@ s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } EOF -if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_sys_wait_h=yes else @@ -2929,12 +2947,12 @@ echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 -echo "configure:2933: checking for struct utimbuf" >&5 +echo "configure:2951: checking for struct utimbuf" >&5 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -2953,7 +2971,7 @@ static struct utimbuf x; x.actime = x.modtime; ; return 0; } EOF -if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_struct_utimbuf=yes else @@ -2974,12 +2992,12 @@ fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2978: checking return type of signal handlers" >&5 +echo "configure:2996: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2996,7 +3014,7 @@ int i; ; return 0; } EOF -if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -3016,19 +3034,19 @@ echo $ac_n "checking for speed_t""... $ac_c" 1>&6 -echo "configure:3020: checking for speed_t" >&5 +echo "configure:3038: checking for speed_t" >&5 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { speed_t x = 1; ; return 0; } EOF -if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_speed_t=yes else @@ -3047,12 +3065,12 @@ fi echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 -echo "configure:3051: checking for struct timeval" >&5 +echo "configure:3069: checking for struct timeval" >&5 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -3068,7 +3086,7 @@ static struct timeval x; x.tv_sec = x.tv_usec; ; return 0; } EOF -if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_struct_timeval=yes else @@ -3090,19 +3108,19 @@ fi echo $ac_n "checking for struct exception""... $ac_c" 1>&6 -echo "configure:3094: checking for struct exception" >&5 +echo "configure:3112: checking for struct exception" >&5 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; ; return 0; } EOF -if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_struct_exception=yes else @@ -3124,12 +3142,12 @@ fi echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:3128: checking whether struct tm is in sys/time.h or time.h" >&5 +echo "configure:3146: checking whether struct tm is in sys/time.h or time.h" >&5 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3137,7 +3155,7 @@ struct tm *tp; tp->tm_sec; ; return 0; } EOF -if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -3158,12 +3176,12 @@ fi echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 -echo "configure:3162: checking for tm_zone in struct tm" >&5 +echo "configure:3180: checking for tm_zone in struct tm" >&5 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include <$ac_cv_struct_tm> @@ -3171,7 +3189,7 @@ struct tm tm; tm.tm_zone; ; return 0; } EOF -if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm_zone=yes else @@ -3191,12 +3209,12 @@ else echo $ac_n "checking for tzname""... $ac_c" 1>&6 -echo "configure:3195: checking for tzname" >&5 +echo "configure:3213: checking for tzname" >&5 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #ifndef tzname /* For SGI. */ @@ -3206,7 +3224,7 @@ atoi(*tzname); ; return 0; } EOF -if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var_tzname=yes else @@ -3228,19 +3246,19 @@ fi echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 -echo "configure:3232: checking for tm_gmtoff in struct tm" >&5 +echo "configure:3250: checking for tm_gmtoff in struct tm" >&5 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { struct tm t; t.tm_gmtoff = 0 ; return 0; } EOF -if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_tm_gmtoff=yes else @@ -3262,7 +3280,7 @@ echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 -echo "configure:3266: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "configure:3284: checking for ${CC-cc} option to accept ANSI C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3279,7 +3297,7 @@ do CC="$ac_save_CC $ac_arg" cat > conftest.$ac_ext < #include @@ -3313,7 +3331,7 @@ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } EOF -if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_prog_cc_stdc="$ac_arg"; break else @@ -3335,7 +3353,7 @@ esac echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 -echo "configure:3339: checking for function prototypes" >&5 +echo "configure:3357: checking for function prototypes" >&5 if test "$ac_cv_prog_cc_stdc" != no; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -3347,12 +3365,12 @@ fi echo $ac_n "checking for working volatile""... $ac_c" 1>&6 -echo "configure:3351: checking for working volatile" >&5 +echo "configure:3369: checking for working volatile" >&5 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_volatile=yes else @@ -3382,12 +3400,12 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:3386: checking for working const" >&5 +echo "configure:3404: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -3457,19 +3475,19 @@ fi echo $ac_n "checking for void * support""... $ac_c" 1>&6 -echo "configure:3461: checking for void * support" >&5 +echo "configure:3479: checking for void * support" >&5 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_void_star=yes else @@ -3495,7 +3513,7 @@ fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:3499: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:3517: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3523,7 +3541,7 @@ echo $ac_n "checking for long file names""... $ac_c" 1>&6 -echo "configure:3527: checking for long file names" >&5 +echo "configure:3545: checking for long file names" >&5 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3574,7 +3592,7 @@ # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:3578: checking for X" >&5 +echo "configure:3596: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then @@ -3636,12 +3654,12 @@ # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3710,14 +3728,14 @@ ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -3898,12 +3916,12 @@ GNU_MALLOC=yes doug_lea_malloc=yes echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 -echo "configure:3902: checking for malloc_get_state" >&5 +echo "configure:3920: checking for malloc_get_state" >&5 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_malloc_get_state=yes" else @@ -3947,12 +3965,12 @@ fi echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 -echo "configure:3951: checking for malloc_set_state" >&5 +echo "configure:3969: checking for malloc_set_state" >&5 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_malloc_set_state=yes" else @@ -3996,19 +4014,19 @@ fi echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 -echo "configure:4000: checking whether __after_morecore_hook exists" >&5 +echo "configure:4018: checking whether __after_morecore_hook exists" >&5 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_var___after_morecore_hook=yes else @@ -4049,17 +4067,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4053: checking for $ac_hdr" >&5 +echo "configure:4071: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4088,12 +4106,12 @@ for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4092: checking for $ac_func" >&5 +echo "configure:4110: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4141,7 +4159,7 @@ done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:4145: checking for working mmap" >&5 +echo "configure:4163: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4149,7 +4167,7 @@ ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -4312,7 +4330,7 @@ LIBS="$libsrc_libs $LIBS" echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 -echo "configure:4316: checking for dnet_ntoa in -ldnet" >&5 +echo "configure:4334: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4320,7 +4338,7 @@ ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4360,7 +4378,7 @@ echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 -echo "configure:4364: checking for main in -lXbsd" >&5 +echo "configure:4382: checking for main in -lXbsd" >&5 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4368,14 +4386,14 @@ ac_save_LIBS="$LIBS" LIBS="-lXbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4397,7 +4415,7 @@ echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 -echo "configure:4401: checking for cma_open in -lpthreads" >&5 +echo "configure:4419: checking for cma_open in -lpthreads" >&5 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4405,7 +4423,7 @@ ac_save_LIBS="$LIBS" LIBS="-lpthreads $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4445,7 +4463,7 @@ echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 -echo "configure:4449: checking for XFree86 in /usr/X386" >&5 +echo "configure:4467: checking for XFree86 in /usr/X386" >&5 if test -d /usr/X386/include; then HAVE_XFREE386=yes : ${C_SWITCH_X_SITE="-I/usr/X386/include"} @@ -4477,16 +4495,16 @@ if test "${opsys}" = "gnu-linux"; then echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 -echo "configure:4481: checking whether X on GNU/Linux needs -b to link" >&5 +echo "configure:4499: checking whether X on GNU/Linux needs -b to link" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* xlinux_first_failure=no else @@ -4506,14 +4524,14 @@ CPPFLAGS="$CPPFLAGS -b i486-linuxaout" LIBS="$LIBS -b i486-linuxaout" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* xlinux_second_failure=no else @@ -4542,9 +4560,9 @@ # Reportedly, some broken Solaris systems have XKBlib.h but are missing # header files included from there. echo $ac_n "checking for Xkb""... $ac_c" 1>&6 -echo "configure:4546: checking for Xkb" >&5 +echo "configure:4564: checking for Xkb" >&5 cat > conftest.$ac_ext < #include @@ -4552,7 +4570,7 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); ; return 0; } EOF -if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_xkb=yes else @@ -4574,12 +4592,12 @@ XScreenNumberOfScreen XSetWMProtocols do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4578: checking for $ac_func" >&5 +echo "configure:4596: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4630,12 +4648,12 @@ if test "${window_system}" = "x11"; then echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 -echo "configure:4634: checking X11 version 6" >&5 +echo "configure:4652: checking X11 version 6" >&5 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -4645,7 +4663,7 @@ ; return 0; } EOF -if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_x11_version_6=yes else @@ -4670,12 +4688,12 @@ if test "${window_system}" = "x11"; then echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 -echo "configure:4674: checking X11 version 5" >&5 +echo "configure:4692: checking X11 version 5" >&5 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -4685,7 +4703,7 @@ ; return 0; } EOF -if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_x11_version_5=yes else @@ -4713,12 +4731,12 @@ if test x"${USE_X_TOOLKIT}" = xmaybe; then if test x"${HAVE_X11R5}" = xyes; then echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 -echo "configure:4717: checking X11 version 5 with Xaw" >&5 +echo "configure:4735: checking X11 version 5 with Xaw" >&5 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -4727,7 +4745,7 @@ ; return 0; } EOF -if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_x11_version_5_with_xaw=yes else @@ -4755,12 +4773,12 @@ if test "${USE_X_TOOLKIT}" != "none"; then echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 -echo "configure:4759: checking X11 toolkit version" >&5 +echo "configure:4777: checking X11 toolkit version" >&5 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -4770,7 +4788,7 @@ ; return 0; } EOF -if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_x11_toolkit_version_6=yes else @@ -4800,7 +4818,7 @@ LIBS="-lXt $LIBS" fi echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 -echo "configure:4804: checking for XmuConvertStandardSelection in -lXmu" >&5 +echo "configure:4822: checking for XmuConvertStandardSelection in -lXmu" >&5 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4808,7 +4826,7 @@ ac_save_LIBS="$LIBS" LIBS="-lXmu $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4853,7 +4871,7 @@ if test "${HAVE_X11}" = "yes"; then if test "${USE_X_TOOLKIT}" != "none"; then echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 -echo "configure:4857: checking for XShapeQueryExtension in -lXext" >&5 +echo "configure:4875: checking for XShapeQueryExtension in -lXext" >&5 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4861,7 +4879,7 @@ ac_save_LIBS="$LIBS" LIBS="-lXext $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4904,12 +4922,12 @@ if test "${USE_X_TOOLKIT}" = "MOTIF"; then echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 -echo "configure:4908: checking for Motif version 2.1" >&5 +echo "configure:4926: checking for Motif version 2.1" >&5 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -4920,7 +4938,7 @@ #endif ; return 0; } EOF -if { (eval echo configure:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_motif_version_2_1=yes else @@ -4941,7 +4959,7 @@ EOF echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 -echo "configure:4945: checking for XpCreateContext in -lXp" >&5 +echo "configure:4963: checking for XpCreateContext in -lXp" >&5 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4949,7 +4967,7 @@ ac_save_LIBS="$LIBS" LIBS="-lXp $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4995,17 +5013,17 @@ if test "${USE_X_TOOLKIT}" != "none"; then ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 -echo "configure:4999: checking for X11/Xaw3d/Scrollbar.h" >&5 +echo "configure:5017: checking for X11/Xaw3d/Scrollbar.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5022,7 +5040,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 -echo "configure:5026: checking for XawScrollbarSetThumb in -lXaw3d" >&5 +echo "configure:5044: checking for XawScrollbarSetThumb in -lXaw3d" >&5 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5030,7 +5048,7 @@ ac_save_LIBS="$LIBS" LIBS="-lXaw3d $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5109,17 +5127,17 @@ if test "${with_xpm}" != "no"; then ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 -echo "configure:5113: checking for X11/xpm.h" >&5 +echo "configure:5131: checking for X11/xpm.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5136,7 +5154,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 -echo "configure:5140: checking for XpmReadFileToPixmap in -lXpm" >&5 +echo "configure:5158: checking for XpmReadFileToPixmap in -lXpm" >&5 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5144,7 +5162,7 @@ ac_save_LIBS="$LIBS" LIBS="-lXpm -lX11 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5181,9 +5199,9 @@ if test "${HAVE_XPM}" = "yes"; then echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 -echo "configure:5185: checking for XpmReturnAllocPixels preprocessor define" >&5 +echo "configure:5203: checking for XpmReturnAllocPixels preprocessor define" >&5 cat > conftest.$ac_ext <&6 -echo "configure:5228: checking for jerror.h" >&5 +echo "configure:5246: checking for jerror.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5251,7 +5269,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 -echo "configure:5255: checking for jpeg_destroy_compress in -ljpeg" >&5 +echo "configure:5273: checking for jpeg_destroy_compress in -ljpeg" >&5 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5259,7 +5277,7 @@ ac_save_LIBS="$LIBS" LIBS="-ljpeg $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5310,17 +5328,17 @@ if test "${with_png}" != "no"; then ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for png.h""... $ac_c" 1>&6 -echo "configure:5314: checking for png.h" >&5 +echo "configure:5332: checking for png.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5337,7 +5355,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 -echo "configure:5341: checking for png_get_channels in -lpng" >&5 +echo "configure:5359: checking for png_get_channels in -lpng" >&5 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5345,7 +5363,7 @@ ac_save_LIBS="$LIBS" LIBS="-lpng -lz -lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5396,17 +5414,17 @@ if test "${with_tiff}" != "no"; then ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 -echo "configure:5400: checking for tiffio.h" >&5 +echo "configure:5418: checking for tiffio.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5426,7 +5444,7 @@ # At least one tiff package requires the jpeg library. if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 -echo "configure:5430: checking for TIFFGetVersion in -ltiff" >&5 +echo "configure:5448: checking for TIFFGetVersion in -ltiff" >&5 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5434,7 +5452,7 @@ ac_save_LIBS="$LIBS" LIBS="-ltiff $tifflibs $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5485,17 +5503,17 @@ if test "${with_gif}" != "no"; then ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 -echo "configure:5489: checking for gif_lib.h" >&5 +echo "configure:5507: checking for gif_lib.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5512,7 +5530,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 -echo "configure:5516: checking for DGifOpen in -lungif" >&5 +echo "configure:5534: checking for DGifOpen in -lungif" >&5 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5520,7 +5538,7 @@ ac_save_LIBS="$LIBS" LIBS="-lungif $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5567,19 +5585,19 @@ # If netdb.h doesn't declare h_errno, we must declare it by hand. echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 -echo "configure:5571: checking whether netdb declares h_errno" >&5 +echo "configure:5589: checking whether netdb declares h_errno" >&5 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return h_errno; ; return 0; } EOF -if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* emacs_cv_netdb_declares_h_errno=yes else @@ -5602,19 +5620,19 @@ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:5606: checking for working alloca.h" >&5 +echo "configure:5624: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -5635,12 +5653,12 @@ fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:5639: checking for alloca" >&5 +echo "configure:5657: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -5700,12 +5718,12 @@ echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:5704: checking whether alloca needs Cray hooks" >&5 +echo "configure:5722: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5734: checking for $ac_func" >&5 +echo "configure:5752: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5785,7 +5803,7 @@ fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:5789: checking stack direction for C alloca" >&5 +echo "configure:5807: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5793,7 +5811,7 @@ ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -5837,7 +5855,7 @@ # fmod, logb, and frexp are found in -lm on most systems. # On HPUX 9.01, -lm does not contain logb, so check for sqrt. echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 -echo "configure:5841: checking for sqrt in -lm" >&5 +echo "configure:5859: checking for sqrt in -lm" >&5 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5845,7 +5863,7 @@ ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5886,7 +5904,7 @@ # Check for mail-locking functions in a "mail" library echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 -echo "configure:5890: checking for maillock in -lmail" >&5 +echo "configure:5908: checking for maillock in -lmail" >&5 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5894,7 +5912,7 @@ ac_save_LIBS="$LIBS" LIBS="-lmail $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5933,7 +5951,7 @@ fi echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 -echo "configure:5937: checking for maillock in -llockfile" >&5 +echo "configure:5955: checking for maillock in -llockfile" >&5 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5941,7 +5959,7 @@ ac_save_LIBS="$LIBS" LIBS="-llockfile $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5986,7 +6004,7 @@ # Extract the first word of "liblockfile.so", so it can be a program name with args. set dummy liblockfile.so; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:5990: checking for $ac_word" >&5 +echo "configure:6008: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6027,12 +6045,12 @@ for ac_func in touchlock do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6031: checking for $ac_func" >&5 +echo "configure:6049: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6083,17 +6101,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6087: checking for $ac_hdr" >&5 +echo "configure:6105: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6129,12 +6147,12 @@ gai_strerror mkstemp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6133: checking for $ac_func" >&5 +echo "configure:6151: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6186,17 +6204,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6190: checking for $ac_hdr" >&5 +echo "configure:6208: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6225,12 +6243,12 @@ for ac_func in alarm do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6229: checking for $ac_func" >&5 +echo "configure:6247: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6278,7 +6296,7 @@ done echo $ac_n "checking for working mktime""... $ac_c" 1>&6 -echo "configure:6282: checking for working mktime" >&5 +echo "configure:6300: checking for working mktime" >&5 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6286,7 +6304,7 @@ ac_cv_func_working_mktime=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_working_mktime=yes else @@ -6462,63 +6480,12 @@ fi ac_have_func=no # yes means we've found a way to get the load average. - -# Some systems have getloadavg without any extra libraries. -echo $ac_n "checking for getloadavg""... $ac_c" 1>&6 -echo "configure:6469: checking for getloadavg" >&5 -if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getloadavg(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_getloadavg) || defined (__stub___getloadavg) -choke me -#else -getloadavg(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_getloadavg=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_getloadavg=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_have_func=yes -else - echo "$ac_t""no" 1>&6 -fi - - -if test $ac_have_func = no; then - # Some systems with -lutil have (and need) -lkvm as well, some do not. - # On Solaris, -lkvm requires nlist from -lelf, so check that first - # to get the right answer into the cache. - echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 -echo "configure:6522: checking for elf_begin in -lelf" >&5 +# Some systems with -lutil have (and need) -lkvm as well, some do not. +# On Solaris, -lkvm requires nlist from -lelf, so check that first +# to get the right answer into the cache. +echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 +echo "configure:6489: checking for elf_begin in -lelf" >&5 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6526,7 +6493,7 @@ ac_save_LIBS="$LIBS" LIBS="-lelf $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6557,8 +6524,8 @@ echo "$ac_t""no" 1>&6 fi - echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 -echo "configure:6562: checking for kvm_open in -lkvm" >&5 +echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 +echo "configure:6529: checking for kvm_open in -lkvm" >&5 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6566,7 +6533,7 @@ ac_save_LIBS="$LIBS" LIBS="-lkvm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6597,9 +6564,9 @@ echo "$ac_t""no" 1>&6 fi - # Check for the 4.4BSD definition of getloadavg. - echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 -echo "configure:6603: checking for getloadavg in -lutil" >&5 +# Check for the 4.4BSD definition of getloadavg. +echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 +echo "configure:6570: checking for getloadavg in -lutil" >&5 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6607,7 +6574,7 @@ ac_save_LIBS="$LIBS" LIBS="-lutil $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6638,14 +6605,13 @@ echo "$ac_t""no" 1>&6 fi -fi if test $ac_have_func = no; then # There is a commonly available library for RS/6000 AIX. # Since it is not a standard part of AIX, it might be installed locally. ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 -echo "configure:6649: checking for getloadavg in -lgetloadavg" >&5 +echo "configure:6615: checking for getloadavg in -lgetloadavg" >&5 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6653,7 +6619,7 @@ ac_save_LIBS="$LIBS" LIBS="-lgetloadavg $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6691,12 +6657,12 @@ for ac_func in getloadavg do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6695: checking for $ac_func" >&5 +echo "configure:6661: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6757,17 +6723,17 @@ ac_have_func=no ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 -echo "configure:6761: checking for sys/dg_sys_info.h" >&5 +echo "configure:6727: checking for sys/dg_sys_info.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6788,7 +6754,7 @@ EOF echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 -echo "configure:6792: checking for dg_sys_info in -ldgc" >&5 +echo "configure:6758: checking for dg_sys_info in -ldgc" >&5 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6796,7 +6762,7 @@ ac_save_LIBS="$LIBS" LIBS="-ldgc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6852,17 +6818,17 @@ if test $ac_have_func = no; then ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 -echo "configure:6856: checking for inq_stats/cpustats.h" >&5 +echo "configure:6822: checking for inq_stats/cpustats.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6895,17 +6861,17 @@ if test $ac_have_func = no; then ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 -echo "configure:6899: checking for sys/cpustats.h" >&5 +echo "configure:6865: checking for sys/cpustats.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6936,17 +6902,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6940: checking for $ac_hdr" >&5 +echo "configure:6906: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6976,17 +6942,17 @@ ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 -echo "configure:6980: checking for nlist.h" >&5 +echo "configure:6946: checking for nlist.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7007,19 +6973,19 @@ EOF echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 -echo "configure:7011: checking for n_un in struct nlist" >&5 +echo "configure:6977: checking for n_un in struct nlist" >&5 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { struct nlist n; n.n_un.n_name = 0; ; return 0; } EOF -if { (eval echo configure:7023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_nlist_n_un=yes else @@ -7046,12 +7012,12 @@ # Some definitions of getloadavg require that the program be installed setgid. echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 -echo "configure:7050: checking whether getloadavg requires setgid" >&5 +echo "configure:7016: checking whether getloadavg requires setgid" >&5 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:7086: checking group of /dev/kmem" >&5 +echo "configure:7052: checking group of /dev/kmem" >&5 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7103,27 +7069,27 @@ echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 -echo "configure:7107: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +echo "configure:7073: checking for _LARGEFILE_SOURCE value needed for large files" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_sys_largefile_source=no cat > conftest.$ac_ext < int main() { return !fseeko; ; return 0; } EOF -if { (eval echo configure:7120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < @@ -7132,7 +7098,7 @@ return !fseeko; ; return 0; } EOF -if { (eval echo configure:7136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sys_largefile_source=1 else @@ -7156,20 +7122,20 @@ # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. echo $ac_n "checking for fseeko""... $ac_c" 1>&6 -echo "configure:7160: checking for fseeko" >&5 +echo "configure:7126: checking for fseeko" >&5 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_func_fseeko=no cat > conftest.$ac_ext < int main() { return fseeko && fseeko (stdin, 0, 0); ; return 0; } EOF -if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_fseeko=yes else @@ -7191,12 +7157,12 @@ for ac_func in grantpt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7195: checking for $ac_func" >&5 +echo "configure:7161: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7248,12 +7214,12 @@ for ac_func in getpt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7252: checking for $ac_func" >&5 +echo "configure:7218: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7306,7 +7272,7 @@ # It's better to believe a function is not available # than to expect to find it in ncurses. echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 -echo "configure:7310: checking for tparm in -lncurses" >&5 +echo "configure:7276: checking for tparm in -lncurses" >&5 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7314,7 +7280,7 @@ ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7358,12 +7324,12 @@ # Don't set $LIBS here -- see comments above. resolv=no echo $ac_n "checking for res_send""... $ac_c" 1>&6 -echo "configure:7362: checking for res_send" >&5 +echo "configure:7328: checking for res_send" >&5 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_res_send=yes" else @@ -7404,12 +7370,12 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for __res_send""... $ac_c" 1>&6 -echo "configure:7408: checking for __res_send" >&5 +echo "configure:7374: checking for __res_send" >&5 if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func___res_send=yes" else @@ -7450,7 +7416,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 -echo "configure:7454: checking for res_send in -lresolv" >&5 +echo "configure:7420: checking for res_send in -lresolv" >&5 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7458,7 +7424,7 @@ ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7488,7 +7454,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6 -echo "configure:7492: checking for __res_send in -lresolv" >&5 +echo "configure:7458: checking for __res_send in -lresolv" >&5 ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7496,7 +7462,7 @@ ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7543,12 +7509,12 @@ RESOLVLIB= fi echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6 -echo "configure:7547: checking for hes_getmailhost" >&5 +echo "configure:7513: checking for hes_getmailhost" >&5 if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_hes_getmailhost=yes" else @@ -7589,7 +7555,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6 -echo "configure:7593: checking for hes_getmailhost in -lhesiod" >&5 +echo "configure:7559: checking for hes_getmailhost in -lhesiod" >&5 ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7597,7 +7563,7 @@ ac_save_LIBS="$LIBS" LIBS="-lhesiod $RESOLVLIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7639,7 +7605,7 @@ # These tell us which Kerberos-related libraries to use. if test "${with_kerberos+set}" = set; then echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 -echo "configure:7643: checking for com_err in -lcom_err" >&5 +echo "configure:7609: checking for com_err in -lcom_err" >&5 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7647,7 +7613,7 @@ ac_save_LIBS="$LIBS" LIBS="-lcom_err $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7686,7 +7652,7 @@ fi echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 -echo "configure:7690: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 +echo "configure:7656: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7694,7 +7660,7 @@ ac_save_LIBS="$LIBS" LIBS="-lk5crypto $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7733,7 +7699,7 @@ fi echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 -echo "configure:7737: checking for mit_des_cbc_encrypt in -lcrypto" >&5 +echo "configure:7703: checking for mit_des_cbc_encrypt in -lcrypto" >&5 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7741,7 +7707,7 @@ ac_save_LIBS="$LIBS" LIBS="-lcrypto $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7780,7 +7746,7 @@ fi echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 -echo "configure:7784: checking for krb5_init_context in -lkrb5" >&5 +echo "configure:7750: checking for krb5_init_context in -lkrb5" >&5 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7788,7 +7754,7 @@ ac_save_LIBS="$LIBS" LIBS="-lkrb5 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7828,7 +7794,7 @@ if test "${with_kerberos5+set}" != set; then echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 -echo "configure:7832: checking for des_cbc_encrypt in -ldes425" >&5 +echo "configure:7798: checking for des_cbc_encrypt in -ldes425" >&5 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7836,7 +7802,7 @@ ac_save_LIBS="$LIBS" LIBS="-ldes425 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7873,7 +7839,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 -echo "configure:7877: checking for des_cbc_encrypt in -ldes" >&5 +echo "configure:7843: checking for des_cbc_encrypt in -ldes" >&5 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7881,7 +7847,7 @@ ac_save_LIBS="$LIBS" LIBS="-ldes $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7922,7 +7888,7 @@ fi echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 -echo "configure:7926: checking for krb_get_cred in -lkrb4" >&5 +echo "configure:7892: checking for krb_get_cred in -lkrb4" >&5 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7930,7 +7896,7 @@ ac_save_LIBS="$LIBS" LIBS="-lkrb4 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7967,7 +7933,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 -echo "configure:7971: checking for krb_get_cred in -lkrb" >&5 +echo "configure:7937: checking for krb_get_cred in -lkrb" >&5 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7975,7 +7941,7 @@ ac_save_LIBS="$LIBS" LIBS="-lkrb $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8022,17 +7988,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8026: checking for $ac_hdr" >&5 +echo "configure:7992: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8063,17 +8029,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8067: checking for $ac_hdr" >&5 +echo "configure:8033: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8100,17 +8066,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8104: checking for $ac_hdr" >&5 +echo "configure:8070: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8137,17 +8103,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8141: checking for $ac_hdr" >&5 +echo "configure:8107: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8183,17 +8149,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8187: checking for $ac_hdr" >&5 +echo "configure:8153: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8220,17 +8186,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8224: checking for $ac_hdr" >&5 +echo "configure:8190: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8257,17 +8223,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8261: checking for $ac_hdr" >&5 +echo "configure:8227: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8304,17 +8270,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8308: checking for $ac_hdr" >&5 +echo "configure:8274: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8345,7 +8311,7 @@ # Solaris requires -lintl if you want strerror (which calls dgettext) # to return localized messages. echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 -echo "configure:8349: checking for dgettext in -lintl" >&5 +echo "configure:8315: checking for dgettext in -lintl" >&5 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8353,7 +8319,7 @@ ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8393,7 +8359,7 @@ echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 -echo "configure:8397: checking whether localtime caches TZ" >&5 +echo "configure:8363: checking whether localtime caches TZ" >&5 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8403,7 +8369,7 @@ emacs_cv_localtime_cache=yes else cat > conftest.$ac_ext < extern char **environ; @@ -8435,7 +8401,7 @@ exit (0); } EOF -if { (eval echo configure:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then emacs_cv_localtime_cache=no else @@ -8465,12 +8431,12 @@ for ac_func in gettimeofday do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8469: checking for $ac_func" >&5 +echo "configure:8435: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8518,12 +8484,12 @@ done echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 -echo "configure:8522: checking whether gettimeofday can accept two arguments" >&5 +echo "configure:8488: checking whether gettimeofday can accept two arguments" >&5 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* emacs_cv_gettimeofday_two_arguments=yes else @@ -8564,25 +8530,25 @@ if test "$ac_cv_func_gettimeofday" = yes; then echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 -echo "configure:8568: checking for struct timezone" >&5 +echo "configure:8534: checking for struct timezone" >&5 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { struct timezone tz; ; return 0; } EOF -if { (eval echo configure:8580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* if test "$cross_compiling" = yes; then emacs_cv_struct_timezone=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then emacs_cv_struct_timezone=yes else @@ -8627,12 +8593,12 @@ ok_so_far=yes echo $ac_n "checking for socket""... $ac_c" 1>&6 -echo "configure:8631: checking for socket" >&5 +echo "configure:8597: checking for socket" >&5 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_socket=yes" else @@ -8678,17 +8644,17 @@ if test $ok_so_far = yes; then ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 -echo "configure:8682: checking for netinet/in.h" >&5 +echo "configure:8648: checking for netinet/in.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8714,17 +8680,17 @@ if test $ok_so_far = yes; then ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 -echo "configure:8718: checking for arpa/inet.h" >&5 +echo "configure:8684: checking for arpa/inet.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8762,7 +8728,7 @@ fi echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 -echo "configure:8766: checking whether system supports dynamic ptys" >&5 +echo "configure:8732: checking whether system supports dynamic ptys" >&5 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -8774,12 +8740,12 @@ fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:8778: checking for pid_t" >&5 +echo "configure:8744: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -8808,17 +8774,17 @@ ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 -echo "configure:8812: checking for vfork.h" >&5 +echo "configure:8778: checking for vfork.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8843,18 +8809,18 @@ fi echo $ac_n "checking for working vfork""... $ac_c" 1>&6 -echo "configure:8847: checking for working vfork" >&5 +echo "configure:8813: checking for working vfork" >&5 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then echo $ac_n "checking for vfork""... $ac_c" 1>&6 -echo "configure:8853: checking for vfork" >&5 +echo "configure:8819: checking for vfork" >&5 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vfork=yes" else @@ -8899,7 +8865,7 @@ ac_cv_func_vfork_works=$ac_cv_func_vfork else cat > conftest.$ac_ext < @@ -8994,7 +8960,7 @@ } } EOF -if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_vfork_works=yes else @@ -9019,12 +8985,12 @@ # Fixme: This should be replaced when we have autoconf 2.14. echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:9023: checking for size_t" >&5 +echo "configure:8989: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -9218,7 +9184,7 @@ ## C preprocessor. cat > conftest.$ac_ext < # else @@ -449,7 +451,7 @@ /* Avoid static vars inside a function since in HPUX they dump as pure. */ -# ifdef NeXT +# if defined(NeXT) || defined(RHAPSODY) || defined(DARWIN) static processor_set_t default_set; static int getloadavg_initialized; # endif /* NeXT */ @@ -486,6 +488,9 @@ Return the number written (never more than 3, but may be less than NELEM), or -1 if an error occurred. */ +#ifdef __APPLE_CC__ +__private_extern__ +#endif int getloadavg (loadavg, nelem) double loadavg[]; @@ -626,14 +631,10 @@ # endif /* __NetBSD__ */ -# if !defined (LDAV_DONE) && defined (NeXT) +# if !defined (LDAV_DONE) && (defined(NeXT) || defined(RHAPSODY) || defined(DARWIN)) # define LDAV_DONE /* The NeXT code was adapted from iscreen 3.2. */ - host_t host; - struct processor_set_basic_info info; - unsigned info_count; - /* We only know how to get the 1-minute average for this system, so even if the caller asks for more than 1, we only return 1. */ @@ -643,10 +644,19 @@ getloadavg_initialized = 1; } +#ifndef DARWIN +#define processor_set_load_info processor_set_basic_info +#define PROCESSOR_SET_LOAD_INFO PROCESSOR_SET_BASIC_INFO +#define PROCESSOR_SET_LOAD_INFO_COUNT PROCESSOR_SET_BASIC_INFO_COUNT +#endif + if (getloadavg_initialized) { - info_count = PROCESSOR_SET_BASIC_INFO_COUNT; - if (processor_set_info (default_set, PROCESSOR_SET_BASIC_INFO, &host, + struct processor_set_load_info info; + host_t host; + unsigned info_count = PROCESSOR_SET_LOAD_INFO_COUNT; + + if (processor_set_info (default_set, PROCESSOR_SET_LOAD_INFO, &host, (processor_set_info_t) &info, &info_count) != KERN_SUCCESS) getloadavg_initialized = 0; Index: emacs/src/lisp.h =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/lisp.h,v retrieving revision 1.1.1.7 retrieving revision 1.4 diff -u -r1.1.1.7 -r1.4 --- lisp.h 2002/09/10 23:35:02 1.1.1.7 +++ lisp.h 2002/09/11 01:34:04 1.4 @@ -2770,7 +2770,7 @@ extern void close_process_descs P_ ((void)); extern void status_notify P_ ((void)); extern int read_process_output P_ ((Lisp_Object, int)); -extern void init_process P_ ((void)); +extern void init_emacs_process P_ ((void)); extern void syms_of_process P_ ((void)); /* defined in callproc.c */ Index: emacs/src/process.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/process.c,v retrieving revision 1.1.1.7 retrieving revision 1.6 diff -u -r1.1.1.7 -r1.6 --- process.c 2002/09/10 23:35:04 1.1.1.7 +++ process.c 2002/09/11 01:34:04 1.6 @@ -1482,7 +1482,11 @@ current_dir = ENCODE_FILE (current_dir); #ifndef WINDOWSNT +#ifndef PUMA_VFORK_ISSUES_CLEARED_UP + pid = fork (); +#else pid = vfork (); +#endif if (pid == 0) #endif /* not WINDOWSNT */ { @@ -4604,7 +4608,7 @@ } void -init_process () +init_emacs_process () { register int i; @@ -5003,7 +5007,7 @@ } void -init_process () +init_emacs_process () { } Index: emacs/src/regex.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/regex.c,v retrieving revision 1.1.1.7 retrieving revision 1.4 diff -u -r1.1.1.7 -r1.4 Index: emacs/src/sysdep.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/sysdep.c,v retrieving revision 1.1.1.5 retrieving revision 1.4 diff -u -r1.1.1.5 -r1.4 --- sysdep.c 2002/09/10 23:35:06 1.1.1.5 +++ sysdep.c 2002/09/11 01:34:04 1.4 @@ -813,7 +813,12 @@ synch_process_alive = 1; #endif /* __DJGPP__ > 1 */ #else +#ifndef PUMA_VFORK_ISSUES_CLEARED_UP + pid = fork (); +#else pid = vfork (); +#endif + if (pid == -1) error ("Can't spawn subshell"); #endif Index: emacs/src/term.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/term.c,v retrieving revision 1.1.1.6 retrieving revision 1.3 diff -u -r1.1.1.6 -r1.3 Index: emacs/src/termcap.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/termcap.c,v retrieving revision 1.1.1.6 retrieving revision 1.6 diff -u -r1.1.1.6 -r1.6 --- termcap.c 2001/10/31 17:58:46 1.1.1.6 +++ termcap.c 2002/01/08 02:38:33 1.6 @@ -144,6 +144,9 @@ return NULL; } +#ifdef __APPLE_CC__ +__private_extern__ +#endif int tgetnum (cap) char *cap; @@ -154,6 +157,9 @@ return atoi (ptr); } +#ifdef __APPLE_CC__ +__private_extern__ +#endif int tgetflag (cap) char *cap; @@ -167,6 +173,9 @@ to store the string. That pointer is advanced over the space used. If AREA is null, space is allocated with `malloc'. */ +#ifdef __APPLE_CC__ +__private_extern__ +#endif char * tgetstr (cap, area) char *cap; @@ -311,6 +320,9 @@ #endif /* 0 */ +#ifdef __APPLE_CC__ +__private_extern__ +#endif void tputs (str, nlines, outfun) register char *str; @@ -436,6 +448,9 @@ 0 if the data base is accessible but the type NAME is not defined in it, and some other value otherwise. */ +#ifdef __APPLE_CC__ +__private_extern__ +#endif int tgetent (bp, name) char *bp, *name; Index: emacs/src/tparam.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/tparam.c,v retrieving revision 1.1.1.6 retrieving revision 1.5 diff -u -r1.1.1.6 -r1.5 --- tparam.c 2001/10/31 17:58:47 1.1.1.6 +++ tparam.c 2002/01/08 02:38:33 1.5 @@ -110,6 +110,9 @@ static char tgoto_buf[50]; +#ifdef __APPLE_CC__ +__private_extern__ +#endif char * tgoto (cm, hpos, vpos) char *cm; Index: emacs/src/unexdyld.c =================================================================== RCS file: unexdyld.c diff -N unexdyld.c --- emacs/src/unexdyld.c Tue Sep 17 14:45:13 2002 +++ /tmp/cvs000907 Tue Sep 17 16:29:09 2002 @@ -0,0 +1,996 @@ +/* Dump Emacs in macho format. + Copyright (C) 1990, 1993 Free Software Foundation, Inc. + Derived from unexnext.c by Bradley Taylor (btaylor@next.com). + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#include "config.h" +#include +#ifdef HAVE_UNISTD_H +#include +#endif +#include +#include +#include +#ifndef NeXT +#include +#endif +#include +#include +#include + +extern int malloc_freezedry (void); + +int malloc_cookie; + +#define VERBOSE + +#ifdef VERBOSE +#define SHOW_MCOPY_WRITES +#define SHOW_MCOPY_READS +#endif + +typedef struct region_t +{ + struct region_t *next; + vm_address_t address; + vm_size_t size; + vm_prot_t protection; + vm_prot_t max_protection; + + /* And some info about where it was written to disk. */ + unsigned long file_offset; + unsigned long file_size; +} region_t; + +typedef struct section_list_t +{ + struct section_list_t *next; + struct section section; +} section_list_t; + +static void fatal_unexec (char *format, ...) +{ + va_list ap; + + va_start (ap, format); + fprintf (stderr, "unexec: "); + vfprintf (stderr, format, ap); + fprintf (stderr, "\n"); + va_end (ap); + exit (1); +} + +static void print_region (struct region_t *region) +{ + printf ("0x%8lx - 0x%8lx, length: 0x%8lx, protection: %c%c%c, max_protection: %c%c%c\n", + region->address, region->address + region->size, region->size, + (region->protection & VM_PROT_READ) ? 'r' : '-', + (region->protection & VM_PROT_WRITE) ? 'w' : '-', + (region->protection & VM_PROT_EXECUTE) ? 'x' : '-', + (region->max_protection & VM_PROT_READ) ? 'r' : '-', + (region->max_protection & VM_PROT_WRITE) ? 'w' : '-', + (region->max_protection & VM_PROT_EXECUTE) ? 'x' : '-'); +} + +static void print_regions (struct region_t *regions) +{ + while (regions != NULL) + { + print_region (regions); + regions = regions->next; + } +} + +static void print_section (struct section *section) +{ + printf ("0x%8lx - 0x%8lx, length: 0x%8lx, offset: 0x%8lx\n", + section->addr, section->addr + section->size, section->size, section->offset); +} + +static void print_sections (section_list_t *sections) +{ + while (sections != NULL) + { + print_section (&(sections->section)); + sections = sections->next; + } +} + +static section_list_t *create_new_section_list(struct section *section_pointer) +{ + section_list_t *section_list; + + section_list = malloc (sizeof (section_list_t)); + section_list->next = NULL; + section_list->section = *section_pointer; + + return section_list; +} + +static void append_section_list(section_list_t **first_list, section_list_t *last_list) +{ + section_list_t *current; + + if (*first_list == NULL) { + *first_list = last_list; + return; + } + + current = *first_list; + while (current->next != NULL) + current = current->next; + + current->next = last_list; +} + +static void free_section_list(section_list_t *section_list) +{ + section_list_t *next; + + while (section_list != NULL) + { + next = section_list->next; + free(section_list); + section_list = next; + } +} + +static void add_sections_from_segment(section_list_t **all_sections, struct segment_command *segment) +{ + struct section *section_pointer; + int index; + + section_pointer = (struct section *)(segment + 1); + for (index = 0; index < segment->nsects; index++) { + append_section_list (all_sections, create_new_section_list (section_pointer)); + section_pointer++; + } +} + +static int section_with_address (section_list_t *sections, unsigned long address) +{ + int current_section, found_section; + + found_section = 0; + current_section = 1; + while (sections != NULL) + { + if (address >= sections->section.addr && address < sections->section.addr + sections->section.size) { + found_section = current_section; + break; + } + sections = sections->next; + current_section++; + } + + return found_section; +} + +/* + * Copy len bytes from ffd@fpos to tfd@tpos. + * If both file descriptors are -1, copy in memory (handles overlapping copies). + * If either ffd or tfd are -1, either read or write len bytes. + */ + +static void mcopy (int ffd, int tfd, + unsigned long fpos, unsigned long tpos, unsigned long len, char *reason) +{ + if ((ffd == -1) && (tfd == -1)) + { + char *f, *t, *e; + if (fpos > tpos) + { + f = (char *)fpos; + t = (char *)tpos; + e = (char *)(fpos + len); + while (f < e) *t++ = *f++; + } + else if (tpos > fpos) + { + f = (char *)(fpos + len); + t = (char *)(tpos + len); + e = (char *)fpos; + while (f > e) *--t = *--f; + } +#ifdef SHOW_MCOPY_READS + printf ("read: %10lu - %10lu, length: %10lu [from MEM] (%s)\n", tpos, tpos+len, len, reason); +#endif + } + else if (ffd == -1) + { + if (lseek (tfd, tpos, L_SET) < 0) + fatal_unexec ("cannot seek target"); + if (write (tfd, (void *)fpos, len) != len) + fatal_unexec ("cannot write target"); +#ifdef SHOW_MCOPY_WRITES + printf ("write: %10lu - %10lu, length: %10lu [from MEM] (%s)\n", tpos, tpos+len, len, reason); +#endif + } + else if (tfd == -1) + { + if (lseek (ffd, fpos, L_SET) < 0) + fatal_unexec ("cannot seek source"); + if (read (ffd, (void *)tpos, len) != len) + fatal_unexec ("cannot read source"); +#ifdef SHOW_MCOPY_READS + printf ("read: %10lu - %10lu, length: %10lu [from DISK] (%s)\n", tpos, tpos+len, len, reason); +#endif + } + else + { + int bread; + char *buf = alloca (1 << 16); + +#ifdef SHOW_MCOPY_WRITES + printf ("write: %10lu - %10lu, length: %10lu [from DISK] (%s)\n", tpos, tpos+len, len, reason); +#endif + + if (lseek (ffd, fpos, L_SET) < 0) + fatal_unexec ("cannot seek source"); + + if (lseek (tfd, tpos, L_SET) < 0) + fatal_unexec ("cannot seek target"); + + while((len > 0) && (bread = read (ffd, buf, MIN(1 << 16, len))) > 0) + { + if (bread < 0) + fatal_unexec ("cannot read source"); + if (write (tfd, buf, bread) != bread) + fatal_unexec ("cannot write target"); + len -= bread; + } + } +} + +/* + * The process of dumping (or unexecing) is the opposite of exec(). + * It takes the original executable and parts of memory that have been + * loaded with data, and creates a new executable. This allows + * standard lisp files to be loaded "instantly", because they are part + * of the executable. + * + * This involves using vm_region() to build a list of allocated memory + * regions, combining adjacent "similar" regions to reduce their + * number, skipping read-only regions and parts of regions covered by + * non-data segment load commands, and finally replacing the (usually + * one) data segment with a new segment for each region. + * + * File offsets in load commands that follow the data segment must be + * adjusted by the change in size of the data segment. The size of + * the load commands can increase without affecting file offsets -- + * see the note below. + * + * Data associated with the LC_SYMTAB and LC_DYSYMTAB is found in the + * __LINKEDIT segment -- there is no extra data to be written for + * these load commands. + * + * Relocatable symbols from the data segment, which we took from + * memory, need to be unrelocated. The relocatable address is found + * in the new mach-o file and then zeroed out. Failure to do this + * typically results in a segmentation fault, with the offending + * address being double what it is at the same point in temacs, since + * it has been relocated twice. + * + * Be sure to study the loader.h file if you want to understand this. + * otool -lv shows the load commands of the file, and is very useful + * when debugging this code. Also, 'size -m -x -l' gives a short + * list of the sections, and 'nm -maxp' and 'nm -map' are useful + * for the symbol table stuff. + * + * Note: This is not obvious, but the __TEXT section usually has a + * file offset of 0, and so when it is written it will overwrite + * any mach headers or load commands that have already been + * written... How much room is there before critial parts are + * overwritten when we add load commands? + * + * -- Steve Nygard + */ + +static void unexec_doit(int infd,int outfd) +{ + int i, j, l, header_position, output_position; + region_t *regions = NULL, *cregion, **pregions; + struct mach_header mach_header; + struct load_command *load_command, *original_load_commands; + struct segment_command *segment_pointer; + struct symtab_command *symtab_pointer; + struct section *section_pointer; + section_list_t *all_sections = NULL; + + unsigned long delta = 0; +#if defined(NS_TARGET) || !defined(NeXT) + struct dysymtab_command *dysymtab; + struct twolevel_hints_command *hinttab; + unsigned long extreloff = 0; + unsigned long nextrel = 0; + unsigned long locreloff = 0; + unsigned long nlocrel = 0; + struct relocation_info reloc_info; + unsigned long fixed_reloc_count = 0; +#endif + + struct segment_command new_data_segment; + section_list_t *original_sections, *new_sections, **sect_ptr, *section_item; + + malloc_cookie = malloc_freezedry(); +#ifdef VERBOSE + printf ("malloc_cookie: %lx\n", malloc_cookie); +#endif + if (malloc_cookie == 0) + { + fprintf(stderr, "Error in malloc_freezedry()\n"); + abort(); + } + + { + vm_address_t address; + vm_size_t size; + mach_port_t object_name; +#ifdef DARWIN + task_t task = mach_task_self(); + struct vm_region_basic_info info; + mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT; +#else + task_t task = task_self(); + vm_prot_t protection, max_protection; + vm_inherit_t inheritance; + boolean_t shared; + vm_offset_t offset; +#endif + + for (address = VM_MIN_ADDRESS, pregions = ®ions; +#ifdef DARWIN + vm_region(task, &address, &size, VM_REGION_BASIC_INFO, + (vm_region_info_t)&info, &info_count, &object_name) == KERN_SUCCESS; +#else + vm_region(task, &address, &size, &protection, &max_protection, + &inheritance, &shared, &object_name, &offset) == KERN_SUCCESS; +#endif + address += size) + { + (*pregions) = alloca (sizeof(region_t)); + (*pregions)->address = address; + (*pregions)->size = size; +#ifdef DARWIN + (*pregions)->protection = info.protection; + (*pregions)->max_protection = info.max_protection; +#else + (*pregions)->protection = protection; + (*pregions)->max_protection = max_protection; +#endif + (*pregions)->file_offset = 0; + (*pregions)->file_size = 0; + (*pregions)->next = 0; + pregions = &((*pregions)->next); +#ifdef DARWIN + if (object_name != MACH_PORT_NULL) + mach_port_deallocate(mach_task_self(), object_name); + info_count = VM_REGION_BASIC_INFO_COUNT; +#endif + } + } +#ifdef VERBOSE + printf ("Regions.\n"); + print_regions (regions); + printf ("----------------------------------------------------------------------\n"); +#endif + + /* + * Concatenate regions that are adjacent in memory and share the same + * protection attributes. + */ + + for (cregion = regions; cregion; cregion = cregion->next) + { + while ((cregion->next) && + (cregion->next->address == cregion->address + cregion->size) && + (cregion->next->protection == cregion->protection) && + (cregion->next->max_protection == cregion->max_protection)) + { + cregion->size += cregion->next->size; + cregion->next = cregion->next->next; + } + } +#ifdef VERBOSE + printf ("Concatenated regions.\n"); + print_regions (regions); + printf ("----------------------------------------------------------------------\n"); +#endif + + /* + * Remove read-only regions, and regions above a fixed limit. + * Could have been done before allocating, but this way we can show + * the regions before and after while debugging. + */ + + for (pregions = ®ions; *pregions != NULL;) + { + if ( !((*pregions)->protection & VM_PROT_WRITE) + || ((*pregions)->address >= 0x3000000)) + { + *pregions = (*pregions)->next; + } + else + { + pregions = &((*pregions)->next); + } + } +#ifdef VERBOSE + printf ("Skipped regions.\n"); + print_regions (regions); + printf ("----------------------------------------------------------------------\n"); +#endif + /* + * Read original mach header and load commands. + */ + + mcopy (infd, -1, 0, (unsigned long) &mach_header, sizeof(mach_header), "read original mach header"); + original_load_commands = alloca (mach_header.sizeofcmds); + mcopy (infd, -1, sizeof(mach_header), (unsigned long) original_load_commands, mach_header.sizeofcmds, + "read original load comands"); + + /* + * Skip (or adjust) regions that intersect memory represented by non-data + * segments from the original load commands. + */ + + for (pregions = ®ions; *pregions;) + { + for (load_command = original_load_commands, i = 0; + i < mach_header.ncmds; + i++, load_command = (struct load_command *)(((void *)load_command) + load_command->cmdsize)) + { + unsigned long ob, oe; + segment_pointer = (struct segment_command *)load_command; + if (segment_pointer->cmd != LC_SEGMENT || (strcmp (segment_pointer->segname, SEG_DATA) == 0)) continue; + ob = MAX((*pregions)->address, segment_pointer->vmaddr); + oe = MIN((*pregions)->address + (*pregions)->size, segment_pointer->vmaddr + segment_pointer->vmsize); + if (ob >= oe) continue; + if (ob == (*pregions)->address) + { + if (oe == (*pregions)->address + (*pregions)->size) + { + goto skip_region; + } + else + { + (*pregions)->address = oe; + (*pregions)->size -= (oe - ob); + } + } + else + { + if (oe == (*pregions)->address + (*pregions)->size) + { + (*pregions)->size -= (oe - ob); + } + else + { + cregion = alloca (sizeof(*cregion)); + cregion->address = oe; + cregion->size = ((*pregions)->address + (*pregions)->size) - oe; + cregion->protection = (*pregions)->protection; + cregion->max_protection = (*pregions)->max_protection; + cregion->file_offset = 0; + cregion->file_size = 0; + cregion->next = (*pregions)->next; + (*pregions)->size = ob - (*pregions)->address; + (*pregions)->next = cregion; + } + } + } + + pregions = &((*pregions)->next); + continue; + + skip_region: + *pregions = (*pregions)->next; + } +#ifdef VERBOSE + printf ("Munged regions (1).\n"); + print_regions (regions); + printf ("----------------------------------------------------------------------\n"); +#endif + + for (load_command = original_load_commands, i = mach_header.ncmds, header_position = sizeof(mach_header), output_position = 0; + i > 0; + i--, load_command = (struct load_command *)(((void *)load_command) + load_command->cmdsize)) + { + switch (load_command->cmd) + { + case LC_SEGMENT: + segment_pointer = (struct segment_command *)load_command; + + if (strcmp (segment_pointer->segname, SEG_DATA) == 0) + { +#if 1 + unsigned long current_address; + + original_sections = NULL; + new_sections = NULL; + sect_ptr = &original_sections; + + section_pointer = (struct section *)(segment_pointer + 1); + for (l = 0; l < segment_pointer->nsects; l++) + { + if (!strncmp (section_pointer->sectname, "__la_symbol_ptr", 16)) + { + section_item = alloca (sizeof (section_list_t)); + section_item->next = *sect_ptr; + section_item->section = *section_pointer; + *sect_ptr = section_item; + sect_ptr = &(section_item->next); + } + else if (!strncmp (section_pointer->sectname, "__nl_symbol_ptr", 16)) + { + section_item = alloca (sizeof (section_list_t)); + section_item->next = *sect_ptr; + section_item->section = *section_pointer; + *sect_ptr = section_item; + sect_ptr = &(section_item->next); + } + else if (!strncmp (section_pointer->sectname, "__dyld", 16)) + { + section_item = alloca (sizeof (section_list_t)); + section_item->next = *sect_ptr; + section_item->section = *section_pointer; + *sect_ptr = section_item; + sect_ptr = &(section_item->next); + } + + section_pointer++; + } + + cregion = regions; + /* new_data_segment */ + new_data_segment.cmd = LC_SEGMENT; + strncpy (new_data_segment.segname, SEG_DATA, 16); + new_data_segment.vmaddr = cregion->address; + new_data_segment.vmsize = 0; + new_data_segment.fileoff = 0; + new_data_segment.filesize = 0; + new_data_segment.maxprot = cregion->max_protection; + new_data_segment.initprot = cregion->protection; + new_data_segment.flags = segment_pointer->flags; + new_data_segment.nsects = 0; + new_data_segment.cmdsize = sizeof (struct segment_command); +#ifdef VERBOSE + printf ("Original sections:\n"); + print_sections (original_sections); + printf ("----------------------------------------------------------------------\n"); +#endif + /* Create list of new segments */ + sect_ptr = &new_sections; + current_address = new_data_segment.vmaddr; + while (original_sections != NULL) + { + if (current_address < original_sections->section.addr) + { + /* Create new section for this. */ + section_item = alloca (sizeof (section_list_t)); + section_item->next = *sect_ptr; + + section_pointer = &(section_item->section); + strncpy (section_pointer->sectname, "__data", 16); + strncpy (section_pointer->segname, SEG_DATA, 16); + section_pointer->addr = current_address; + section_pointer->size = original_sections->section.addr - current_address; + section_pointer->offset = 0; + section_pointer->align = 2; /* Yuck. */ + section_pointer->reloff = 0; + section_pointer->nreloc = 0; + section_pointer->flags = 0; /* S_REGULAR? */ + section_pointer->reserved1 = 0; + section_pointer->reserved2 = 0; + + *sect_ptr = section_item; + sect_ptr = &(section_item->next); + current_address = original_sections->section.addr; + } + + /* Put/copy this section into new list */ + section_item = original_sections; + original_sections = original_sections->next; + section_item->next = *sect_ptr; /* Should be NULL... */ + *sect_ptr = section_item; + sect_ptr = &(section_item->next); + + /* increase current address */ + current_address += section_item->section.size; + } + /* if current address < end of region, add final section. */ + if (current_address < cregion->address + cregion->size) + { + /* Create new section for this. */ + section_item = alloca (sizeof (section_list_t)); + section_item->next = *sect_ptr; + + section_pointer = &(section_item->section); + strncpy (section_pointer->sectname, "__data", 16); + strncpy (section_pointer->segname, SEG_DATA, 16); + section_pointer->addr = current_address; + section_pointer->size = cregion->address + cregion->size - current_address; + section_pointer->offset = 0; + section_pointer->align = 2; /* Yuck. */ + section_pointer->reloff = 0; + section_pointer->nreloc = 0; + section_pointer->flags = 0; /* S_REGULAR? */ + section_pointer->reserved1 = 0; + section_pointer->reserved2 = 0; + + *sect_ptr = section_item; + sect_ptr = &(section_item->next); + + } +#ifdef VERBOSE + printf ("New sections:\n"); + print_sections (new_sections); + printf ("----------------------------------------------------------------------\n"); +#endif + /** + * Go through new list of sections + * - write section to disk, either from memory or original file + * - say, if offset == 0, take from memory, otherwise from original file at that offset + * - set offset of section + * - set fileoff of segment to be that of the first section + * - increase output position + **/ + + sect_ptr = &new_sections; + while (*sect_ptr != NULL) + { + section_pointer = &((*sect_ptr)->section); + if (new_data_segment.fileoff == 0) + new_data_segment.fileoff = output_position; + new_data_segment.vmsize += section_pointer->size; + new_data_segment.filesize += section_pointer->size; + new_data_segment.nsects++; + new_data_segment.cmdsize += sizeof (struct section); + printf ("section is '%s'\n", section_pointer->sectname); + if (section_pointer->offset == 0) + { + mcopy (-1, outfd, (unsigned long) section_pointer->addr, output_position, section_pointer->size, + "SEG_DATA: write section data from memory"); + } + else + { + mcopy (infd, outfd, (unsigned long) section_pointer->offset, output_position, section_pointer->size, + "SEG_DATA: write section data from original file"); + } + section_pointer->offset = output_position; + output_position += section_pointer->size; + + sect_ptr = &((*sect_ptr)->next); + } + + /* Write data segment and sections, increasing the header position */ + mcopy (-1, outfd, (unsigned long) &new_data_segment, header_position, sizeof (struct segment_command), + "SEG_DATA: write segment command"); + header_position += sizeof (struct segment_command); + while (new_sections != NULL) + { + mcopy (-1, outfd, (unsigned long) &(new_sections->section), header_position, sizeof (struct section), + "SEG_DATA: write section command"); + // Need to add this section to a list of all the sections + header_position += sizeof (struct section); + append_section_list (&all_sections, create_new_section_list (&(new_sections->section))); + new_sections = new_sections->next; + } + mach_header.ncmds++; + + /* Finally, skip first data segment. */ + regions = regions->next; +#endif + +#if 1 + /* Write remainder of regions as data segments */ + mach_header.ncmds--; + j = segment_pointer->cmdsize; /* Save original command size for loop. */ + for (cregion = regions; cregion != NULL; cregion = cregion->next) + { + mcopy (-1, outfd, cregion->address, output_position, cregion->size, + "SEG_DATA: write remainder data"); + segment_pointer->cmd = LC_SEGMENT; + segment_pointer->cmdsize = sizeof(*segment_pointer); + strncpy (segment_pointer->segname, SEG_DATA, sizeof(segment_pointer->segname)); + segment_pointer->vmaddr = cregion->address; + segment_pointer->vmsize = cregion->size; + segment_pointer->filesize = cregion->size; + segment_pointer->maxprot = cregion->max_protection; + segment_pointer->initprot = cregion->protection; + segment_pointer->nsects = 0; + segment_pointer->flags = 0; + segment_pointer->fileoff = output_position; + output_position += segment_pointer->filesize; + mcopy (-1, outfd, (unsigned long)segment_pointer, header_position, segment_pointer->cmdsize, + "SEG_DATA: write segment command for remainder data"); + header_position += segment_pointer->cmdsize; + mach_header.ncmds++; + + cregion->file_offset = segment_pointer->fileoff; + cregion->file_size = segment_pointer->filesize; + } + segment_pointer->cmdsize = j; + +#endif + } + else + { +#ifdef VERBOSE + printf ("segment is '%s':\n", segment_pointer->segname); +#endif + mcopy (infd, outfd, segment_pointer->fileoff, output_position, segment_pointer->filesize, + "SEG_OTHER: write segment data"); + section_pointer = (struct section *) (((void *)segment_pointer)+sizeof(*segment_pointer)); + for(j = 0; j < segment_pointer->nsects; j++) + { + if (section_pointer[j].offset != 0) + section_pointer[j].offset = (section_pointer[j].offset - segment_pointer->fileoff) + output_position; + if (section_pointer[j].reloff != 0) + section_pointer[j].reloff = (section_pointer[j].reloff - segment_pointer->fileoff) + output_position; + } + + if (strcmp (segment_pointer->segname, SEG_LINKEDIT) == 0) + { + delta = output_position - segment_pointer->fileoff; + } + + segment_pointer->fileoff = output_position; + output_position += segment_pointer->filesize; + + mcopy (-1, outfd, (unsigned long)load_command, header_position, load_command->cmdsize, + "SEG_OTHER: write segment command and its sections"); + header_position += load_command->cmdsize; + + // Now, scan the segments for sections, so we have a list of all the sections to use to fix up + // the symbol table entries. + add_sections_from_segment(&all_sections, segment_pointer); + } + break; + + case LC_SYMTAB: + { + struct nlist *symtab; + + symtab_pointer = (struct symtab_command *)load_command; + + symtab = malloc(symtab_pointer->nsyms * sizeof(struct nlist)); + mcopy(infd, -1, symtab_pointer->symoff, (unsigned long)symtab, symtab_pointer->nsyms * sizeof(struct nlist), + "Read old symbol table into memory"); + + symtab_pointer->symoff += delta; + symtab_pointer->stroff += delta; + mcopy (-1, outfd, (unsigned long)load_command, header_position, load_command->cmdsize, + "write symtab command"); + header_position += load_command->cmdsize; + printf ("LC_SYMTAB: symoff = %ld, nsyms = %ld, stroff = %ld, strsize = %ld\n", + symtab_pointer->symoff, symtab_pointer->nsyms, symtab_pointer->stroff, symtab_pointer->strsize); + + // We've already written out the symbol table, but we're going to read it back in, adjust the + // symbol table entries, and write out the result again. + + if (all_sections != NULL) + { + int index; + struct nlist *nlist_pointer; + section_list_t *section; + int section_index; + int changed_symtabs; + + printf ("All sections:\n"); + print_sections (all_sections); + + changed_symtabs = 0; + nlist_pointer = symtab; + + for (index = 0; index < symtab_pointer->nsyms; index++) { + if ((nlist_pointer->n_type & N_TYPE) == N_SECT) { + section_index = section_with_address(all_sections, nlist_pointer->n_value); +#if 0 + printf ("%5d: 0x%08lx 0x%02x 0x%02x (0x%02x) 0x%04x 0x%08lx\n", + index, nlist_pointer->n_un.n_strx, nlist_pointer->n_type & 0xff, nlist_pointer->n_sect & 0xff, + section_index, + nlist_pointer->n_desc & 0xffff, nlist_pointer->n_value); +#endif + if (nlist_pointer->n_sect != section_index) { + nlist_pointer->n_sect = section_index; + changed_symtabs++; + } + } + nlist_pointer++; + } + + printf ("Adjusted n_sect for %d symbol table entries.\n", changed_symtabs); + mcopy(-1, outfd, (unsigned long)symtab, symtab_pointer->symoff, symtab_pointer->nsyms * sizeof(struct nlist), + "write updated symbol table"); + + free_section_list(all_sections); + } + + free(symtab); + } + break; +#if defined(NS_TARGET) || !defined(NeXT) + case LC_DYSYMTAB: + dysymtab = (struct dysymtab_command *)load_command; + extreloff = dysymtab->extreloff; + nextrel = dysymtab->nextrel; + + locreloff = dysymtab->locreloff; + nlocrel = dysymtab->nlocrel; + + if (dysymtab->nindirectsyms > 0) { + dysymtab->indirectsymoff += delta; + } + if (nextrel > 0) { + dysymtab->extreloff += delta; + } + + if (nlocrel > 0) { + dysymtab->locreloff += delta; + } + mcopy (-1, outfd, (unsigned long)load_command, header_position, load_command->cmdsize, + "write dysymtab command"); + header_position += load_command->cmdsize; + + break; + + case LC_TWOLEVEL_HINTS: + hinttab = (struct twolevel_hints_command *)load_command; + hinttab->offset += delta; + + mcopy (-1, outfd, (unsigned long)load_command, header_position, load_command->cmdsize, + "write two-level hint command"); + header_position += load_command->cmdsize; + + break; +#endif + default: + { + char *reason, *cmdstr; + + /* Create a string that tells what load command is being left + * alone. */ + switch (load_command->cmd) + { + case LC_UNIXTHREAD: + cmdstr = "LC_UNIXTHREAD"; + break; + case LC_LOAD_DYLIB: + cmdstr = "LC_LOAD_DYLIB"; + break; + case LC_LOAD_DYLINKER: + cmdstr = "LC_LOAD_DYLINKER"; + break; + default: + cmdstr = NULL; + } + if (cmdstr != NULL) + { + asprintf(&reason, "write other load command (%s)", cmdstr); + } + else + { + asprintf(&reason, "write other load command (0x%x)", load_command->cmd); + } + + mcopy (-1, outfd, (unsigned long)load_command, header_position, load_command->cmdsize, + reason); + free(reason); + header_position += load_command->cmdsize; + } + } + } + + mach_header.sizeofcmds = header_position - sizeof(mach_header); + mcopy (-1, outfd, (unsigned long) &mach_header, 0, sizeof(mach_header), "write mach header"); + +#if defined(NS_TARGET) || !defined(NeXT) + if (mach_header.flags & MH_PREBOUND) { + /* Don't mess with prebound executables */ + return; + } + + /* + * Fix up relocation entries in the data segment(s). + */ + if (lseek (infd, locreloff, L_SET) < 0) + fatal_unexec ("cannot seek input file"); + + fixed_reloc_count = 0; + for (i = 0; i < nlocrel; i++) + { + long zeroval = 0; + struct scattered_relocation_info *si; + + if (read (infd, &reloc_info, sizeof(reloc_info)) != sizeof(reloc_info)) + fatal_unexec ("cannot read input file"); + +#if 1 +#ifdef VERBOSE + printf ("%2d: reloc: %lx, start: %lx, end: %lx\n", i, reloc_info.r_address, + new_data_segment.vmaddr, new_data_segment.vmaddr + new_data_segment.filesize); +#endif + if (reloc_info.r_address >= new_data_segment.vmaddr + && reloc_info.r_address < new_data_segment.vmaddr + new_data_segment.filesize) + { + fixed_reloc_count++; + mcopy (-1, outfd, (unsigned long) &zeroval, + new_data_segment.fileoff + reloc_info.r_address - new_data_segment.vmaddr, + 1 << reloc_info.r_length, "fix local relocation entry"); + } +#endif + } + printf ("Fixed %lu/%lu local relocation entries in data segment(s).\n", fixed_reloc_count, nlocrel); + + if (lseek (infd, extreloff, L_SET) < 0) + fatal_unexec ("cannot seek input file"); + + for (i = 0; i < nextrel; i++) + { + long zeroval = 0; + + if (read (infd, &reloc_info, sizeof(reloc_info)) != sizeof(reloc_info)) + fatal_unexec ("cannot read input file"); + +#if 1 +#ifdef VERBOSE + printf ("%2d: reloc: %lx, start: %lx, end: %lx\n", i, reloc_info.r_address, + new_data_segment.vmaddr, new_data_segment.vmaddr + new_data_segment.filesize); +#endif + if (reloc_info.r_address >= new_data_segment.vmaddr + && reloc_info.r_address < new_data_segment.vmaddr + new_data_segment.filesize) + { + fixed_reloc_count++; + mcopy (-1, outfd, (unsigned long) &zeroval, + new_data_segment.fileoff + reloc_info.r_address - new_data_segment.vmaddr, + 1 << reloc_info.r_length, "fix external relocation entry"); + } +#endif + } + + printf ("Fixed %lu/%lu external relocation entries in data segment(s).\n", fixed_reloc_count, nextrel); + +#endif +} + +void unexec (char *outfile, char *infile) +{ + char tmpfile[MAXPATHLEN + 1]; + int infd, outfd; + + if ((infd = open (infile, O_RDONLY, 0)) < 0) + fatal_unexec ("cannot open input file `%s'", infile); + + strcpy (tmpfile, outfile); + strcat (tmpfile, "-temp"); + + if ((outfd = open (tmpfile, O_RDWR|O_TRUNC|O_CREAT, 0755)) < 0) + fatal_unexec ("cannot open temporary output file `%s'", tmpfile); + + unexec_doit (infd, outfd); + + close (infd); + close (outfd); + if (rename (tmpfile, outfile) < 0) + { + unlink (tmpfile); + fatal_unexec ("cannot rename `%s' to `%s'", tmpfile, outfile); + } +} Index: emacs/src/unexnext.c =================================================================== RCS file: /cvs/Darwin/src/live/emacs/emacs/src/unexnext.c,v retrieving revision 1.1.1.5 retrieving revision 1.3 diff -u -r1.1.1.5 -r1.3 Index: emacs/src/m/powermacintosh.h =================================================================== RCS file: powermacintosh.h diff -N powermacintosh.h --- /dev/null Tue Sep 17 14:45:13 2002 +++ emacs/src/m/powermacintosh.h Tue Sep 17 16:29:09 2002 @@ -0,0 +1,45 @@ +/* Apple Power Macintosh machine/system dependent defines + Copyright (C) 1997 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + + +/* The following line tells the configuration script what sort of + operating system this machine is likely to run. + USUAL-OPSYS="darwin" */ + +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word + is the most significant byte. */ + +#define WORDS_BIG_ENDIAN + +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a + * group of arguments and treat it as an array of the arguments. */ + +#define NO_ARG_ARRAY + +/* Use type int rather than a union, to represent Lisp_Object */ +/* This is desirable for most machines. */ + +#define NO_UNION_TYPE + +/* Define addresses, macros, change some setup for dump */ + +#define NO_REMAP + +#define DATA_SEG_BITS 0 Index: emacs/src/s/darwin.h =================================================================== RCS file: darwin.h diff -N darwin.h --- /dev/null Tue Sep 17 14:45:13 2002 +++ emacs/src/s/darwin.h Tue Sep 17 16:29:09 2002 @@ -0,0 +1,104 @@ +/* Configuration file for Darwin OS. + Copyright (C) 1997 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* We give these symbols the numeric values found in to + avoid warnings about redefined macros. */ +#define BSD 199506 +#define BSD4_3 1 +#define BSD4_4 1 + +#include "bsd4-3.h" + +/* SYSTEM_TYPE should indicate the kind of system you are using. + It sets the Lisp variable system-type. We'll need to undo the bsd one. */ + +#undef SYSTEM_TYPE +#define SYSTEM_TYPE "darwin" + +#ifndef DARWIN +#define DARWIN +#endif + +#undef KERNEL_FILE +#define KERNEL_FILE "/mach_kernel" + +#define HAVE_ALLOCA + +#define HAVE_MACH_MACH_H + +#define SYSTEM_MALLOC + +#define WAIT_USE_INT + +#define SOCKLEN_TYPE int + +#define GETPGRP_NO_ARG + +#ifdef HAVE_LIBNCURSES +#define TERMINFO +#define LIBS_TERMCAP -lncurses +#else +#define TERMCAP_FILE "/usr/share/misc/termcap" +#endif + +#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) + +#define A_OUT_H_FILE + +/* Data type of load average, as read out of kmem. */ +#define LOAD_AVE_TYPE long + +#define ABORT_RETURN_TYPE __private_extern__ void + +/* Convert that into an integer that is 100 for a load average of 1.0 */ +#define LOAD_AVE_CVT(x) (int) (((double)(x)) * 100.0 / FSCALE) + +#define UNEXEC unexdyld.o + +/* Definitions for how to compile & link. */ + +/* Link this program just by running cc. */ +#define ORDINARY_LINK + +/* #define C_SWITCH_SYSTEM */ + +/* We don't have a g library, so override the -lg LIBS_DEBUG switch */ +#define LIBS_DEBUG + +/* Adding -lm confuses the dynamic linker, so omit it. */ +#define LIB_MATH + +/* Definitions for how to dump. */ + +#define START_FILES pre-crt0.o + +/* start_of_text isn't actually used, so make it compile without error. */ +#define TEXT_START (0) + +/* This seems to be right for end_of_text, but it may not be used anyway. */ +#define TEXT_END get_etext() + +/* This seems to be right for end_of_data, but it may not be used anyway. */ +#define DATA_END get_edata() + +/* Don't close pty in process.c to make it a controlling terminal. It is + * already the controlling terminal of the subprocess, because we did ioctl + * TIOCSCTTY. */ +#define DONT_REOPEN_PTY Index: emacs/src/s/rhapsody.h =================================================================== RCS file: rhapsody.h diff -N rhapsody.h --- /dev/null Tue Sep 17 14:45:13 2002 +++ emacs/src/s/rhapsody.h Tue Sep 17 16:29:09 2002 @@ -0,0 +1,89 @@ +/* Configuration file for Mac OS X Server. + Copyright (C) 1997 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* We give these symbols the numeric values found in to + avoid warnings about redefined macros. */ +#define BSD 199506 +#define BSD4_3 1 +#define BSD4_4 1 + +#include "bsd4-3.h" + +/* SYSTEM_TYPE should indicate the kind of system you are using. + It sets the Lisp variable system-type. We'll need to undo the bsd one. */ + +#undef SYSTEM_TYPE +#define SYSTEM_TYPE "apple-rhapsody" + +#ifndef RHAPSODY +#define RHAPSODY +#endif + +#define HAVE_ALLOCA + +#define HAVE_MACH_MACH_H + +#define SYSTEM_MALLOC + +#define WAIT_USE_INT + +#define SOCKLEN_TYPE int + +#define GETPGRP_NO_ARG + +#define TERMCAP_FILE "/usr/share/misc/termcap" + +#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) + +#define A_OUT_H_FILE + +/* Data type of load average, as read out of kmem. */ +#define LOAD_AVE_TYPE long + +/* Convert that into an integer that is 100 for a load average of 1.0 */ +#define LOAD_AVE_CVT(x) (int) (((double)(x)) * 100.0 / FSCALE) + +#define UNEXEC unexdyld.o + +/* Definitions for how to compile & link. */ + +/* Link this program just by running cc. */ +#define ORDINARY_LINK + +/* #define C_SWITCH_SYSTEM */ + +/* We don't have a g library, so override the -lg LIBS_DEBUG switch */ +#define LIBS_DEBUG + +/* Adding -lm confuses the dynamic linker, so omit it. */ +#define LIB_MATH + + /* Definitions for how to dump. */ + +#define START_FILES pre-crt0.o + +/* start_of_text isn't actually used, so make it compile without error. */ +#define TEXT_START (0) + +/* This seems to be right for end_of_text, but it may not be used anyway. */ +#define TEXT_END get_etext() + +/* This seems to be right for end_of_data, but it may not be used anyway. */ +#define DATA_END get_edata()