home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnuc / make-3.64 / make.diff < prev    next >
Encoding:
Text File  |  1993-04-26  |  13.7 KB  |  520 lines

  1. diff -2rcwN make-3.64/Makefile amiga-make-3.64/Makefile
  2. *** make-3.64/Makefile  Sun Apr 25 01:19:27 1993
  3. --- amiga-make-3.64/Makefile    Sun Apr 25 00:54:08 1993
  4. ***************
  5. *** 25,32 ****
  6.   srcdir = $(VPATH)
  7.  
  8. ! CC = gccv
  9.  
  10. ! CFLAGS = -g
  11. ! LDFLAGS = -g -L/usr/local/lib
  12.  
  13.   # Define these for your system as follows:
  14. --- 25,32 ----
  15.   srcdir = $(VPATH)
  16.  
  17. ! CC = gcc
  18.  
  19. ! CFLAGS = -Wall #-g
  20. ! LDFLAGS = #-g -L/usr/local/lib
  21.  
  22.   # Define these for your system as follows:
  23. ***************
  24. *** 38,46 ****
  25.   #                             so beware.
  26.   # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  27. ! defines = -DHAVE_CONFIG_H -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  28.  
  29.   # Which flavor of remote job execution support to use.
  30.   # The code is found in `remote-$(REMOTE).c'.
  31. ! REMOTE = cstms
  32.  
  33.   # If you are using the GNU C library, or have the GNU getopt functions in
  34. --- 38,46 ----
  35.   #                             so beware.
  36.   # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  37. ! defines = -DHAVE_CONFIG_H #-DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  38.  
  39.   # Which flavor of remote job execution support to use.
  40.   # The code is found in `remote-$(REMOTE).c'.
  41. ! REMOTE = stub#cstms
  42.  
  43.   # If you are using the GNU C library, or have the GNU getopt functions in
  44. ***************
  45. *** 59,63 ****
  46.   # If your system doesn't have alloca, or the one provided is bad, define this.
  47.   ALLOCA =
  48. ! ALLOCA_SRC = $(srcdir)/alloca.c
  49.  
  50.   # If your system needs extra libraries loaded in, define them here.
  51. --- 59,63 ----
  52.   # If your system doesn't have alloca, or the one provided is bad, define this.
  53.   ALLOCA =
  54. ! ALLOCA_SRC = #$(srcdir)/alloca.c
  55.  
  56.   # If your system needs extra libraries loaded in, define them here.
  57. ***************
  58. *** 65,69 ****
  59.   # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  60.   # alloca.c instead on those machines.
  61. ! LOADLIBES =  /usr/local/lib/libgetloadavg.a libcustoms.a
  62.  
  63.   # Any extra object files your system needs.
  64. --- 65,69 ----
  65.   # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  66.   # alloca.c instead on those machines.
  67. ! LOADLIBES =  #/usr/local/lib/libgetloadavg.a libcustoms.a
  68.  
  69.   # Any extra object files your system needs.
  70. ***************
  71. *** 108,112 ****
  72.   MAKEINFO = makeinfo
  73.   # Program to format Texinfo source into DVI files.
  74. ! TEXI2DVI = texi2dvi
  75.  
  76.   # Programs to make tags files.
  77. --- 108,112 ----
  78.   MAKEINFO = makeinfo
  79.   # Program to format Texinfo source into DVI files.
  80. ! TEXI2DVI = virtex #texi2dvi
  81.  
  82.   # Programs to make tags files.
  83. ***************
  84. *** 213,222 ****
  85.         cd glob; $(MAKE) $@
  86.  
  87. ! Makefile: config.status $(srcdir)/Makefile.in
  88. !       $(SHELL) config.status
  89. ! config.h: stamp-config ;
  90. ! stamp-config: config.status $(srcdir)/config.h.in
  91. !       $(SHELL) config.status
  92. !       touch stamp-config
  93.  
  94.   configure: configure.in
  95. --- 213,222 ----
  96.         cd glob; $(MAKE) $@
  97.  
  98. ! #Makefile: config.status $(srcdir)/Makefile.in
  99. ! #      $(SHELL) config.status
  100. ! #config.h: stamp-config ;
  101. ! #stamp-config: config.status $(srcdir)/config.h.in
  102. ! #      $(SHELL) config.status
  103. ! #      touch stamp-config
  104.  
  105.   configure: configure.in
  106. diff -2rcwN make-3.64/arscan.c amiga-make-3.64/arscan.c
  107. *** make-3.64/arscan.c  Mon Apr 12 20:52:46 1993
  108. --- amiga-make-3.64/arscan.c    Sun Apr 25 00:22:19 1993
  109. ***************
  110. *** 24,27 ****
  111. --- 24,31 ----
  112.   #endif
  113.  
  114. + #ifdef amigados
  115. + #include <stdlib.h>
  116. + #endif
  117. +
  118.   #ifndef NO_ARCHIVES
  119.   
  120. diff -2rcwN make-3.64/config.h amiga-make-3.64/config.h
  121. *** make-3.64/config.h  Sun Apr 25 01:20:16 1993
  122. --- amiga-make-3.64/config.h    Sun Apr 25 00:02:52 1993
  123. ***************
  124. *** 6,13 ****
  125.  
  126.   /* Define if you have alloca.h and it should be used (not Ultrix).  */
  127. ! /* #undef HAVE_ALLOCA_H */
  128.  
  129.   /* Define if you have the strcoll function and it is properly defined.  */
  130. ! /* #undef HAVE_STRCOLL */
  131.  
  132.   /* Define if you have unistd.h.  */
  133. --- 6,13 ----
  134.  
  135.   /* Define if you have alloca.h and it should be used (not Ultrix).  */
  136. ! #undef HAVE_ALLOCA_H
  137.  
  138.   /* Define if you have the strcoll function and it is properly defined.        */
  139. ! #undef HAVE_STRCOLL
  140.  
  141.   /* Define if you have unistd.h.  */
  142. ***************
  143. *** 15,19 ****
  144.  
  145.   /* Define if you have vfork.h.  */
  146. ! /* #undef HAVE_VFORK_H */
  147.  
  148.   /* Define vfork as fork if vfork does not work.  */
  149. --- 15,19 ----
  150.  
  151.   /* Define if you have vfork.h.        */
  152. ! #undef HAVE_VFORK_H
  153.  
  154.   /* Define vfork as fork if vfork does not work.  */
  155. ***************
  156. *** 21,25 ****
  157.  
  158.   /* Define if your struct nlist has an n_un member.  */
  159. ! /* #undef NLIST_NAME_UNION */
  160.  
  161.   /* Define if you have nlist.h.  */
  162. --- 21,25 ----
  163.  
  164.   /* Define if your struct nlist has an n_un member.  */
  165. ! #undef NLIST_NAME_UNION
  166.  
  167.   /* Define if you have nlist.h.        */
  168. ***************
  169. *** 27,31 ****
  170.  
  171.   /* Define if your C compiler doesn't accept -c and -o together.  */
  172. ! #define NO_MINUS_C_MINUS_O 1
  173.  
  174.   /* Define as the return type of signal handlers (int or void).  */
  175. --- 27,31 ----
  176.  
  177.   /* Define if your C compiler doesn't accept -c and -o together.  */
  178. ! #undef NO_MINUS_C_MINUS_O
  179.  
  180.   /* Define as the return type of signal handlers (int or void).  */
  181. ***************
  182. *** 35,54 ****
  183.      argument and the buffer pointer as the third, as on System V
  184.      before release 3.  */
  185. ! #define SETVBUF_REVERSED 1
  186.  
  187.   /* Define if you have the ANSI C header files.  */
  188. ! /* #undef STDC_HEADERS */
  189.  
  190.   /* Define if you don't have dirent.h, but have sys/dir.h.  */
  191. ! /* #undef SYSDIR */
  192.  
  193.   /* Define if you don't have dirent.h, but have sys/ndir.h.  */
  194. ! /* #undef SYSNDIR */
  195.  
  196.   /* Define if you do not have strings.h, index, bzero, etc..  */
  197. ! /* #undef USG */
  198.  
  199.   /* Define if the closedir function returns void instead of int.  */
  200. ! /* #undef VOID_CLOSEDIR */
  201.  
  202.   /* Define if on AIX 3.
  203. --- 35,54 ----
  204.      argument and the buffer pointer as the third, as on System V
  205.      before release 3.  */
  206. ! #undef SETVBUF_REVERSED
  207.  
  208.   /* Define if you have the ANSI C header files.        */
  209. ! #undef STDC_HEADERS
  210.  
  211.   /* Define if you don't have dirent.h, but have sys/dir.h.  */
  212. ! #undef SYSDIR
  213.  
  214.   /* Define if you don't have dirent.h, but have sys/ndir.h.  */
  215. ! #undef SYSNDIR
  216.  
  217.   /* Define if you do not have strings.h, index, bzero, etc..  */
  218. ! #undef USG
  219.  
  220.   /* Define if the closedir function returns void instead of int.  */
  221. ! #undef VOID_CLOSEDIR
  222.  
  223.   /* Define if on AIX 3.
  224. ***************
  225. *** 56,80 ****
  226.      We just want to avoid a redefinition error message.  */
  227.   #ifndef _ALL_SOURCE
  228. ! /* #undef _ALL_SOURCE */
  229.   #endif
  230.  
  231.   /* Define if on MINIX.  */
  232. ! /* #undef _MINIX */
  233.  
  234.   /* Define if on MINIX.  */
  235. ! /* #undef _POSIX_1_SOURCE */
  236.  
  237.   /* Define if you need to in order for stat and other things to work.  */
  238. ! /* #undef _POSIX_SOURCE */
  239.  
  240.   /* Define on System V Release 4.  */
  241. ! /* #undef SVR4 */
  242.  
  243.   /* Define for Encore UMAX.  */
  244. ! /* #undef UMAX */
  245.  
  246.   /* Define for Encore UMAX 4.3 that has <inq_status/cpustats.h>
  247.      instead of <sys/cpustats.h>.  */
  248. ! /* #undef UMAX4_3 */
  249.  
  250.   /* Define to `int' if <sys/types.h> doesn't define.  */
  251. --- 56,80 ----
  252.      We just want to avoid a redefinition error message.        */
  253.   #ifndef _ALL_SOURCE
  254. ! #undef _ALL_SOURCE
  255.   #endif
  256.  
  257.   /* Define if on MINIX.        */
  258. ! #undef _MINIX
  259.  
  260.   /* Define if on MINIX.        */
  261. ! #undef _POSIX_1_SOURCE
  262.  
  263.   /* Define if you need to in order for stat and other things to work.  */
  264. ! #undef _POSIX_SOURCE
  265.  
  266.   /* Define on System V Release 4.  */
  267. ! #undef SVR4
  268.  
  269.   /* Define for Encore UMAX.  */
  270. ! #undef UMAX
  271.  
  272.   /* Define for Encore UMAX 4.3 that has <inq_status/cpustats.h>
  273.      instead of <sys/cpustats.h>.  */
  274. ! #undef UMAX4_3
  275.  
  276.   /* Define to `int' if <sys/types.h> doesn't define.  */
  277. ***************
  278. *** 87,100 ****
  279.  
  280.   /* Define for DGUX with <sys/dg_sys_info.h>.  */
  281. ! /* #undef DGUX */
  282.  
  283.   /* Define if the `getloadavg' function needs to be run setuid or setgid.  */
  284. ! /* #undef GETLOADAVG_PRIVILEGED */
  285.  
  286.   /* Define if `union wait' is the type of the first arg to wait functions.  */
  287. ! /* #undef HAVE_UNION_WAIT */
  288.  
  289.   /* Define if `sys_siglist' is declared by <signal.h>.  */
  290. ! /* #undef SYS_SIGLIST_DECLARED */
  291.  
  292.   /* If using the C implementation of alloca, define if you know the
  293. --- 87,100 ----
  294.  
  295.   /* Define for DGUX with <sys/dg_sys_info.h>.  */
  296. ! #undef DGUX
  297.  
  298.   /* Define if the `getloadavg' function needs to be run setuid or setgid.  */
  299. ! #undef GETLOADAVG_PRIVILEGED
  300.  
  301.   /* Define if `union wait' is the type of the first arg to wait functions.  */
  302. ! #undef HAVE_UNION_WAIT
  303.  
  304.   /* Define if `sys_siglist' is declared by <signal.h>.  */
  305. ! #undef SYS_SIGLIST_DECLARED
  306.  
  307.   /* If using the C implementation of alloca, define if you know the
  308. ***************
  309. *** 105,109 ****
  310.         STACK_DIRECTION = 0 => direction of growth unknown
  311.    */
  312. ! /* #undef STACK_DIRECTION */
  313.  
  314.   /* Define to the name of the SCCS `get' command.  */
  315. --- 105,109 ----
  316.         STACK_DIRECTION = 0 => direction of growth unknown
  317.    */
  318. ! #undef STACK_DIRECTION
  319.  
  320.   /* Define to the name of the SCCS `get' command.  */
  321. ***************
  322. *** 117,121 ****
  323.  
  324.   /* Define if you have _sys_siglist.  */
  325. ! /* #undef HAVE__SYS_SIGLIST */
  326.  
  327.   /* Define if you have psignal.  */
  328. --- 117,121 ----
  329.  
  330.   /* Define if you have _sys_siglist.  */
  331. ! #undef HAVE__SYS_SIGLIST
  332.  
  333.   /* Define if you have psignal.        */
  334. ***************
  335. *** 138,151 ****
  336.  
  337.   /* Define if you have setreuid.  */
  338. ! /* #undef HAVE_SETREUID */
  339.  
  340.   /* Define if you have setregid.  */
  341. ! /* #undef HAVE_SETREGID */
  342.  
  343.   /* Define if you have waitpid.  */
  344. ! /* #undef HAVE_WAITPID */
  345.  
  346.   /* Define if you have wait3.  */
  347. ! /* #undef HAVE_WAIT3 */
  348.  
  349.   /* Define if you have the <limits.h> header file.  */
  350. --- 138,152 ----
  351.  
  352.   /* Define if you have setreuid.  */
  353. ! #undef HAVE_SETREUID
  354.  
  355.   /* Define if you have setregid.  */
  356. ! #undef HAVE_SETREGID
  357.  
  358. + /* Only one of the following two is needed */
  359.   /* Define if you have waitpid.        */
  360. ! #define HAVE_WAITPID 1
  361.  
  362.   /* Define if you have wait3.  */
  363. ! #undef HAVE_WAIT3
  364.  
  365.   /* Define if you have the <limits.h> header file.  */
  366. diff -2rcwN make-3.64/dir.c amiga-make-3.64/dir.c
  367. *** make-3.64/dir.c     Mon Apr 12 20:51:44 1993
  368. --- amiga-make-3.64/dir.c       Sun Apr 25 00:00:13 1993
  369. ***************
  370. *** 488,492 ****
  371. --- 488,496 ----
  372.   /* Hooks for globbing.        */
  373.  
  374. + #ifndef amigados
  375.   #include <glob.h>
  376. + #else
  377. + #include "glob.h"
  378. + #endif
  379.  
  380.   /* Structure describing state of iterating through a directory hash table.  */
  381. diff -2rcwN make-3.64/function.c amiga-make-3.64/function.c
  382. *** make-3.64/function.c        Thu Apr 15 22:29:47 1993
  383. --- amiga-make-3.64/function.c  Sun Apr 25 00:47:07 1993
  384. ***************
  385. *** 22,25 ****
  386. --- 22,28 ----
  387.   #include "commands.h"
  388.   #include "job.h"
  389. + #ifdef amigados
  390. + #include <stdlib.h>
  391. + #endif
  392.  
  393.   static char *string_glob ();
  394. diff -2rcwN make-3.64/getopt.c amiga-make-3.64/getopt.c
  395. *** make-3.64/getopt.c  Fri Apr 16 16:17:04 1993
  396. --- amiga-make-3.64/getopt.c    Sun Apr 25 00:31:17 1993
  397. ***************
  398. *** 53,56 ****
  399. --- 53,59 ----
  400.  
  401.   #include <stdio.h>
  402. + #ifdef amigados
  403. + #include <string.h>
  404. + #endif
  405.  
  406.   /* Comment out all this code if we are using the GNU C Library, and are not
  407. diff -2rcwN make-3.64/job.c amiga-make-3.64/job.c
  408. *** make-3.64/job.c     Wed Apr 14 17:22:35 1993
  409. --- amiga-make-3.64/job.c       Sun Apr 25 00:43:48 1993
  410. ***************
  411. *** 24,28 ****
  412. --- 24,32 ----
  413.  
  414.   /* Default path to search for executables.  */
  415. + #ifndef amigados
  416.   static char default_path[] = ":/bin:/usr/bin";
  417. + #else
  418. + static char default_path[] = ":/bin:/usr/local/bin:/c";
  419. + #endif
  420.  
  421.   /* Default shell to use.  */
  422. ***************
  423. *** 967,971 ****
  424.   #endif
  425.         if (groups != 0 && ngroups == -1)
  426. !       ngroups = getgroups (ngroups_max, groups);
  427.   #endif        /* Have getgroups.  */
  428.  
  429. --- 971,975 ----
  430.   #endif
  431.         if (groups != 0 && ngroups == -1)
  432. !       ngroups = getgroups (ngroups_max, (int *)groups);
  433.   #endif        /* Have getgroups.  */
  434.  
  435. ***************
  436. *** 993,999 ****
  437.               && S_ISREG (st.st_mode))
  438.             {
  439. !             if (st.st_uid == geteuid ())
  440.                 perm = (st.st_mode & 0100);
  441. !             else if (st.st_gid == getegid ())
  442.                 perm = (st.st_mode & 0010);
  443.               else
  444. --- 997,1003 ----
  445.               && S_ISREG (st.st_mode))
  446.             {
  447. !             if ((uid_t)st.st_uid == geteuid ())
  448.                 perm = (st.st_mode & 0100);
  449. !             else if ((gid_t)st.st_gid == getegid ())
  450.                 perm = (st.st_mode & 0010);
  451.               else
  452. diff -2rcwN make-3.64/main.c amiga-make-3.64/main.c
  453. *** make-3.64/main.c    Wed Apr 14 18:20:33 1993
  454. --- amiga-make-3.64/main.c      Sun Apr 25 00:46:09 1993
  455. ***************
  456. *** 23,27 ****
  457.   #include "job.h"
  458.   #include "getopt.h"
  459. !
  460.  
  461.   extern char *version_string;
  462. --- 23,29 ----
  463.   #include "job.h"
  464.   #include "getopt.h"
  465. ! #ifdef amigados
  466. ! #include <stdlib.h>
  467. ! #endif
  468.  
  469.   extern char *version_string;
  470. diff -2rcwN make-3.64/read.c amiga-make-3.64/read.c
  471. *** make-3.64/read.c    Thu Apr 15 22:30:01 1993
  472. --- amiga-make-3.64/read.c      Sun Apr 25 00:04:43 1993
  473. ***************
  474. *** 82,89 ****
  475. --- 82,95 ----
  476.   static char *default_include_directories[] =
  477.     {
  478. + #ifndef amigados
  479.       INCLUDEDIR,
  480.       "/usr/gnu/include",
  481.       "/usr/local/include",
  482.       "/usr/include",
  483. + #else
  484. +     "/gcc/include",
  485. +     "/gcc/g++-include",
  486. +     "/gcc/os-include",
  487. + #endif
  488.       0
  489.     };
  490. diff -2rcwN make-3.64/remake.c amiga-make-3.64/remake.c
  491. *** make-3.64/remake.c  Mon Apr 12 20:52:45 1993
  492. --- amiga-make-3.64/remake.c    Sun Apr 25 00:06:13 1993
  493. ***************
  494. *** 964,970 ****
  495. --- 964,975 ----
  496.     static char *dirs[] =
  497.       {
  498. + #ifndef amigados
  499.         "/lib",
  500.         "/usr/lib",
  501.         LIBDIR,                 /* Defined by configuration.  */
  502. + #else
  503. +       "/gcc/lib",
  504. +       "/gcc/blib",
  505. + #endif
  506.         0
  507.       };
  508. ***************
  509. *** 974,978 ****
  510. --- 979,987 ----
  511.  
  512.     /* Buffer to construct possible names in.  */
  513. + #ifndef amigados
  514.     char *buf = xmalloc (sizeof (LIBDIR) + 8 + strlen (libname) + 4 + 2 + 1);
  515. + #else
  516. +   char *buf = xmalloc (8 + strlen (libname) + 9 + 2 + 1);
  517. + #endif
  518.     char *file, **dp;
  519.  
  520.