From: Marco van Wieringen Date: Wed, 21 Oct 2009 10:40:13 +0000 (+0200) Subject: Redirect errors to /dev/null and only run uname -p on Linux where X-Git-Tag: Release-7.0.0~2599^2~8^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=31cfa7d0e00b0086340b38ce1f0989da99557efd;p=bacula%2Fbacula Redirect errors to /dev/null and only run uname -p on Linux where we know it works. This is probably the most portable way of doing things. --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 932888cc32..2f1a7fe0b1 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -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