home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / make-3.70-src.lha / src / diffs / make-3.70.diffs
Text File  |  1994-02-21  |  10KB  |  387 lines

  1. diff -rc make-3.70-fsf/Makefile.in make-3.70-amiga/Makefile.in
  2. *** make-3.70-fsf/Makefile.in    Mon Jan  3 23:03:41 1994
  3. --- make-3.70-amiga/Makefile.in    Mon Feb 21 13:48:08 1994
  4. ***************
  5. *** 76,82 ****
  6.   extras = @LIBOBJS@
  7.   
  8.   # Common prefix for machine-independent installed files.
  9. ! prefix = /usr/local
  10.   # Common prefix for machine-dependent installed files.
  11.   exec_prefix = $(prefix)
  12.   
  13. --- 76,82 ----
  14.   extras = @LIBOBJS@
  15.   
  16.   # Common prefix for machine-independent installed files.
  17. ! prefix = /gnu
  18.   # Common prefix for machine-dependent installed files.
  19.   exec_prefix = $(prefix)
  20.   
  21. diff -rc make-3.70-fsf/arscan.c make-3.70-amiga/arscan.c
  22. *** make-3.70-fsf/arscan.c    Thu Dec 16 23:24:39 1993
  23. --- make-3.70-amiga/arscan.c    Mon Feb 21 13:08:02 1994
  24. ***************
  25. *** 22,27 ****
  26. --- 22,30 ----
  27.   #else
  28.   #include <sys/file.h>
  29.   #endif
  30. + #ifdef amigados
  31. + #include <stdlib.h>
  32. + #endif
  33.   
  34.   #ifndef    NO_ARCHIVES
  35.   
  36. diff -rc make-3.70-fsf/configure make-3.70-amiga/configure
  37. *** make-3.70-fsf/configure    Thu Dec 23 23:46:30 1993
  38. --- make-3.70-amiga/configure    Mon Feb 21 14:34:53 1994
  39. ***************
  40. *** 102,108 ****
  41.     srcdirdefaulted=yes
  42.     # Try the directory containing this script, then `..'.
  43.     prog=$0
  44. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  45.     test "X$confdir" = "X$prog" && confdir=.
  46.     srcdir=$confdir
  47.     if test ! -r $srcdir/$unique_file; then
  48. --- 102,108 ----
  49.     srcdirdefaulted=yes
  50.     # Try the directory containing this script, then `..'.
  51.     prog=$0
  52. !   confdir=`echo $prog| sed 's|/$||' | sed 's|//|/|' | sed 's|/[^/]*$||'`
  53.     test "X$confdir" = "X$prog" && confdir=.
  54.     srcdir=$confdir
  55.     if test ! -r $srcdir/$unique_file; then
  56. ***************
  57. *** 130,137 ****
  58.           
  59.   
  60.   # We want these before the checks, so the checks can modify their values.
  61. ! test -z "$CFLAGS" && CFLAGS=-g 
  62. ! test -z "$LDFLAGS" && LDFLAGS=-g 
  63.   
  64.   if test -z "$CC"; then
  65.     # Extract the first word of `gcc', so it can be a program name with args.
  66. --- 130,137 ----
  67.           
  68.   
  69.   # We want these before the checks, so the checks can modify their values.
  70. ! test -z "$CFLAGS" && CFLAGS=-O2
  71. ! test -z "$LDFLAGS" && LDFLAGS=
  72.   
  73.   if test -z "$CC"; then
  74.     # Extract the first word of `gcc', so it can be a program name with args.
  75. ***************
  76. *** 296,302 ****
  77.   
  78.   echo checking for POSIXized ISC
  79.   if test -d /etc/conf/kconfig.d &&
  80. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  81.   then
  82.     ISC=1 # If later tests want to check for ISC.
  83.     
  84. --- 296,302 ----
  85.   
  86.   echo checking for POSIXized ISC
  87.   if test -d /etc/conf/kconfig.d &&
  88. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  89.   then
  90.     ISC=1 # If later tests want to check for ISC.
  91.     
  92. ***************
  93. *** 1361,1367 ****
  94.   }
  95.   EOF
  96.   eval $compile
  97. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  98.     :
  99.   else
  100.     
  101. --- 1361,1367 ----
  102.   }
  103.   EOF
  104.   eval $compile
  105. ! if true; then
  106.     :
  107.   else
  108.     
  109. ***************
  110. *** 1467,1473 ****
  111.   # There is a commonly available library for RS/6000 AIX.
  112.   # Since it is not a standard part of AIX, it might be installed locally.
  113.   LIBS_old="$LIBS"
  114. ! LIBS="-L/usr/local/lib $LIBS"
  115.   LIBS_save="${LIBS}"
  116.   LIBS="${LIBS} -lgetloadavg"
  117.   have_lib=""
  118. --- 1467,1473 ----
  119.   # There is a commonly available library for RS/6000 AIX.
  120.   # Since it is not a standard part of AIX, it might be installed locally.
  121.   LIBS_old="$LIBS"
  122. ! LIBS="-L/local/lib $LIBS"
  123.   LIBS_save="${LIBS}"
  124.   LIBS="${LIBS} -lgetloadavg"
  125.   have_lib=""
  126. ***************
  127. *** 2095,2101 ****
  128.   
  129.   
  130.   echo checking for location of SCCS get command
  131. ! if test -f /usr/sccs/get; then
  132.     SCCS_GET=/usr/sccs/get
  133.     
  134.   {
  135. --- 2095,2101 ----
  136.   
  137.   
  138.   echo checking for location of SCCS get command
  139. ! if false; then
  140.     SCCS_GET=/usr/sccs/get
  141.     
  142.   {
  143. ***************
  144. *** 2125,2131 ****
  145.   
  146.   fi
  147.   ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  148. ! if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
  149.      test -f s.conftest; then
  150.     # We successfully created an SCCS file.
  151.     echo checking if SCCS get command understands -G
  152. --- 2125,2131 ----
  153.   
  154.   fi
  155.   ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  156. ! if ( false || admin -n s.conftest ) >/dev/null 2>&1 &&
  157.      test -f s.conftest; then
  158.     # We successfully created an SCCS file.
  159.     echo checking if SCCS get command understands -G
  160. diff -rc make-3.70-fsf/dir.c make-3.70-amiga/dir.c
  161. *** make-3.70-fsf/dir.c    Wed Jun  2 20:56:37 1993
  162. --- make-3.70-amiga/dir.c    Mon Feb 21 13:11:20 1994
  163. ***************
  164. *** 492,498 ****
  165. --- 492,502 ----
  166.   
  167.   /* Hooks for globbing.  */
  168.   
  169. + #ifndef amigados
  170.   #include <glob.h>
  171. + #else
  172. + #include "glob.h"
  173. + #endif
  174.   
  175.   /* Structure describing state of iterating through a directory hash table.  */
  176.   
  177. diff -rc make-3.70-fsf/function.c make-3.70-amiga/function.c
  178. *** make-3.70-fsf/function.c    Fri Oct 29 21:50:48 1993
  179. --- make-3.70-amiga/function.c    Mon Feb 21 13:11:22 1994
  180. ***************
  181. *** 21,26 ****
  182. --- 21,29 ----
  183.   #include "dep.h"
  184.   #include "commands.h"
  185.   #include "job.h"
  186. + #ifdef amigados
  187. + #include <stdlib.h>
  188. + #endif
  189.   
  190.   static char *string_glob ();
  191.   
  192. diff -rc make-3.70-fsf/getloadavg.c make-3.70-amiga/getloadavg.c
  193. *** make-3.70-fsf/getloadavg.c    Wed Nov  3 13:06:04 1993
  194. --- make-3.70-amiga/getloadavg.c    Mon Feb 21 13:11:23 1994
  195. ***************
  196. *** 472,477 ****
  197. --- 472,481 ----
  198.   {
  199.     int elem = 0;            /* Return value.  */
  200.   
  201. + #ifdef __amigados
  202. + #define NO_GET_LOAD_AVG
  203. + #endif
  204.   #ifdef NO_GET_LOAD_AVG
  205.   #define LDAV_DONE
  206.     /* Set errno to zero to indicate that there was no particular error;
  207. diff -rc make-3.70-fsf/getopt.c make-3.70-amiga/getopt.c
  208. *** make-3.70-fsf/getopt.c    Sat Dec 25 00:42:52 1993
  209. --- make-3.70-amiga/getopt.c    Mon Feb 21 13:11:25 1994
  210. ***************
  211. *** 48,53 ****
  212. --- 48,56 ----
  213.   #endif
  214.   
  215.   #include <stdio.h>
  216. + #ifdef amigados
  217. + #include <string.h>
  218. + #endif
  219.   
  220.   /* Comment out all this code if we are using the GNU C Library, and are not
  221.      actually compiling the library itself.  This code is part of the GNU C
  222. diff -rc make-3.70-fsf/glob/fnmatch.h make-3.70-amiga/glob/fnmatch.h
  223. *** make-3.70-fsf/glob/fnmatch.h    Tue Dec 14 20:02:10 1993
  224. --- make-3.70-amiga/glob/fnmatch.h    Mon Feb 21 13:11:26 1994
  225. ***************
  226. *** 42,48 ****
  227. --- 42,50 ----
  228.   #undef    FNM_PERIOD
  229.   
  230.   /* Bits set in the FLAGS argument to `fnmatch'.  */
  231. + #ifndef FNM_PATHNAME
  232.   #define    FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  233. + #endif
  234.   #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  235.   #define    FNM_PERIOD    (1 << 2) /* Leading `.' is matched only explicitly.  */
  236.   
  237. diff -rc make-3.70-fsf/job.c make-3.70-amiga/job.c
  238. *** make-3.70-fsf/job.c    Thu Oct 14 19:08:36 1993
  239. --- make-3.70-amiga/job.c    Mon Feb 21 15:11:44 1994
  240. ***************
  241. *** 23,29 ****
  242.   #include "variable.h"
  243.   
  244.   /* Default path to search for executables.  */
  245. ! static char default_path[] = ":/bin:/usr/bin";
  246.   
  247.   /* Default shell to use.  */
  248.   char default_shell[] = "/bin/sh";
  249. --- 23,29 ----
  250.   #include "variable.h"
  251.   
  252.   /* Default path to search for executables.  */
  253. ! static char default_path[] = ":/bin";
  254.   
  255.   /* Default shell to use.  */
  256.   char default_shell[] = "/bin/sh";
  257. ***************
  258. *** 46,52 ****
  259.   #endif
  260.   
  261.   #ifdef    HAVE_WAITPID
  262. ! #define    WAIT_NOHANG(status)    waitpid (-1, (status), WNOHANG)
  263.   #else    /* Don't have waitpid.  */
  264.   #ifdef    HAVE_WAIT3
  265.   #ifndef    wait3
  266. --- 46,52 ----
  267.   #endif
  268.   
  269.   #ifdef    HAVE_WAITPID
  270. ! #define    WAIT_NOHANG(status)    waitpid (-1, (int *)(status), WNOHANG)
  271.   #else    /* Don't have waitpid.  */
  272.   #ifdef    HAVE_WAIT3
  273.   #ifndef    wait3
  274. ***************
  275. *** 269,275 ****
  276.           pid = WAIT_NOHANG (&status);
  277.             else
  278.   #endif
  279. !         pid = wait (&status);
  280.           }
  281.         else
  282.           pid = 0;
  283. --- 269,275 ----
  284.           pid = WAIT_NOHANG (&status);
  285.             else
  286.   #endif
  287. !         pid = wait ((int *)&status);
  288.           }
  289.         else
  290.           pid = 0;
  291. diff -rc make-3.70-fsf/main.c make-3.70-amiga/main.c
  292. *** make-3.70-fsf/main.c    Thu Dec 16 20:10:36 1993
  293. --- make-3.70-amiga/main.c    Mon Feb 21 13:11:28 1994
  294. ***************
  295. *** 22,27 ****
  296. --- 22,30 ----
  297.   #include "variable.h"
  298.   #include "job.h"
  299.   #include "getopt.h"
  300. + #ifdef amigados
  301. + #include <stdlib.h>
  302. + #endif
  303.   
  304.   
  305.   extern void print_variable_data_base ();
  306. diff -rc make-3.70-fsf/read.c make-3.70-amiga/read.c
  307. *** make-3.70-fsf/read.c    Thu Dec 23 22:56:05 1993
  308. --- make-3.70-amiga/read.c    Mon Feb 21 13:47:04 1994
  309. ***************
  310. *** 81,90 ****
  311. --- 81,99 ----
  312.   
  313.   static char *default_include_directories[] =
  314.     {
  315. + #ifndef amigados
  316.       INCLUDEDIR,
  317.       "/usr/gnu/include",
  318.       "/usr/local/include",
  319.       "/usr/include",
  320. + #else
  321. +     "/gnu/include",
  322. +     "/gnu/g++-include",
  323. +     "/gnu/os-include",
  324. +     "/local/include",
  325. +     "/local/g++-include",
  326. +     "/local/os-include",
  327. + #endif
  328.       0
  329.     };
  330.   
  331. diff -rc make-3.70-fsf/remake.c make-3.70-amiga/remake.c
  332. *** make-3.70-fsf/remake.c    Wed Oct 27 22:14:26 1993
  333. --- make-3.70-amiga/remake.c    Mon Feb 21 13:46:44 1994
  334. ***************
  335. *** 961,968 ****
  336. --- 961,975 ----
  337.   {
  338.     static char *dirs[] =
  339.       {
  340. + #ifndef amigados
  341.         "/lib",
  342.         "/usr/lib",
  343. + #else
  344. +      "/gnu/lib",
  345. +      "/gnu/lib/libb",
  346. +      "/local/lib",
  347. +      "/local/lib/libb",
  348. + #endif
  349.         LIBDIR,            /* Defined by configuration.  */
  350.         0
  351.       };
  352. ***************
  353. *** 971,977 ****
  354. --- 978,988 ----
  355.     time_t mtime;
  356.   
  357.     /* Buffer to construct possible names in.  */
  358. + #ifndef amigados
  359.     char *buf = xmalloc (sizeof (LIBDIR) + 8 + strlen (libname) + 4 + 2 + 1);
  360. + #else
  361. +   char *buf = xmalloc (8 + strlen (libname) + 9 + 2 + 1);
  362. + #endif
  363.     char *file, **dp;
  364.   
  365.     /* Look first for `libNAME.a' in the current directory.  */
  366. diff -rc make-3.70-fsf/remote-cstms.c make-3.70-amiga/remote-cstms.c
  367. *** make-3.70-fsf/remote-cstms.c    Thu Feb  4 18:31:53 1993
  368. --- make-3.70-amiga/remote-cstms.c    Mon Feb 21 13:51:49 1994
  369. ***************
  370. *** 35,41 ****
  371.   
  372.   /* File name of the Customs `export' client command.
  373.      A full path name can be used to avoid some path-searching overhead.  */
  374. ! #define    EXPORT_COMMAND    "/usr/local/bin/export"
  375.   
  376.   /* ExportPermit gotten by start_remote_job_p, and used by start_remote_job.  */
  377.   static ExportPermit permit;
  378. --- 35,41 ----
  379.   
  380.   /* File name of the Customs `export' client command.
  381.      A full path name can be used to avoid some path-searching overhead.  */
  382. ! #define    EXPORT_COMMAND    "/gnu/bin/export"
  383.   
  384.   /* ExportPermit gotten by start_remote_job_p, and used by start_remote_job.  */
  385.   static ExportPermit permit;
  386.