libpalo2 build warning fixes

    libpalo2 build warning fixes

    Hi,

    I'm new to this forum, so please guide me if I'm in the wrong place / using the wrong process.

    In building libpalo2 on Fedora 21, I got a couple of warnings and an error that prevented the build completing. Following the prompts, I made a couple of updates to the build files which allowed the build to complete successfully. I've itemised the changes below and attached the updated build files (+ a .txt extension to allow them to be attached).

    It would be great if these could progress back into the code-base....

    Thanks and regards,
    Michael

    I executed the following commands:

    Source Code

    1. sudo yum install libtool
    2. <completed the build of libpalo_ng>
    3. cd ~/palo/code/molap/client_libraries/5.1/libpalo2
    4. aclocal
    5. automake
    6. autoconf
    7. libtoolize -f
    8. ./configure
    9. make


    Issue 1:: When running automake got the following warning:
    configure.ac:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
    configure.ac:14: gnu.org/software/automake/manu…T_005fAUTOMAKE-invocation

    Made the follwing changes to:
    ~/palo/code/molap/client_libraries/5.1/libpalo2/configure.ac

    Line 14 was changed from
    AM_INIT_AUTOMAKE(libpalo2,5.1)
    To
    AM_INIT_AUTOMAKE

    Issue 2: Got the following warning on ./configure
    configure.ac:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
    configure.ac:14: gnu.org/software/automake/manu…T_005fAUTOMAKE-invocation
    Makefile.am:8: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
    Makefile.am:18: warning: source file '../JedoxXlHelper/JedoxXLHelper.cpp' is in a subdirectory,
    Makefile.am:18: but option 'subdir-objects' is disabled

    Made the following changes to: ~/palo/code/molap/client_libraries/5.1/libpalo2/Makefile.am
    Between lines 6 and 7 added the line:
    AUTOMAKE_OPTIONS += subdir-objects
    Changed line 8 from:
    INCLUDES = -I../libpalo_ng/source/include -I../JedoxXlHelper
    To:
    AM_CPPFLAGS = -I../libpalo_ng/source/include
    AM_CPPFLAGS += -I../JedoxXlHelper
    Changed line 9 from:
    AM_CPPFLAGS = -std=c++0x -D__UNIX__ -D_MT
    To:
    AM_CPPFLAGS += -std=c++0x
    AM_CPPFLAGS += -D__UNIX__ -D_MT