httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@ibm.net>
Subject 2.0 - sysctl needs path in src/lib/apr/shmem/unix/mm/config.guess
Date Mon, 28 Feb 2000 03:07:23 GMT
There was a lovely "sysctl : command not found" (or similar) message
littering my configure on FreeBSD.  Normally, /sbin isn't in PATH
unless running as root.

This patch calls sysctl with the path as in the shtool logic.  
Interestingly, there is another copy of config.guess a couple of 
directories up which is more similar to the official autoconf copy.
Certain parts of this config.guess, such as the FreeBSD logic, are
more similar to the shtool in that directory.

--- src/lib/apr/shmem/unix/mm/config.guess-old  Mon Sep 27 03:42:01 1999
+++ src/lib/apr/shmem/unix/mm/config.guess      Sun Feb 27 14:45:36 2000
@@ -581,7 +581,7 @@
     *:FreeBSD:*:*)
        # echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
         VERS=`echo ${UNAME_RELEASE} | sed -e 's/[-(].*//'`
-        MACH=`sysctl -n hw.model`
+        MACH=`/sbin/sysctl -n hw.model`
         ARCH='unknown'
         case ${MACH} in
            *386*       ) MACH="i386" ;;
-- 
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