httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject [PATCH] possible solution for a RANLIB make problem
Date Wed, 05 Apr 2000 15:10:35 GMT
When no ranlib is found, the autoconf-provided check for ranlib which
APR uses sets RANLIB to a colon.

Certain make utilities get confused when they see stuff like

  RANLIB=:

in a makefile.  

The following patch changes APR to use a special no-colon check for
ranlib.  When there is no ranlib, it sets RANLIB to true.

Any better solutions?

Thanks,

Jeff

Index: aclocal.m4
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/aclocal.m4,v
retrieving revision 1.10
diff -u -r1.10 aclocal.m4
--- aclocal.m4  2000/01/16 20:00:49     1.10
+++ aclocal.m4  2000/04/05 15:09:20
@@ -188,4 +188,14 @@
 fi
 ])

+dnl
+dnl check for ranlib, but unlike the autoconf check, set RANLIB
+dnl to "true" instead of ":" if there is no ranlib command;
+dnl otherwise, our makefiles have to check what RANLIB is set
+dnl to
+dnl
+
+AC_DEFUN(AC_PROG_RANLIB_NC,
+[AC_CHECK_PROG(RANLIB, ranlib, ranlib, true)])
+
 sinclude(threads.m4)
Index: configure.in
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/configure.in,v
retrieving revision 1.64
diff -u -r1.64 configure.in
--- configure.in        2000/04/04 03:55:25     1.64
+++ configure.in        2000/04/05 15:09:20
@@ -26,7 +26,7 @@

 dnl # Checks for programs.
 AC_PROG_CC
-AC_PROG_RANLIB
+AC_PROG_RANLIB_NC
 AC_PROG_MAKE_SET
 AC_CHECK_PROG(RM, rm, rm)
 AC_CHECK_PROG(AR, ar, ar)

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message