home *** CD-ROM | disk | FTP | other *** search
/ ftp.mayn.de / ftp.mayn.de-pub.zip / ftp.mayn.de-pub / apple / apple_unix / Utilities / xemacs-19.11.aux.diffs < prev    next >
Text File  |  2017-03-06  |  38KB  |  1,375 lines

  1. *** ./lisp/paths.el.orig    Fri Jan 28 11:01:26 1994
  2. --- ./lisp/paths.el    Tue Sep 20 22:42:09 1994
  3. ***************
  4. *** 105,111
  5.     (purecopy
  6.      (cond
  7.       ((memq system-type '(dgux-unix hpux usg-unix-v unisoft-unix rtu
  8. !              irix silicon-graphics-unix))
  9.        "/usr/mail/")
  10.       ((memq system-type '(netbsd))
  11.        "/var/mail/")
  12.  
  13. --- 105,111 -----
  14.     (purecopy
  15.      (cond
  16.       ((memq system-type '(dgux-unix hpux usg-unix-v unisoft-unix rtu
  17. !              irix apple-unix silicon-graphics-unix))
  18.        "/usr/mail/")
  19.       ((memq system-type '(netbsd))
  20.        "/var/mail/")
  21. No differences encountered
  22. *** ./src/m/macII.h.orig    Tue Sep 20 22:42:10 1994
  23. --- ./src/m/macII.h    Tue Sep 20 22:42:10 1994
  24. ***************
  25. *** 0
  26.  
  27. --- 1,128 -----
  28. + /* machine description file template.
  29. +    Copyright (C) 1985, 1986 Free Software Foundation, Inc.
  30. + This file is part of GNU Emacs.
  31. + GNU Emacs is free software; you can redistribute it and/or modify
  32. + it under the terms of the GNU General Public License as published by
  33. + the Free Software Foundation; either version 1, or (at your option)
  34. + any later version.
  35. + GNU Emacs is distributed in the hope that it will be useful,
  36. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  37. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  38. + GNU General Public License for more details.
  39. + You should have received a copy of the GNU General Public License
  40. + along with GNU Emacs; see the file COPYING.  If not, write to
  41. + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  42. + /* The following line tells the configuration script what sort of 
  43. +    operating system this machine is likely to run.
  44. +    USUAL-OPSYS="<name of system .h file here, without the s- or .h>"  */
  45. + /* The following three symbols give information on
  46. +  the size of various data types.  */
  47. + #define SHORTBITS 16        /* Number of bits in a short */
  48. + #define INTBITS 32        /* Number of bits in an int */
  49. + #define LONGBITS 32        /* Number of bits in a long */
  50. + /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  51. +  * group of arguments and treat it as an array of the arguments.  */
  52. + /* #define NO_ARG_ARRAY */
  53. + /* Define WORD_MACHINE if addresses and such have
  54. +  * to be corrected before they can be used as byte counts.  */
  55. + /* #define WORD_MACHINE */
  56. + /* Now define a symbol for the cpu type, if your compiler
  57. +    does not define it automatically:
  58. +    Ones defined so far include vax, m68000, ns16000, pyramid,
  59. +    orion, tahoe, APOLLO and many others */
  60. + #ifndef    m68k
  61. + #define    m68k 1
  62. + #endif
  63. + /* Use type int rather than a union, to represent Lisp_Object */
  64. + /* This is desirable for most machines.  */
  65. + #define NO_UNION_TYPE
  66. + /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  67. +    the 24-bit bit field into an int.  In other words, if bit fields
  68. +    are always unsigned.
  69. +    If you use NO_UNION_TYPE, this flag does not matter.  */
  70. + #define EXPLICIT_SIGN_EXTEND
  71. + /* Data type of load average, as read out of kmem.  */
  72. + #define    LOAD_AVE_TYPE struct lavnum { unsigned short hi; unsigned short lo; }
  73. + /* Convert that into an float that is 100 for a load average of 1.0  */
  74. + #define LDAV_CVT(E)  (E.hi + E.lo / 65535.0)
  75. + /* Define CANNOT_DUMP on machines where unexec does not work.
  76. +    Then the function dump-emacs will not be defined
  77. +    and temacs will do (load "loadup") automatically unless told otherwise.  */
  78. + /* #define CANNOT_DUMP */
  79. + /* Define VIRT_ADDR_VARIES if the virtual addresses of
  80. +    pure and impure space as loaded can vary, and even their
  81. +    relative order cannot be relied on.
  82. +    Otherwise Emacs assumes that text space precedes data space,
  83. +    numerically.  */
  84. + /* #define VIRT_ADDR_VARIES */
  85. + /* Define C_ALLOCA if this machine does not support a true alloca
  86. +    and the one written in C should be used instead.
  87. +    Define HAVE_ALLOCA to say that the system provides a properly
  88. +    working alloca function and it should be used.
  89. +    Define neither one if an assembler-language alloca
  90. +    in the file alloca.s should be used.  */
  91. + #define C_ALLOCA
  92. + /* #define HAVE_ALLOCA */
  93. + /* Define NO_REMAP if memory segmentation makes it not work well
  94. +    to change the boundary between the text section and data section
  95. +    when Emacs is dumped.  If you define this, the preloaded Lisp
  96. +    code will not be sharable; but that's better than failing completely.  */
  97. + #define NO_REMAP
  98. + /* Some really obscure 4.2-based systems (like Sequent DYNIX)
  99. +  * do not support asynchronous I/O (using SIGIO) on sockets,
  100. +  * even though it works fine on tty's.  If you have one of
  101. +  * these systems, define the following, and then use it in
  102. +  * config.h (or elsewhere) to decide when (not) to use SIGIO.
  103. +  *
  104. +  * You'd think this would go in an operating-system description file,
  105. +  * but since it only occurs on some, but not all, BSD systems, the
  106. +  * reasonable place to select for it is in the machine description
  107. +  * file.
  108. +  */
  109. + /* #define NO_SOCK_SIGIO */
  110. + /* After adding support for a new system, modify the large case
  111. +    statement in the `configure' script to recognize reasonable
  112. +    configuration names, and add a description of the system to
  113. +    `etc/MACHINES'.
  114. +    If you've just fixed a problem in an existing configuration file,
  115. +    you should also check `etc/MACHINES' to make sure its descriptions
  116. +    of known problems in that configuration should be updated.  */
  117. *** ./src/s/aux3-02.h.orig    Tue Sep 20 22:42:10 1994
  118. --- ./src/s/aux3-02.h    Tue Sep 20 22:42:10 1994
  119. ***************
  120. *** 0
  121.  
  122. --- 1,249 -----
  123. + /* Definitions file for GNU Emacs running on UniSoft's UniPlus 5.2
  124. +    Copyright (C) 1985, 1986 Free Software Foundation, Inc.
  125. + This file is part of GNU Emacs.
  126. + GNU Emacs is free software; you can redistribute it and/or modify
  127. + it under the terms of the GNU General Public License as published by
  128. + the Free Software Foundation; either version 1, or (at your option)
  129. + any later version.
  130. + GNU Emacs is distributed in the hope that it will be useful,
  131. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  132. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  133. + GNU General Public License for more details.
  134. + You should have received a copy of the GNU General Public License
  135. + along with GNU Emacs; see the file COPYING.  If not, write to
  136. + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  137. + /*
  138. +  *    Define symbols to identify the version of Unix this is.
  139. +  *    Define all the symbols that apply correctly.
  140. +  */
  141. + #define USG                /* System III, System V, etc */
  142. + #define USG5
  143. + #ifndef    AUX
  144. + #define    AUX
  145. + #endif
  146. + /* SYSTEM_TYPE should indicate the kind of system you are using.
  147. +  It sets the Lisp variable system-type.  */
  148. + #define SYSTEM_TYPE "apple-unix"
  149. + /* nomultiplejobs should be defined if your system's shell
  150. +  does not have "job control" (the ability to stop a program,
  151. +  run some other program, then continue the first one).  */
  152. + /* #define NOMULTIPLEJOBS */
  153. + /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
  154. + #define INTERRUPT_INPUT
  155. + /* Letter to use in finding device name of first pty,
  156. +   if system supports pty's.  'p' means it is /dev/ptyp0  */
  157. + #define FIRST_PTY_LETTER 'p'
  158. + /*
  159. +  *    Define HAVE_TERMIO if the system provides sysV-style ioctls
  160. +  *    for terminal control.
  161. +  */
  162. + #define HAVE_TERMIO
  163. + /*
  164. +  *    Define HAVE_TIMEVAL if the system supports the BSD style clock values.
  165. +  *    Look in <sys/time.h> for a timeval structure.
  166. +  */
  167. + #define HAVE_TIMEVAL
  168. +  
  169. + /*
  170. +  *    Define HAVE_SELECT if the system supports the `select' system call.
  171. +  */
  172. + #define HAVE_SELECT
  173. + /*
  174. +  *    Define HAVE_PTYS if the system supports pty devices.
  175. +  */
  176. + #define HAVE_PTYS
  177. + /* Define this macro if system defines a type `union wait'.  */
  178. + #define HAVE_UNION_WAIT
  179. + /*
  180. +  *    Define HAVE_MATH_68881_H if <math.h> includes <math-68881.h>.
  181. +  */
  182. + #define HAVE_MATH_68881_H
  183. + /*    Define HAVE_INVERSE_HYPERBOLIC if you math library contains definitions
  184. +  *    of acosh, asinh, and atanh.  Define HAVE_CBRT and HAVE_RINT if your 
  185. +  *    math library contains cbrt and rint.  Otherwise, they will be
  186. +  *    simulated.
  187. +  */
  188. + /* #define HAVE_INVERSE_HYPERBOLIC */
  189. + /* #define HAVE_CBRT */
  190. + /* #define HAVE_RINT */
  191. + /*    Define FLOAT_CATCH_SIGILL if your floating point library routines
  192. +  *    can generate SIGILL conditions.
  193. +  */
  194. + #define FLOAT_CATCH_SIGILL
  195. + /*    Define FLOAT_CHECK_ERRNO if the float library routines set errno, as
  196. +  *    the ANSI C spec requires.  (This has no effect on machines which use
  197. +  *    the SysV `matherr' mechanism.)
  198. +  */
  199. + /* #define FLOAT_CHECK_ERRNO */
  200. + /*    Define FLOAT_CHECK_DOMAIN if the float library doesn't handle errors by
  201. +  *    either setting errno, or signalling SIGFPE/SIGILL (for example, some
  202. +  *    systems write a message to stderr.)  Otherwise, domain and range
  203. +  *    checking will happen before calling the float routines.  This has no
  204. +  *    effect on machines which use the SysV `matherr' mechanism.
  205. +  */
  206. + #define FLOAT_CHECK_DOMAIN
  207. + /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets.  */
  208. + #define HAVE_SOCKETS
  209. + /*
  210. +  *    Define NEED_REALPATH if the system doesn't have realpath()
  211. +  */
  212. + #define NEED_REALPATH
  213. + /*
  214. +  *    Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
  215. +  *      The 4.2 opendir, etc., library functions.
  216. +  */
  217. + /* #define NONSYSTEM_DIR_LIBRARY */
  218. + /* Define this symbol if your system has the functions bcopy, etc. */
  219. + #define BSTRING
  220. + /* subprocesses should be defined if you want to
  221. +  have code for asynchronous subprocesses
  222. +  (as used in M-x compile and M-x shell).
  223. +  This is generally OS dependent, and not supported
  224. +  under most USG systems.  It is supported under UniPlus
  225. +  System V Release 2. */
  226. + #define subprocesses
  227. + /* If your system uses COFF (Common Object File Format) then define the
  228. +    preprocessor symbol "COFF". */
  229. + #define COFF
  230. + /* define MAIL_USE_FLOCK if the mailer uses flock
  231. +    to interlock access to /usr/spool/mail/$USER.
  232. +    The alternative is that a lock file named
  233. +    /usr/spool/mail/$USER.lock.  */
  234. + #define MAIL_USE_FLOCK
  235. + /* Define CLASH_DETECTION if you want lock files to be written
  236. +    so that Emacs can tell instantly when you try to modify
  237. +    a file that someone else has modified in his Emacs.  */
  238. + #define CLASH_DETECTION
  239. + /* Uniplus 5.2 supports long names in C */
  240. + /* #define SHORTNAMES */
  241. + /* We do NOT use the Berkeley (and usg5.2.2) interface to nlist.  */
  242. + /* #define NLIST_STRUCT */
  243. + /* The file containing the kernel's symbol table is called /unix.  */
  244. + #define KERNEL_FILE "/unix"
  245. + /* The symbol in the kernel where the load average is found
  246. +    is named avenrun.  */
  247. + #define LDAV_SYMBOL "avenrun"
  248. + /* Special hacks needed to make Emacs run on this system.  */
  249. + /*
  250. +  *    Make the sigsetmask function go away.  Don't know what the
  251. +  *    ramifications of this are, but doesn't seem possible to
  252. +  *    emulate it properly anyway at this point.
  253. +  */
  254. + /* #define sigsetmask(mask)    /* Null expansion */
  255. + /* setjmp and longjmp can safely replace _setjmp and _longjmp,
  256. +    but they will run slower.  */
  257. + #define _setjmp setjmp
  258. + #define _longjmp longjmp
  259. + /* On USG systems the system calls are interruptable by signals
  260. +  that the user program has elected to catch.  Thus the system call
  261. +  must be retried in these cases.  To handle this without massive
  262. +  changes in the source code, we remap the standard system call names
  263. +  to names for our own functions in sysdep.c that do the system call
  264. +  with retries. */
  265. + #ifdef notdef        /* not necessary because of set42sig() */
  266. + #define read sys_read 
  267. + #define open sys_open
  268. + #define write sys_write
  269. + #define INTERRUPTIBLE_OPEN
  270. + #define INTERRUPTIBLE_IO
  271. + #endif
  272. + /* Compiler bug bites when default ADDR_CORRECT is used.  */
  273. + #define ADDR_CORRECT(x) (x)
  274. + /* A system-specific loader switch is needed.  */
  275. + /* #define LD_SWITCH_SYSTEM -N -L/lib/libg /usr/lib/unshared.ld */
  276. + #define    NBPC 4096
  277. + #define LIB_STANDARD /lib/crtn.o /usr/lib/shlib.ld /lib/libc.a
  278. + #define START_FILES pre-crt0.o /lib/crt1.o /lib/crt2.o
  279. + #define    memmove(d, s, l) memcpy(d, s, l)
  280. + #ifdef    __GNUC__
  281. + #define    C_SWITCH_SYSTEM -pipe -DmacII -DSYSV -DX_WCHAR -DX_LOCALE -D__STDC__=2
  282. + #endif
  283. + /* Define this if system V IPC is available.  */
  284. + #define HAVE_SYSVIPC
  285. + /* No <sys/sioctl.h> */
  286. + #define NO_SIOCTL_H
  287. + /* A/UX 3.0 has sound support. */
  288. + #define HAVE_NATIVE_SOUND
  289. + #define HAVE_WAIT_HEADER
  290. + #define USG_SYS_TIME
  291. + #define HAVE_TZSETWALL
  292. + #define USE_UTIME
  293. + #define USG_SHARED_LIBRARIES
  294. + #define C_OPTIMIZE_SWITCH -O2
  295. + #define C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
  296. *** ./src/Makefile.in.in.orig    Mon Sep 12 17:58:56 1994
  297. --- ./src/Makefile.in.in    Tue Sep 20 23:15:48 1994
  298. ***************
  299. *** 255,260
  300.   #    define SOUND_LIBS    -lAlib    
  301.   #    define SOUND_OBJS    hpplay.o
  302.   #   else /* ! hp9000s800 */
  303.     ERROR!!  HAVE_NATIVE_SOUND can only be defined on SparcStation, SGI, or hp9000s800
  304.   #   endif /* ! hp9000s800 */
  305.   #  endif /* ! sgi */
  306.  
  307. --- 255,265 -----
  308.   #    define SOUND_LIBS    -lAlib    
  309.   #    define SOUND_OBJS    hpplay.o
  310.   #   else /* ! hp9000s800 */
  311. + #    ifdef macII
  312. + #       define SOUND_CFLAGS
  313. + #       define SOUND_LIBS
  314. + #       define SOUND_OBJS    auxplay.o
  315. + #   else /* ! macII */
  316.     ERROR!!  HAVE_NATIVE_SOUND can only be defined on SparcStation, SGI, or hp9000s800
  317.   #    endif /* ! macII */
  318.   #   endif /* ! hp9000s800 */
  319. ***************
  320. *** 256,261
  321.   #    define SOUND_OBJS    hpplay.o
  322.   #   else /* ! hp9000s800 */
  323.     ERROR!!  HAVE_NATIVE_SOUND can only be defined on SparcStation, SGI, or hp9000s800
  324.   #   endif /* ! hp9000s800 */
  325.   #  endif /* ! sgi */
  326.   # endif /* ! SPARC */
  327.  
  328. --- 261,267 -----
  329.   #       define SOUND_OBJS    auxplay.o
  330.   #   else /* ! macII */
  331.     ERROR!!  HAVE_NATIVE_SOUND can only be defined on SparcStation, SGI, or hp9000s800
  332. + #    endif /* ! macII */
  333.   #   endif /* ! hp9000s800 */
  334.   #  endif /* ! sgi */
  335.   # endif /* ! SPARC */
  336. ***************
  337. *** 376,382
  338.   #ifdef THIS_IS_X11R6
  339.   LIBX=  $(LIBX11_LIBS) $(XMU_LIB) -lXt -lSM -lICE -lXext -lX11 LIBX11_MACHINE LIBX11_SYSTEM
  340.   #else
  341. ! LIBX=  $(LIBX11_LIBS) $(XMU_LIB) -lXt -lXext -lX11 LIBX11_MACHINE LIBX11_SYSTEM
  342.   #endif
  343.   
  344.   #else
  345.  
  346. --- 382,388 -----
  347.   #ifdef THIS_IS_X11R6
  348.   LIBX=  $(LIBX11_LIBS) $(XMU_LIB) -lXt -lSM -lICE -lXext -lX11 LIBX11_MACHINE LIBX11_SYSTEM
  349.   #else
  350. ! LIBX=  $(LIBX11_LIBS) $(XMU_LIB) -lXt -lXext -lX11 LIBX11_MACHINE LIBX11_SYSTEM -lXdum
  351.   #endif
  352.   
  353.   #else
  354. ***************
  355. *** 1025,1030
  356.   hpplay.o:
  357.       $(CC) -c -Demacs $(ALL_CFLAGS) SOUND_CFLAGS ${srcdir}/$(@:.o=.c)
  358.   # endif /* hp9000s800 */
  359.   #endif /* HAVE_NATIVE_SOUND */
  360.   
  361.   #ifdef HAVE_NAS_SOUND
  362.  
  363. --- 1031,1040 -----
  364.   hpplay.o:
  365.       $(CC) -c -Demacs $(ALL_CFLAGS) SOUND_CFLAGS ${srcdir}/$(@:.o=.c)
  366.   # endif /* hp9000s800 */
  367. + # ifdef macII
  368. + auxplay.o:
  369. +     $(CC) -c -Demacs $(ALL_CFLAGS) SOUND_CFLAGS ${srcdir}/$(@:.o=.c)
  370. + # endif /* macII */
  371.   #endif /* HAVE_NATIVE_SOUND */
  372.   
  373.   #ifdef HAVE_NAS_SOUND
  374. ***************
  375. *** 1527,1532
  376.   strcpy.o: config.h
  377.   sunOS-fix.o: config.h
  378.   sunplay.o: config.h
  379.   symbols.o: config.h
  380.   symbols.o: buffer.h
  381.   symbols.o: bufslots.h
  382.  
  383. --- 1537,1543 -----
  384.   strcpy.o: config.h
  385.   sunOS-fix.o: config.h
  386.   sunplay.o: config.h
  387. + auxplay.o: config.h
  388.   symbols.o: config.h
  389.   symbols.o: buffer.h
  390.   symbols.o: bufslots.h
  391. *** ./src/auxplay.c.orig    Tue Sep 20 22:42:12 1994
  392. --- ./src/auxplay.c    Tue Sep 20 22:42:12 1994
  393. ***************
  394. *** 0
  395.  
  396. --- 1,422 -----
  397. + /* auxplay.c - play a sound file on the speaker
  398. +  **
  399. +  ** Copyright (C) 1989 by Jef Poskanzer.
  400. +  **
  401. +  ** Modified 24-May-91 by Jamie Zawinski (for Lucid Emacs.)
  402. +  ** Modified 17-Dec-92 by Jamie Zawinski (largely rewritten for SunOS 4.1.3.)
  403. +  ** Severely hacked 7-Mar-93 by Thomas Eberhardt (for Apple's A/UX 3.0.)
  404. +  **
  405. +  ** Permission to use, copy, modify, and distribute this software and its
  406. +  ** documentation for any purpose and without fee is hereby granted, provided
  407. +  ** that the above copyright notice appear in all copies and that both that
  408. +  ** copyright notice and this permission notice appear in supporting
  409. +  ** documentation.  This software is provided "as is" without express or
  410. +  ** implied warranty.
  411. +  */
  412. + #if __STDC__
  413. + #include <stdlib.h>
  414. + #include <unistd.h>
  415. + #endif
  416. + #include <stdio.h>
  417. + #include <string.h>
  418. + #include <errno.h>
  419. + #include <fcntl.h>
  420. + #include <signal.h>
  421. + #include <sys/types.h>
  422. + #include <sys/ioctl.h>
  423. + #include <sys/file.h>
  424. + #include <sys/time.h>
  425. + #include <netinet/in.h>
  426. + #define pascal
  427. + #include <sys/sm_aux.h>
  428. + #ifndef min
  429. + #define min(a,b) ((a) < (b) ? (a) : (b))
  430. + #endif
  431. + typedef struct
  432. + {
  433. +   unsigned magic;
  434. +   unsigned hdr_size;
  435. +   unsigned data_size;
  436. +   unsigned encoding;
  437. +   unsigned sample_rate;
  438. +   unsigned channels;
  439. + } Audio_filehdr;
  440. + #define AUDIO_FILE_MAGIC        0x2e736e64
  441. + #define AUDIO_FILE_ENCODING_MULAW_8     1
  442. + /* Table to convert mu-law samples to linear */
  443. + unsigned char ulaw_to_mac[256] =
  444. + {
  445. +   0x03, 0x07, 0x0b, 0x0f, 0x13, 0x17, 0x1b, 0x1f,
  446. +   0x23, 0x27, 0x2b, 0x2f, 0x33, 0x37, 0x3b, 0x3f,
  447. +   0x42, 0x44, 0x46, 0x48, 0x4a, 0x4c, 0x4e, 0x50,
  448. +   0x52, 0x54, 0x56, 0x58, 0x5a, 0x5c, 0x5e, 0x60,
  449. +   0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
  450. +   0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70,
  451. +   0x71, 0x71, 0x72, 0x72, 0x73, 0x73, 0x74, 0x74,
  452. +   0x75, 0x75, 0x76, 0x76, 0x77, 0x77, 0x78, 0x78,
  453. +   0x79, 0x79, 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7a,
  454. +   0x7b, 0x7b, 0x7b, 0x7b, 0x7c, 0x7c, 0x7c, 0x7c,
  455. +   0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d,
  456. +   0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e,
  457. +   0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f,
  458. +   0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f,
  459. +   0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
  460. +   0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
  461. +   0xfd, 0xf9, 0xf5, 0xf1, 0xed, 0xe9, 0xe5, 0xe1,
  462. +   0xdd, 0xd9, 0xd5, 0xd1, 0xcd, 0xc9, 0xc5, 0xc1,
  463. +   0xbe, 0xbc, 0xba, 0xb8, 0xb6, 0xb4, 0xb2, 0xb0,
  464. +   0xae, 0xac, 0xaa, 0xa8, 0xa6, 0xa4, 0xa2, 0xa0,
  465. +   0x9f, 0x9e, 0x9d, 0x9c, 0x9b, 0x9a, 0x99, 0x98,
  466. +   0x97, 0x96, 0x95, 0x94, 0x93, 0x92, 0x91, 0x90,
  467. +   0x8f, 0x8f, 0x8e, 0x8e, 0x8d, 0x8d, 0x8c, 0x8c,
  468. +   0x8b, 0x8b, 0x8a, 0x8a, 0x89, 0x89, 0x88, 0x88,
  469. +   0x87, 0x87, 0x87, 0x87, 0x86, 0x86, 0x86, 0x86,
  470. +   0x85, 0x85, 0x85, 0x85, 0x84, 0x84, 0x84, 0x84,
  471. +   0x83, 0x83, 0x83, 0x83, 0x83, 0x83, 0x83, 0x83,
  472. +   0x82, 0x82, 0x82, 0x82, 0x82, 0x82, 0x82, 0x82,
  473. +   0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
  474. +   0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
  475. +   0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
  476. +   0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80
  477. + };
  478. + #ifdef emacs
  479. + extern char *sys_errlist[];
  480. + extern int errno, sys_nerr;
  481. + extern void message ();
  482. + # define perror(string) \
  483. +     message("audio: %s, %s ", string, \
  484. +         (errno < sys_nerr) ? sys_errlist[errno] : \
  485. +         "unknown")
  486. + # define warn(str) message ("audio: %s ", (str))
  487. + #else /* !emacs */
  488. + # define warn(str) fprintf (stderr, "%s\n", (str))
  489. + #endif /* emacs */
  490. + static void (*sighup_handler) ();
  491. + static void (*sigint_handler) ();
  492. + static void sighandler ();
  493. + static int audio_fd = -1;
  494. + static int file_fd = -1;
  495. + static void
  496. + audio_flush_play ()
  497. + {
  498. +   int fd;
  499. +   fd = open ("/dev/snd/reset", O_WRONLY);
  500. +   if (fd < 0)
  501. +     return;
  502. +   write (fd, "r", 1);
  503. +   close (fd);
  504. + }
  505. + static int
  506. + audio_write (data, length)
  507. +      unsigned char *data;
  508. +      int length;
  509. + {
  510. +   int rtn, raw_length;
  511. +   short i;
  512. +   unsigned char *limit, *p;
  513. +   unsigned char raw_buf[SND_CHUNK];
  514. +   limit = data + length;
  515. +   while (data < limit)
  516. +     {
  517. +       raw_length = min (limit - data, sizeof (raw_buf));
  518. +       /* Use Duff's device to convert mu-law samples to linear */
  519. +       p = raw_buf;
  520. +       i = ((raw_length + 15) >> 4) - 1;
  521. +       switch (raw_length & 15)
  522. +     {
  523. +     case  0: do { *p++ = ulaw_to_mac[*data++];
  524. +     case 15:      *p++ = ulaw_to_mac[*data++];
  525. +     case 14:      *p++ = ulaw_to_mac[*data++];
  526. +     case 13:      *p++ = ulaw_to_mac[*data++];
  527. +     case 12:      *p++ = ulaw_to_mac[*data++];
  528. +     case 11:      *p++ = ulaw_to_mac[*data++];
  529. +     case 10:      *p++ = ulaw_to_mac[*data++];
  530. +     case  9:      *p++ = ulaw_to_mac[*data++];
  531. +     case  8:      *p++ = ulaw_to_mac[*data++];
  532. +     case  7:      *p++ = ulaw_to_mac[*data++];
  533. +     case  6:      *p++ = ulaw_to_mac[*data++];
  534. +     case  5:      *p++ = ulaw_to_mac[*data++];
  535. +     case  4:      *p++ = ulaw_to_mac[*data++];
  536. +     case  3:      *p++ = ulaw_to_mac[*data++];
  537. +     case  2:      *p++ = ulaw_to_mac[*data++];
  538. +     case  1:      *p++ = ulaw_to_mac[*data++];
  539. +          } while (i--);
  540. +     }
  541. +       rtn = write (audio_fd, raw_buf, raw_length);
  542. +       if (rtn != raw_length)
  543. +     {
  544. +       if (rtn <= 0)
  545. +         return rtn;
  546. +       else
  547. +         return rtn + (length - (limit - data));
  548. +     }
  549. +     }
  550. +   return length;
  551. + }
  552. + static int
  553. + init_device (volume, data, fd, header_length)
  554. +      int volume;
  555. +      unsigned char *data;
  556. +      int fd;
  557. +      int *header_length;
  558. + {
  559. +   Audio_filehdr file_hdr;
  560. +   struct rawSndCtl raw_snd_ctl;
  561. +   if (data && fd) abort (); /* one or the other */
  562. +   if (data)
  563. +     {
  564. +       memcpy (&file_hdr, data, sizeof (file_hdr));
  565. +       *header_length = ntohl (file_hdr.hdr_size);
  566. +       if (ntohl (file_hdr.magic) != AUDIO_FILE_MAGIC)
  567. +     {
  568. +       perror ("invalid audio data");
  569. +       return 1;
  570. +     }
  571. +     }
  572. +   else
  573. +     {
  574. +       if (read (fd, &file_hdr, sizeof (file_hdr)) != sizeof (file_hdr)
  575. +       || ntohl (file_hdr.magic) != AUDIO_FILE_MAGIC
  576. +       || lseek (fd, file_hdr.hdr_size, SEEK_SET) < 0)
  577. +     {
  578. +       perror ("invalid audio file");
  579. +       return 1;
  580. +     }
  581. +     }
  582. +   if (ntohl (file_hdr.encoding) != AUDIO_FILE_ENCODING_MULAW_8)
  583. +     {
  584. +       perror ("unsupported audio encoding");
  585. +       return 1;
  586. +     }
  587. +   if (volume < 0 || volume > 100)
  588. +     {
  589. +       char buf [255];
  590. +       sprintf (buf, "volume must be between 0 and 100 (not %d)", volume);
  591. +       warn (buf);
  592. +       return 1;
  593. +     }
  594. +   audio_flush_play ();
  595. +   audio_fd = open (DEV_RAW, O_WRONLY);
  596. +   if (audio_fd < 0)
  597. +     {
  598. +       perror ("open /dev/snd/raw");
  599. +       return 1;
  600. +     }
  601. +   {
  602. +     /* set the volume; scale it to 0 - 7 */
  603. +     char V = ((volume * 8) / 100);
  604. +     if (V == 8)
  605. +       V = 7;
  606. +     ioctl (audio_fd, SND_VOL, &V);
  607. +   }
  608. +   raw_snd_ctl.sampleRate =
  609. +     (int) (ntohl (file_hdr.sample_rate) * 65536.0 / 22254.54545);
  610. +   raw_snd_ctl.flags = 0;
  611. +   ioctl (audio_fd, SND_RAW_CTL, &raw_snd_ctl);
  612. +   close (audio_fd);
  613. +   audio_fd = open (DEV_RAW, O_WRONLY);
  614. +   if (audio_fd < 0)
  615. +     {
  616. +       perror ("open /dev/snd/raw");
  617. +       return 1;
  618. +     }
  619. +   return 0;
  620. + }
  621. + void
  622. + play_sound_file (sound_file, volume)
  623. +     char *sound_file;
  624. +     int volume;
  625. + {
  626. +   int rrtn, wrtn;
  627. +   unsigned char buf[SND_CHUNK];
  628. +   
  629. +   sighup_handler = signal (SIGHUP, sighandler);
  630. +   sigint_handler = signal (SIGINT, sighandler);
  631. +   
  632. +   file_fd = open (sound_file, O_RDONLY);
  633. +   if (file_fd < 0)
  634. +     {
  635. +       perror (sound_file);
  636. +       goto END_OF_PLAY;
  637. +     }
  638. +   if (init_device (volume, 0, file_fd, 0))
  639. +     goto END_OF_PLAY;
  640. +     
  641. +   while (1)
  642. +     {
  643. +       rrtn = read (file_fd, (char *) buf, sizeof (buf));
  644. +       if (rrtn < 0)
  645. +     {
  646. +       perror ("read");
  647. +       goto END_OF_PLAY;
  648. +     }
  649. +       if (rrtn == 0)
  650. +     break;
  651. +     
  652. +       while (1)
  653. +     {
  654. +       wrtn = audio_write (buf, rrtn);
  655. +       if (wrtn < 0)
  656. +         {
  657. +           perror ("write");
  658. +           goto END_OF_PLAY;
  659. +         }
  660. +       if (wrtn != 0)
  661. +         break;
  662. +       goto END_OF_PLAY;
  663. +     }
  664. +       if (wrtn != rrtn)
  665. +     {
  666. +       char buf [255];
  667. +       sprintf (buf, "play: rrtn = %d, wrtn = %d", rrtn, wrtn);
  668. +       warn (buf);
  669. +       goto END_OF_PLAY;
  670. +     }
  671. +     }
  672. +   
  673. +  END_OF_PLAY:
  674. +   if (file_fd > 0)
  675. +     {
  676. +       close (file_fd);
  677. +       file_fd = -1;
  678. +     }
  679. +   if (audio_fd > 0)
  680. +     {
  681. +       close (audio_fd);
  682. +       audio_fd = -1;
  683. +     }
  684. +   (void) signal (SIGHUP, sighup_handler);
  685. +   (void) signal (SIGINT, sigint_handler);
  686. + }
  687. + void
  688. + play_sound_data (data, length, volume)
  689. +      unsigned char *data;
  690. +      int length, volume;
  691. + {
  692. +   int wrtn, start = 0;
  693. +   int hlen;
  694. +   if (length == 0) return;
  695. +   /* this is just to get a better error message */
  696. +   if (strncmp (".snd\0", (char *) data, 4))
  697. +     {
  698. +       warn ("Not valid audio data (bad magic number)");
  699. +       goto END_OF_PLAY;
  700. +     }
  701. +   if (length <= sizeof (Audio_filehdr))
  702. +     {
  703. +       warn ("Not valid audio data (too short)");
  704. +       goto END_OF_PLAY;
  705. +     }
  706. +   sighup_handler = signal (SIGHUP, sighandler);
  707. +   sigint_handler = signal (SIGINT, sighandler);
  708. +     
  709. +   if (init_device (volume, data, 0, &hlen))
  710. +     goto END_OF_PLAY;
  711. +       
  712. +   data += hlen;
  713. +   length -= hlen;
  714. +   if (length <= 1)
  715. +     goto END_OF_PLAY;
  716. +     
  717. +   while (1)
  718. +     {
  719. +       wrtn = audio_write (data+start, length-start);
  720. +       if (wrtn < 0)
  721. +     {
  722. +       perror ("write");
  723. +       goto END_OF_PLAY;
  724. +     }
  725. +       if (wrtn != 0)
  726. +     {
  727. +       start += wrtn;
  728. +       break;
  729. +     }
  730. +       goto END_OF_PLAY;
  731. +     }
  732. +   if (wrtn != length)
  733. +     {
  734. +       char buf [255];
  735. +       sprintf (buf, "play: rrtn = %d, wrtn = %d", length, wrtn);
  736. +       warn (buf);
  737. +       goto END_OF_PLAY;
  738. +     }
  739. +   
  740. +  END_OF_PLAY:
  741. +   if (audio_fd > 0)
  742. +     {
  743. +       close (audio_fd);
  744. +       audio_fd = -1;
  745. +     }
  746. +   (void) signal (SIGHUP, sighup_handler);
  747. +   (void) signal (SIGINT, sigint_handler);
  748. + }
  749. + static void
  750. + sighandler (sig, code, scp, addr)
  751. +      int sig, code;
  752. +      struct sigcontext *scp;
  753. +      char *addr;
  754. + {
  755. +   if (file_fd > 0)
  756. +     {
  757. +       close (file_fd);
  758. +       file_fd = -1;
  759. +     }
  760. +   if (audio_fd > 0)
  761. +     {
  762. +       close (audio_fd);
  763. +       audio_fd = -1;
  764. +     }
  765. +   audio_flush_play ();
  766. +   if (sig == SIGHUP && sighup_handler)
  767. +     sighup_handler (sig, code, scp, addr);
  768. +   else if (sig == SIGINT && sigint_handler)
  769. +     sigint_handler (sig, code, scp, addr);
  770. +   else
  771. +     exit (1);
  772. + }
  773. *** ./src/emacs.c.orig    Mon Jul 18 17:19:59 1994
  774. --- ./src/emacs.c    Tue Sep 20 22:42:13 1994
  775. ***************
  776. *** 329,334
  777.   #ifdef FREE_CHECKING
  778.     init_free_hook ();
  779.   #endif
  780.   
  781.     /* Map in shared memory, if we are using that.  */
  782.   #ifdef HAVE_SHM
  783.  
  784. --- 329,337 -----
  785.   #ifdef FREE_CHECKING
  786.     init_free_hook ();
  787.   #endif
  788. + #ifdef AUX
  789. +   set42sig();
  790. + #endif
  791.   
  792.     /* Map in shared memory, if we are using that.  */
  793.   #ifdef HAVE_SHM
  794. *** ./src/fns.c.orig    Thu Sep  8 16:26:06 1994
  795. --- ./src/fns.c    Tue Sep 20 22:42:13 1994
  796. ***************
  797. *** 65,72
  798.   #ifndef    random
  799.   extern long random ();
  800.   #endif
  801. ! #ifndef srandom
  802. ! extern void srandom ();
  803.   #endif
  804.   #endif
  805.   
  806.  
  807. --- 65,72 -----
  808.   #ifndef    random
  809.   extern long random ();
  810.   #endif
  811. ! #ifndef srand
  812. ! extern void srand ();
  813.   #endif
  814.   #endif
  815.   
  816. ***************
  817. *** 83,89
  818.     int val;
  819.   
  820.     if (EQ (limit, Qt))
  821. !     srandom (getpid () + time (0));
  822.     if (FIXNUMP (limit) && XINT (limit) > 0)
  823.       {
  824.         /* Try to take our random number from the higher bits of VAL,
  825.  
  826. --- 83,89 -----
  827.     int val;
  828.   
  829.     if (EQ (limit, Qt))
  830. !     srand (getpid () + time (0));
  831.     if (FIXNUMP (limit) && XINT (limit) > 0)
  832.       {
  833.         /* Try to take our random number from the higher bits of VAL,
  834. *** ./src/process.c.orig    Mon Sep  5 11:46:55 1994
  835. --- ./src/process.c    Tue Sep 20 22:42:15 1994
  836. ***************
  837. *** 1204,1210
  838.   
  839.     if (inchannel >= 0)
  840.       {
  841. ! #ifndef USG
  842.         /* On USG systems it does not work to open the pty's tty here
  843.              and then close and reopen it in the child.  */
  844.   #ifdef O_NOCTTY
  845.  
  846. --- 1204,1210 -----
  847.   
  848.     if (inchannel >= 0)
  849.       {
  850. ! #if !defined(USG) || defined(AUX)
  851.         /* On USG systems it does not work to open the pty's tty here
  852.              and then close and reopen it in the child.  */
  853.   #ifdef O_NOCTTY
  854. ***************
  855. *** 1284,1290
  856.   #ifdef BSD4_1
  857.     sighold (SIGCHLD);
  858.   #else /* not BSD4_1 */
  859. ! #if defined (BSD) || defined (UNIPLUS) || defined (HPUX)
  860.     sigsetmask (sigmask (SIGCHLD));
  861.   #else /* ordinary USG */
  862.   #if 0
  863.  
  864. --- 1284,1290 -----
  865.   #ifdef BSD4_1
  866.     sighold (SIGCHLD);
  867.   #else /* not BSD4_1 */
  868. ! #if defined (BSD) || defined (UNIPLUS) || defined (HPUX) || defined(AUX)
  869.     sigsetmask (sigmask (SIGCHLD));
  870.   #else /* ordinary USG */
  871.   #if 0
  872. ***************
  873. *** 1449,1455
  874.   #ifdef BSD4_1
  875.       sigrelse (SIGCHLD);
  876.   #else /* not BSD4_1 */
  877. ! #if defined (BSD) || defined (UNIPLUS) || defined (HPUX)
  878.       sigsetmask (SIGEMPTYMASK);
  879.   #else /* ordinary USG */
  880.   #if 0
  881.  
  882. --- 1449,1455 -----
  883.   #ifdef BSD4_1
  884.       sigrelse (SIGCHLD);
  885.   #else /* not BSD4_1 */
  886. ! #if defined (BSD) || defined (UNIPLUS) || defined (HPUX) || defined(AUX)
  887.       sigsetmask (SIGEMPTYMASK);
  888.   #else /* ordinary USG */
  889.   #if 0
  890. ***************
  891. *** 1510,1516
  892.   #ifdef BSD4_1
  893.     sigrelse (SIGCHLD);
  894.   #else /* not BSD4_1 */
  895. ! #if defined (BSD) || defined (UNIPLUS) || defined (HPUX)
  896.     sigsetmask (SIGEMPTYMASK);
  897.   #else
  898.   #ifdef POSIX_SIGNALS    /* Lemacs change for Linux by Raymond L. Toy
  899.  
  900. --- 1510,1516 -----
  901.   #ifdef BSD4_1
  902.     sigrelse (SIGCHLD);
  903.   #else /* not BSD4_1 */
  904. ! #if defined (BSD) || defined (UNIPLUS) || defined (HPUX) || defined(AUX)
  905.     sigsetmask (SIGEMPTYMASK);
  906.   #else
  907.   #ifdef POSIX_SIGNALS    /* Lemacs change for Linux by Raymond L. Toy
  908. *** ./src/sysdep.c.orig    Thu Sep  1 11:39:59 1994
  909. --- ./src/sysdep.c    Tue Sep 20 22:42:17 1994
  910. ***************
  911. *** 87,92
  912.   #define    MAXIOSIZE ( 32 * PAGESIZE )    /* Don't I/O more than 32 blocks at a time */
  913.   #endif /* VMS */
  914.   
  915.   #ifndef BSD4_1
  916.   #ifdef BSD /* this is done this way to avoid defined (BSD) || defined (USG)
  917.             because the vms compiler doesn't grok `defined' */
  918.  
  919. --- 87,98 -----
  920.   #define    MAXIOSIZE ( 32 * PAGESIZE )    /* Don't I/O more than 32 blocks at a time */
  921.   #endif /* VMS */
  922.   
  923. + /* Added so sysdep.c can find FASYNC */
  924. + #ifdef AUX
  925. + #include <sys/file.h>
  926. + #endif
  927.   #ifndef BSD4_1
  928.   #ifdef BSD /* this is done this way to avoid defined (BSD) || defined (USG)
  929.             because the vms compiler doesn't grok `defined' */
  930. ***************
  931. *** 868,874
  932.   }
  933.   
  934.   #else /* no FASYNC */
  935. ! #if defined(LINUX) || defined(STRIDE) || defined(HPUX)    /* Stride doesn't have FASYNC - use FIOASYNC */
  936.   /* Linux added here by Raymond L. Toy <toy@alydar.crd.ge.com> for Lemacs. */
  937.   
  938.   void
  939.  
  940. --- 874,881 -----
  941.   }
  942.   
  943.   #else /* no FASYNC */
  944. ! #if defined(LINUX) || defined(STRIDE) || defined(HPUX) || defined(macII)
  945. ! /* Stride doesn't have FASYNC - use FIOASYNC */
  946.   /* Linux added here by Raymond L. Toy <toy@alydar.crd.ge.com> for Lemacs. */
  947.   
  948.   void
  949. ***************
  950. *** 1424,1431
  951.   #ifdef F_GETOWN        /* F_SETFL does not imply existence of F_GETOWN */
  952.         if (interrupt_input)
  953.       {
  954. !       old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0);
  955. !       fcntl (input_fd, F_SETOWN, getpid ());
  956.         init_sigio ();
  957.       }
  958.   #endif /* F_GETOWN */
  959.  
  960. --- 1431,1443 -----
  961.   #ifdef F_GETOWN        /* F_SETFL does not imply existence of F_GETOWN */
  962.         if (interrupt_input)
  963.       {
  964. !       old_fcntl_owner = fcntl (0, F_GETOWN, 0);
  965. ! #ifdef AUX 
  966. !     if (inhibit_window_system > 0) /* if not running windows we need to do this */ 
  967. !       fcntl (0, F_SETOWN, getpid ());
  968. ! #else 
  969. !       fcntl (0, F_SETOWN, getpid ());
  970. ! #endif 
  971.         init_sigio ();
  972.       }
  973.   #endif /* F_GETOWN */
  974. ***************
  975. *** 3160,3165
  976.       DEFER_GETTEXT ("user defined signal 2"),        /* 17 SIGUSR2 */
  977.       DEFER_GETTEXT ("death of a child"),            /* 18 SIGCLD */
  978.       DEFER_GETTEXT ("power-fail restart"),        /* 19 SIGPWR */
  979.   #ifdef sun
  980.       DEFER_GETTEXT ("window size change"),        /* 20 SIGWINCH */
  981.       DEFER_GETTEXT ("urgent socket condition"),        /* 21 SIGURG */
  982.  
  983. --- 3172,3191 -----
  984.       DEFER_GETTEXT ("user defined signal 2"),        /* 17 SIGUSR2 */
  985.       DEFER_GETTEXT ("death of a child"),            /* 18 SIGCLD */
  986.       DEFER_GETTEXT ("power-fail restart"),        /* 19 SIGPWR */
  987. + #ifdef AUX
  988. +     DEFER_GETTEXT ("stop signal from tty"),        /* 20 SIGTSTP */
  989. +     DEFER_GETTEXT ("input necessary"),            /* 21 SIGTTIN */
  990. +     DEFER_GETTEXT ("output necessary"),            /* 22 SIGTTOU */
  991. +     DEFER_GETTEXT ("i/o possible"),            /* 23 SIGIO */
  992. +     DEFER_GETTEXT ("exceeded CPU time limit"),        /* 24 SIGXCPU */
  993. +     DEFER_GETTEXT ("exceeded file size limit"),        /* 25 SIGXFSZ */
  994. +     DEFER_GETTEXT ("virtual time alarm"),        /* 26 SIGVTALRM */
  995. +     DEFER_GETTEXT ("profiling time alarm"),        /* 27 SIGPROF */
  996. +     DEFER_GETTEXT ("window size changes"),        /* 28 SIGWINCH */
  997. +     DEFER_GETTEXT ("continue a stopped process"),    /* 29 SIGCONT */
  998. +     DEFER_GETTEXT ("urgent condition on IO channel"),    /* 30 SIGURG */
  999. +     DEFER_GETTEXT ("input/output possible signal"),    /* 31 SIGIO */
  1000. + #endif
  1001.   #ifdef sun
  1002.       DEFER_GETTEXT ("window size change"),        /* 20 SIGWINCH */
  1003.       DEFER_GETTEXT ("urgent socket condition"),        /* 21 SIGURG */
  1004. *** ./src/sysdep.h.orig    Tue May 17 11:16:03 1994
  1005. --- ./src/sysdep.h    Tue Sep 20 22:42:17 1994
  1006. ***************
  1007. *** 142,147
  1008.   extern int setpriority (int which, int who, int prio);
  1009.   
  1010.   #ifndef HAVE_VFORK
  1011.   extern pid_t vfork (void);
  1012.   #endif
  1013.   
  1014.  
  1015. --- 142,148 -----
  1016.   extern int setpriority (int which, int who, int prio);
  1017.   
  1018.   #ifndef HAVE_VFORK
  1019. + #include <sys/types.h>
  1020.   extern pid_t vfork (void);
  1021.   #endif
  1022.   
  1023. *** ./src/unexec.c.orig    Wed Jul  6 08:50:09 1994
  1024. --- ./src/unexec.c    Tue Sep 20 22:42:18 1994
  1025. ***************
  1026. *** 1128,1134
  1027.   {
  1028.     register int nsyms;
  1029.     register int new;
  1030. ! #if defined (amdahl_uts) || defined (pfa)
  1031.     SYMENT symentry;
  1032.     AUXENT auxentry;
  1033.   #else
  1034.  
  1035. --- 1128,1134 -----
  1036.   {
  1037.     register int nsyms;
  1038.     register int new;
  1039. ! #if defined (amdahl_uts) || defined (pfa) || defined(AUX)
  1040.     SYMENT symentry;
  1041.     AUXENT auxentry;
  1042.   #else
  1043. *** ./README.AUX.orig    Tue Sep 20 22:42:18 1994
  1044. --- ./README.AUX    Tue Sep 20 22:42:18 1994
  1045. ***************
  1046. *** 0
  1047.  
  1048. --- 1,22 -----
  1049. + This is the patch for xemacs-19.11 to work under A/UX.  It based on the
  1050. + previous patch of AUX/lemacs-19.6 by Thomas Eberhardt and AUX/emacs-19.22 
  1051. + on jagubox.
  1052. + After apply the patch do
  1053. + ./configure m68k-macII-aux \
  1054. +   --cflags='-O2 -pipe -fpcc-struct-return'\
  1055. +   --use-sound\
  1056. +   --with-motif\
  1057. +   --with-xpm
  1058. + The last two options assume that you have motif and xpm.
  1059. + Follow the INSTALL document for further details.
  1060. + Check out features on
  1061. + w3-mode     (you can get inline gif also but it is slow)
  1062. + dir & info  (a lot easier than emacs)
  1063. + Options & fonts menus and lots more.
  1064. + Nisai.
  1065. + nisai@eardc.swt.edu
  1066. *** ./config.sub.orig    Thu Aug 25 20:02:47 1994
  1067. --- ./config.sub    Tue Sep 20 23:00:15 1994
  1068. ***************
  1069. *** 1,4
  1070. ! #!/bin/sh
  1071.   # Configuration validation subroutine script, version 1.1.
  1072.   #   Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  1073.   # This file is (in principle) common to ALL GNU software.
  1074.  
  1075. --- 1,4 -----
  1076. ! #!/bin/ksh
  1077.   # Configuration validation subroutine script, version 1.1.
  1078.   #   Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  1079.   # This file is (in principle) common to ALL GNU software.
  1080. ***************
  1081. *** 558,564
  1082.             | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
  1083.             | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  1084.             | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  1085. !           | -hiux* | -386bsd* | -netbsd* | -freebsd* | -nextstep* \
  1086.             | -riscix* | -lynxos* | -bosx* | -ns* | -cxux* | -aout* | -elf*)
  1087.           ;;
  1088.       -sunos5*)
  1089.  
  1090. --- 558,564 -----
  1091.             | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
  1092.             | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  1093.             | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  1094. !           | -hiux* | -386bsd* | -netbsd* | -freebsd* | -nextstep* | -aux* \
  1095.             | -riscix* | -lynxos* | -bosx* | -ns* | -cxux* | -aout* | -elf*)
  1096.           ;;
  1097.       -sunos5*)
  1098. ***************
  1099. *** 606,611
  1100.       -xenix)
  1101.           os=-xenix
  1102.           ;;
  1103.       -none)
  1104.           ;;
  1105.       *)
  1106.  
  1107. --- 606,614 -----
  1108.       -xenix)
  1109.           os=-xenix
  1110.           ;;
  1111. +     -aux*)
  1112. +         os=-aux
  1113. +         ;;
  1114.       -none)
  1115.           ;;
  1116.       *)
  1117. ***************
  1118. *** 732,737
  1119.                   ;;
  1120.               -hpux*)
  1121.                   vendor=hp
  1122.                   ;;
  1123.               -hiux*)
  1124.                   vendor=hitachi
  1125.  
  1126. --- 735,743 -----
  1127.                   ;;
  1128.               -hpux*)
  1129.                   vendor=hp
  1130. +                 ;;
  1131. +             -aux*)
  1132. +                 vendor=apple
  1133.                   ;;
  1134.               -hiux*)
  1135.                   vendor=hitachi
  1136. *** ./configure.orig    Fri Sep  9 14:02:45 1994
  1137. --- ./configure    Tue Sep 20 23:01:51 1994
  1138. ***************
  1139. *** 1,4
  1140. ! #!/bin/sh
  1141.   #### Configuration script for XEmacs.
  1142.   #### Copyright (C) 1994 Free Software Foundation, Inc.
  1143.   
  1144.  
  1145. --- 1,4 -----
  1146. ! #!/bin/ksh
  1147.   #### Configuration script for XEmacs.
  1148.   #### Copyright (C) 1994 Free Software Foundation, Inc.
  1149.   
  1150. ***************
  1151. *** 1157,1162
  1152.       NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
  1153.     ;;
  1154.   
  1155.     ## Masscomp machines
  1156.     m68*-masscomp-rtu* )
  1157.       machine=masscomp opsys=rtu
  1158.  
  1159. --- 1157,1167 -----
  1160.       NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
  1161.     ;;
  1162.   
  1163. +   ## Machintosh machines
  1164. +   m68k-macII-aux )
  1165. +     machine=macII opsys=aux3-02
  1166. +   ;;
  1167.     ## Masscomp machines
  1168.     m68*-masscomp-rtu* )
  1169.       machine=masscomp opsys=rtu
  1170. ***************
  1171. *** 3865,3871
  1172.   echo creating config.status
  1173.   rm -f config.status
  1174.   cat > config.status <<EOF
  1175. ! #!/bin/sh
  1176.   # Generated automatically by configure.
  1177.   # Run this file to recreate the current configuration.
  1178.   # This directory was configured as follows,
  1179.  
  1180. --- 3870,3876 -----
  1181.   echo creating config.status
  1182.   rm -f config.status
  1183.   cat > config.status <<EOF
  1184. ! #!/bin/ksh
  1185.   # Generated automatically by configure.
  1186.   # Run this file to recreate the current configuration.
  1187.   # This directory was configured as follows,
  1188. ***************
  1189. *** 4114,4120
  1190.   EOF
  1191.   chmod +x config.status
  1192.   # Some shells look in PATH for config.status without the "./".
  1193. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  1194.    
  1195.   # Build src/Makefile from ${srcdir}/src/Makefile.in and lwlib/Makefile
  1196.   # from ${srcdir}/lwlib/Makefile.in.  This must be done after src/config.h
  1197.  
  1198. --- 4119,4125 -----
  1199.   EOF
  1200.   chmod +x config.status
  1201.   # Some shells look in PATH for config.status without the "./".
  1202. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/ksh} ./config.status
  1203.    
  1204.   # Build src/Makefile from ${srcdir}/src/Makefile.in and lwlib/Makefile
  1205.   # from ${srcdir}/lwlib/Makefile.in.  This must be done after src/config.h
  1206.