Leonard den Ottolander wrote:
Hi Pavel,

On Tue, 2005-09-27 at 20:39 +0200, Pavel Tsekov wrote:

Bootstrap the code and see the generated configure file. Similiar construct
is used but in different context. I told you many times - you are too fast,
too eager.


I didn't say this patch was perfect yet. Looking for some feedback to
improve it. Sorry for not posting the correct patch immediately.

configure, make distcheck and a consequent build after configure
--with-screen=mcslang2 is fine (assuming the correct patch is applied,
which still awaits moderator approval, but you got it already).

Please explain to me why the first use of #if SLANG_VERSION is invalid,
but the second isn't. And what am I supposed to see in the configure
script that needs correction?

AC_DEFUN([MC_SLANG_PRIVATE], [
    AC_CACHE_CHECK([if S-Lang exports private functions],
                   [mc_cv_slang_private], [
        ac_save_LIBS="$LIBS"
        #if SLANG_VERSION < 20000
        LIBS="$LIBS -lslang"
        #else
        LIBS="$LIBS -lslang2"
        #endif

As Pavel already said, you are writing shell programs here. So the #if, #else and #endif are actually comments. Your linker will most likely have "-lslang -lslang2" somewhere in its command line.

Roland
_______________________________________________
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel

Reply via email to