Changeset 06fa582 in rtems


Ignore:
Timestamp:
Aug 19, 1998, 12:56:20 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
2d7d605
Parents:
b93a1ab
Message:

Patches from Ralf Corsepius <corsepiu@…> and myself to
make solaris target buildable.

  1. The ipc check fails since solaris does not define union semun.

The unix port code actually defines this type itself on solaris. Doing
the same thing lets it get configured. Then...

  1. It looks like BSDINSTALL is not defined properly.

BSDINSTALL is defined in make/host.cfg.in as
BSDINSTALL=@INSTALL@

@INSTALL@ is generated by autoconf's standard macro AC_PROG_INSTALL, which
is widely used in almost any autoconf/automake configured package. In case
there is really something wrong with it, then it must be considered a bug
in autoconf.

I can see a doubious fragment in AC_PROG_INSTALL, which is used when no
appropriate bsd-install is found.

Finally Ralf saw a problem with the find on solaris which I also saw and
fixed.

Files:
18 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    rb93a1ab r06fa582  
    462462#include <sys/sem.h>
    463463int main () {
    464   union semun arg ;
     464#if !defined(sun)
     465  union semun arg;
     466#else
     467  union semun {
     468    int val;
     469    struct semid_ds *buf;
     470    ushort *array;
     471  } arg;
     472#endif
    465473  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    466474  if (id == -1)
  • aclocal/sysv-ipc.m4

    rb93a1ab r06fa582  
    2828#include <sys/sem.h>
    2929int main () {
     30#if !defined(sun)
    3031  union semun arg ;
     32#else
     33  union semun {
     34    int val;
     35    struct semid_ds *buf;
     36    ushort *array;
     37  } arg;
     38#endif
    3139  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    3240  if (id == -1)
  • c/Makefile.in

    rb93a1ab r06fa582  
    5252make_src_makefiles: Makefile.in Makefile
    5353        -find . -name Makefile \
    54            -exec grep -q ^preinstall {} \; -print > make_src_makefiles.tmp
     54            -exec grep -l "^preinstall" {} \; > make_src_makefiles.tmp
    5555        -grep tools make_src_makefiles.tmp > make_src_makefiles
    5656        -grep -v tools make_src_makefiles.tmp >> make_src_makefiles
  • c/build-tools/os/msdos/Makefile.in

    rb93a1ab r06fa582  
    2121
    2222$(DESTDIR):
    23         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     23        @INSTALL@ $(INSTDIRFLAGS) $@
    2424
    2525install:  $(INSTALLED)
  • c/build-tools/scripts/Makefile.in

    rb93a1ab r06fa582  
    2626
    2727$(DESTDIR):
    28         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     28        @INSTALL@ $(INSTDIRFLAGS) $@
    2929
    3030install:  $(INSTALLED)
  • c/build-tools/src/Makefile.in

    rb93a1ab r06fa582  
    6565
    6666$(DESTDIR):
    67         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     67        @INSTALL@ $(INSTDIRFLAGS) $@
    6868
    6969all:    $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
    70         $(BSDINSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
     70        @INSTALL@ $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
  • c/src/exec/score/tools/generic/Makefile.in

    rb93a1ab r06fa582  
    2525
    2626$(DESTDIR):
    27         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     27        @INSTALL@ $(INSTDIRFLAGS) $@
    2828
    2929install:  $(INSTALLED)
     
    3131# Install the program
    3232$(DESTDIR)/%: %
    33         $(BSDINSTALL) $(INSTBINFLAGS) $^ $@
     33        @INSTALL@ $(INSTBINFLAGS) $^ $@
  • c/src/exec/score/tools/sh/Makefile.in

    rb93a1ab r06fa582  
    5656
    5757$(DESTDIR):
    58         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     58        @INSTALL@ $(INSTDIRFLAGS) $@
    5959
    6060# Install the program
    6161install:  $(DESTDIR) $(PGMS)
    62         $(BSDINSTALL) $(INSTBINFLAGS) ${PGMS} $(DESTDIR)
     62        @INSTALL@ $(INSTBINFLAGS) ${PGMS} $(DESTDIR)
  • c/src/make/host.cfg.in

    rb93a1ab r06fa582  
    3131M4=@M4@
    3232
    33 BSDINSTALL=@INSTALL@
    3433INSTALL=$(PROJECT_TOOLS)/install-if-change
    3534INSTALL_VARIANT=$(PROJECT_TOOLS)/install-if-change -V "$(LIB_VARIANT)"
  • c/update-tools/Makefile.in

    rb93a1ab r06fa582  
    2727
    2828$(DESTDIR):
    29         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     29        @INSTALL@ $(INSTDIRFLAGS) $@
    3030
    3131install:  $(INSTALLED)
     
    3535$(DESTDIR)/%: %
    3636        $(make-script)
    37         $(BSDINSTALL)  $(INSTBINFLAGS) $(PERL_PGMS) ${DESTDIR}
    38         $(BSDINSTALL)  $(INSTDATAFLAGS) $(MISC_SUPPORT) ${DESTDIR}
     37        @INSTALL@  $(INSTBINFLAGS) $(PERL_PGMS) ${DESTDIR}
     38        @INSTALL@  $(INSTDATAFLAGS) $(MISC_SUPPORT) ${DESTDIR}
  • configure

    rb93a1ab r06fa582  
    27442744#include <sys/sem.h>
    27452745int main () {
    2746   union semun arg ;
     2746#if !defined(sun)
     2747  union semun arg;
     2748#else
     2749  union semun {
     2750    int val;
     2751    struct semid_ds *buf;
     2752    ushort *array;
     2753  } arg;
     2754#endif
    27472755  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
    27482756  if (id == -1)
  • make/host.cfg.in

    rb93a1ab r06fa582  
    3131M4=@M4@
    3232
    33 BSDINSTALL=@INSTALL@
    3433INSTALL=$(PROJECT_TOOLS)/install-if-change
    3534INSTALL_VARIANT=$(PROJECT_TOOLS)/install-if-change -V "$(LIB_VARIANT)"
  • tools/build/os/msdos/Makefile.in

    rb93a1ab r06fa582  
    2121
    2222$(DESTDIR):
    23         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     23        @INSTALL@ $(INSTDIRFLAGS) $@
    2424
    2525install:  $(INSTALLED)
  • tools/build/scripts/Makefile.in

    rb93a1ab r06fa582  
    2626
    2727$(DESTDIR):
    28         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     28        @INSTALL@ $(INSTDIRFLAGS) $@
    2929
    3030install:  $(INSTALLED)
  • tools/build/src/Makefile.in

    rb93a1ab r06fa582  
    6565
    6666$(DESTDIR):
    67         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     67        @INSTALL@ $(INSTDIRFLAGS) $@
    6868
    6969all:    $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
    70         $(BSDINSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
     70        @INSTALL@ $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
  • tools/cpu/generic/Makefile.in

    rb93a1ab r06fa582  
    2525
    2626$(DESTDIR):
    27         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     27        @INSTALL@ $(INSTDIRFLAGS) $@
    2828
    2929install:  $(INSTALLED)
     
    3131# Install the program
    3232$(DESTDIR)/%: %
    33         $(BSDINSTALL) $(INSTBINFLAGS) $^ $@
     33        @INSTALL@ $(INSTBINFLAGS) $^ $@
  • tools/cpu/sh/Makefile.in

    rb93a1ab r06fa582  
    5656
    5757$(DESTDIR):
    58         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     58        @INSTALL@ $(INSTDIRFLAGS) $@
    5959
    6060# Install the program
    6161install:  $(DESTDIR) $(PGMS)
    62         $(BSDINSTALL) $(INSTBINFLAGS) ${PGMS} $(DESTDIR)
     62        @INSTALL@ $(INSTBINFLAGS) ${PGMS} $(DESTDIR)
  • tools/update/Makefile.in

    rb93a1ab r06fa582  
    2727
    2828$(DESTDIR):
    29         $(BSDINSTALL) $(INSTDIRFLAGS) $@
     29        @INSTALL@ $(INSTDIRFLAGS) $@
    3030
    3131install:  $(INSTALLED)
     
    3535$(DESTDIR)/%: %
    3636        $(make-script)
    37         $(BSDINSTALL)  $(INSTBINFLAGS) $(PERL_PGMS) ${DESTDIR}
    38         $(BSDINSTALL)  $(INSTDATAFLAGS) $(MISC_SUPPORT) ${DESTDIR}
     37        @INSTALL@  $(INSTBINFLAGS) $(PERL_PGMS) ${DESTDIR}
     38        @INSTALL@  $(INSTDATAFLAGS) $(MISC_SUPPORT) ${DESTDIR}
Note: See TracChangeset for help on using the changeset viewer.