Forum: CFEngine Help
Subject: Re: CFE 3.2.1 on AIX 7.1
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,23757,23773#msg-23773

Try using the provided autogen.sh script instead of configure.  Here's what I 
use on HP-UX 11i v3 with the HP-UX C/C++ compiler:


wilma:/home/root/cfengine-3.2.1# cat cfengine.src.install
BUILD_ROOT=/home/root
DEST_ROOT=/u06
#
# Cfengine
#
CFE_VERSION=3.2.1
CFE_SRC=cfengine-${CFE_VERSION}.tar.gz
CFE_DIR=${BUILD_ROOT}/cfengine-${CFE_VERSION}

./autogen.sh    --prefix="${DEST_ROOT}/cfengine-${CFE_VERSION}"         \
                --disable-shared                                        \
                CFLAGS="-Agcc -O -I/usr/local/include"                  \
                LDFLAGS="-L/usr/local/lib/hpux32"

[ $? -eq 0 ] || exit 1

for file in $(find . -name acinclude.m4)
do
    sed -e "s|-mthreads||" $file > /tmp/acinclude.m4.$$
    [ $? -eq 0 ] || exit 1
    mv /tmp/acinclude.m4.$$ $file
    [ $? -eq 0 ] || exit 1
done

gmake
[ $? -eq 0 ] || exit 1

gmake install
[ $? -eq 0 ] || exit 1


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to