[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Q] Script-wide default value
From: |
zaufi |
Subject: |
Re: [Q] Script-wide default value |
Date: |
Fri, 18 Nov 2005 01:11:29 +0300 |
User-agent: |
KMail/1.8.3 |
Oops! I'm stupid lamo :) -- example is incorrect... and actualy works :)
actually I'm on autoconf hacking and described macro should be in autoconf
package (not in acinclude.m4), but I still want to change it behaviour from
configure.ac in described way... and it is really wont work :((
On Friday 18 November 2005 00:59, address@hidden wrote:
> Hi list! (especialy autoconf developers ;)
>
>
> I'm trying to write some macro with ability to change its default behaviour
> via redefine 'global' variable. My acinclude.m4 contain my macro definition
> like this:
>
> AC_DEFUN([AX_MEGA],
> [m4_ifdef([AC_DEFAULT_MEGA_ARG], [AC_DEFAULT_MEGA_ARG], [default
> value])])
>
> and configure.ac wants to redefine default value:
>
> dnl Redefine default value hardcoded in macro
> m4_define([AS_DEFAULT_MEGA_ARG], [from configure script])
> AC_INIT([test],[1.0])
> AC_MSG_CHECKING([for MEGA argument])
>
> dnl Call my macro
> AC_MSG_RESULT(AX_MEGA)
>
> AC_OUTPUT
>
> ---
> As u may guess the problem is that it won't be redefined :(
> zaufi autoconf-test # ./configure
> checking for MEGA argument... default value
> configure: creating ./config.status
>
> it still equal to 'default value' instead of 'from configure script' :((
>
> any ideas how to find the right way???
>
> Regards.
> Zaufi