quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

xc-am-iface.m4 (2680B)


      1 #---------------------------------------------------------------------------
      2 #
      3 # xc-am-iface.m4
      4 #
      5 # Copyright (C) Daniel Stenberg, <daniel@haxx.se>
      6 #
      7 # Permission to use, copy, modify, and distribute this software for any
      8 # purpose with or without fee is hereby granted, provided that the above
      9 # copyright notice and this permission notice appear in all copies.
     10 #
     11 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     12 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     13 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     14 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     15 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     16 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     17 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     18 #
     19 # SPDX-License-Identifier: ISC
     20 #
     21 #---------------------------------------------------------------------------
     22 
     23 # serial 1
     24 
     25 
     26 dnl _XC_AUTOMAKE_BODY
     27 dnl -------------------------------------------------
     28 dnl Private macro.
     29 dnl
     30 dnl This macro performs embedding of automake initialization
     31 dnl code into configure script. When automake version 1.14 or
     32 dnl newer is used at configure script generation time, this
     33 dnl results in 'subdir-objects' automake option being used.
     34 dnl When using automake versions older than 1.14 this option
     35 dnl is not used when generating configure script.
     36 dnl
     37 dnl Existence of automake _AM_PROG_CC_C_O m4 private macro
     38 dnl is used to differentiate automake version 1.14 from older
     39 dnl ones which lack this macro.
     40 
     41 m4_define([_XC_AUTOMAKE_BODY],
     42 [dnl
     43 ## --------------------------------------- ##
     44 ##  Start of automake initialization code  ##
     45 ## --------------------------------------- ##
     46 m4_ifdef([_AM_PROG_CC_C_O],
     47 [
     48 AM_INIT_AUTOMAKE([subdir-objects])
     49 ],[
     50 AM_INIT_AUTOMAKE
     51 ])dnl
     52 ## ------------------------------------- ##
     53 ##  End of automake initialization code  ##
     54 ## ------------------------------------- ##
     55 dnl
     56 m4_define([$0], [])[]dnl
     57 ])
     58 
     59 
     60 dnl XC_AUTOMAKE
     61 dnl -------------------------------------------------
     62 dnl Public macro.
     63 dnl
     64 dnl This macro embeds automake machinery into configure
     65 dnl script regardless of automake version used in order
     66 dnl to generate configure script.
     67 dnl
     68 dnl When using automake version 1.14 or newer, automake
     69 dnl initialization option 'subdir-objects' is used to
     70 dnl generate the configure script, otherwise this option
     71 dnl is not used.
     72 
     73 AC_DEFUN([XC_AUTOMAKE],
     74 [dnl
     75 AC_PREREQ([2.50])dnl
     76 dnl
     77 AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
     78 dnl
     79 _XC_AUTOMAKE_BODY
     80 dnl
     81 m4_ifdef([AM_INIT_AUTOMAKE],
     82   [m4_undefine([AM_INIT_AUTOMAKE])])dnl
     83 dnl
     84 m4_define([$0], [])[]dnl
     85 ])