Re: about cf.data.pre and squid compiling

From: Arthur Tumanyan <arthurtumanyan@dont-contact.us>
Date: Wed, 18 Jul 2007 11:05:34 -0700 (PDT)

Henrik Nordstrom-5 wrote:
>
> ons 2007-07-18 klockan 04:57 -0700 skrev Arthur Tumanyan:
>
>> Nothing was changed!Can anyone explain what's wrong?
>
> Hard to say without seeing your modifications. But I would guess you
> have added a #define which defines some word which is a bit too common..
>
> Regards
> Henrik
>
>
>
Here is changes I made:
----------------------------------------
configure.in:
AM_CONDITIONAL(ENABLE_SHAGA, false)
AC_ARG_ENABLE(shaga,
[ --enable-shaga Enable ShagaEngine support],
[ if test "$enableval" != "no"; then
    echo "ShagaEngine support enabled"
    AC_DEFINE(USE_SHAGA, 1, [Define this to include code for ShagaEngine.])
    AM_CONDITIONAL(ENABLE_SHAGA, true)
        CFLAGS="$CFLAGS -I/usr/local/include/mysql/ -L/usr/local/lib/mysql
-lmysqlclient"
fi
])
---------------------------------------
cf_gen_defines:
add define["USE_SHAGA"]="--enable-shaga"
---------------------------------------
Makefile.in:
ENABLE_SHAGA_TRUE = @ENABLE_SHAGA_TRUE@
ENABLE_SHAGA_FALSE = @ENABLE_SHAGA_FALSE@
---------------------------------------
src/Makefile.am:
if ENABLE_SHAGA
SHAGASOURCE = shaga.c
else
SHAGASOURCE =
endif
---------------------------------------
src/Makefile.in:
add the source and header file names
---------------------------------------
squid.h:
#if USE_SHAGA
#include "shaga.h"
#endif
----------------------------------------
The code is tested and working

-- 
View this message in context: http://www.nabble.com/about-cf.data.pre-and-squid-compiling-tf4044722.html#a11673899
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Wed Jul 18 2007 - 12:05:37 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:06 MDT