]> git.sur5r.net Git - bacula/bacula/commitdiff
Redirect errors to /dev/null and only run uname -p on Linux where
authorMarco van Wieringen <mvw@planets.elm.net>
Wed, 21 Oct 2009 10:40:13 +0000 (12:40 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Wed, 21 Oct 2009 10:40:13 +0000 (12:40 +0200)
we know it works. This is probably the most portable way of doing things.

bacula/autoconf/configure.in

index 932888cc32dda44acf8b8f21a4e53547a417e54a..2f1a7fe0b109b8794853516391c9bbca03054c45 100644 (file)
@@ -225,8 +225,7 @@ dnl --includedir, we set it to the package default of /usr/include.
 dnl If either --prefix or --includedir is set, we leave includedir
 dnl alone except to eval it
 dnl ------------------------------------------------------------------
-os_name=`uname -s`
-os_processor=`uname -p`
+os_name=`uname -s 2>/dev/null`
 if test x${prefix} = xNONE ; then
    if test `eval echo ${sysconfdir}` = NONE/etc ; then
       sysconfdir=/etc/bacula
@@ -235,6 +234,7 @@ if test x${prefix} = xNONE ; then
    if test `eval echo ${libdir}` = NONE/lib ; then
       case ${os_name} in
       Linux)
+         os_processor=`uname -p 2>/dev/null`
          case ${os_processor} in
          x86_64)
             libdir=/usr/lib64