diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index c1193c6..98a7024 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(ipmiutil,2.9.5) +AC_INIT(ipmiutil,2.9.6) AC_CONFIG_SRCDIR(util/ipmiutil.c) echo "ipmiutil version ${PACKAGE_VERSION}" AM_CONFIG_HEADER(config.h) @@ -50,6 +50,7 @@ fi tmpspec=/tmp/iuspec.tmp$$ archm=`uname -m` +archp=`uname -p` sysname=`uname -s` LIB_DIR="/usr/lib" isredhat=0 @@ -280,7 +281,7 @@ init0= if test "x$sysname" = "xSunOS"; then echo "Detected Solaris" os=solaris - archp=`uname -p` + # archp=`uname -p` if test -d "/usr/sfw/lib"; then sfwdir=/usr/sfw else @@ -391,30 +392,40 @@ else OS_CFLAGS="-DLINUX $MD2_CFLAGS -fPIC $cfwarn $cfhard" else # usually "x$sysname" = "xFreeBSD", but allow NetBSD - echo $sysname | grep BSD >/dev/null 2>&1 - if test $? -eq 0; then + # echo $sysname | grep 'BSD' >/dev/null 2>&1 + macos=1 + echo $sysname | grep -q BSD + bsd=$? + if test "x$sysname" = "xDarwin" ; then + if test "$archp" = "powerpc" ; then + macos=0 + else + bsd=0 + fi + fi + uname -a | grep -i HP-UX >/dev/null 2>&1 + hpux=$? + if test $bsd -eq 0; then os=bsd OS_CFLAGS="-DBSD -fPIC" OS_LFLAGS="" OS_DRIVERS="ipmimv.c ipmidir.c" drivers="open direct" else - uname -a | grep -i HP-UX >/dev/null 2>&1 - hpux=$? if test $hpux -eq 0; then echo "Detected HP-UX" os=hpux MD2_CFLAGS="-DSKIP_MD2" - OS_CFLAGS="-DHPUX" + OS_CFLAGS="-DHPUX $MD2_CFLAGS" OS_LFLAGS="" OS_DRIVERS="ipmimv.c" drivers="open" SHR_LINK="" - elif test "x$sysname" = "xDarwin" ; then + elif test $macos -eq 0; then echo "Detected MacOSX" os=macos MD2_CFLAGS="-DSKIP_MD2" - OS_CFLAGS="-DMACOS" + OS_CFLAGS="-DMACOS $MD2_CFLAGS -fPIC" OS_LFLAGS="" OS_DRIVERS="ipmimv.c ipmidir.c" drivers="open direct" |