Let configure handle ranlib.
authorGlenn Morris <rgm@gnu.org>
Thu, 6 May 2010 07:29:09 +0000 (00:29 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 6 May 2010 07:29:09 +0000 (00:29 -0700)
* oldXMenu/Makefile.in (RANLIB): Let configure set it.
(libXMenu11.a): configure sets RANLIB = : on systems without it.

oldXMenu/ChangeLog
oldXMenu/Makefile.in

index 365ff1f..b17a3b2 100644 (file)
@@ -1,5 +1,8 @@
 2010-05-06  Glenn Morris  <rgm@gnu.org>
 
+       * Makefile.in (RANLIB): Let configure set it.
+       (libXMenu11.a): configure sets RANLIB = : on systems without it.
+
        * Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
        (STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
 
index b1d6ea5..5e2e2f6 100644 (file)
@@ -55,7 +55,7 @@ CC=@CC@
 CFLAGS=@CFLAGS@
 TAGS = etags
 RM = rm -f
-RANLIB = ranlib
+RANLIB = @RANLIB@
 # Solaris 2.1 ar doesn't accept the 'l' option.
 AR = ar cq
 
@@ -97,11 +97,7 @@ ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
 libXMenu11.a: $(OBJS) $(EXTRA)
        $(RM) $@
        $(AR) $@ $(OBJS) $(EXTRA)
-       @echo Do not be alarmed if the following ranlib command
-       @echo fails due to the absence of a ranlib program on your system.
-       -$(RANLIB) $@ || true
-#If running ranlib fails, probably there is none.
-#That's ok.  So don't stop the build.
+       $(RANLIB) $@
 
 Activate.o: Activate.c XMenuInt.h XMenu.h X10.h
 AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h