Re: Reusing the product of AC_LANG_PROGRAM().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tuesday 25 May 2010, Václav Haisman <v.haisman@xxxxxxxxxx> wrote:
> Hi.
> 
> Is it possible to reuse whatever AC_LANG_PROGRAM() produces?
I'm not an expert about this macro. but I'd do something like this:

  m4_define([MY_PROLOGUE], [whatever])
  m4_define([MY_BODY], [whatever2])
  m4_define([MY_PROGRAM], [AC_LANG_PROGRAM([MY_PROLOGUE], [MY_BODY])])
  ...
  AC_LINK_IFELSE([MY_PROGRAM], [action-if-true], [action-if-false])
  if <not cross compiling>; then
    AC_RUN_IFELSE([MY_PROGRAM], [action-if-true], [action-if-false])
  fi

HTH,
   Stefano

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux