Changeset 9def87a for aclocal.m4


Ignore:
Timestamp:
Dec 8, 2016, 5:44:46 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
164d036
Parents:
57f408e
Message:

Added macros to select build target in configure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r57f408e r9def87a  
    135135# expand $ac_aux_dir to an absolute path
    136136am_aux_dir=`cd $ac_aux_dir && pwd`
     137])
     138
     139# AM_COND_IF                                            -*- Autoconf -*-
     140
     141# Copyright (C) 2008, 2010 Free Software Foundation, Inc.
     142#
     143# This file is free software; the Free Software Foundation
     144# gives unlimited permission to copy and/or distribute it,
     145# with or without modifications, as long as this notice is preserved.
     146
     147# serial 3
     148
     149# _AM_COND_IF
     150# _AM_COND_ELSE
     151# _AM_COND_ENDIF
     152# --------------
     153# These macros are only used for tracing.
     154m4_define([_AM_COND_IF])
     155m4_define([_AM_COND_ELSE])
     156m4_define([_AM_COND_ENDIF])
     157
     158
     159# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
     160# ---------------------------------------
     161# If the shell condition COND is true, execute IF-TRUE, otherwise execute
     162# IF-FALSE.  Allow automake to learn about conditional instantiating macros
     163# (the AC_CONFIG_FOOS).
     164AC_DEFUN([AM_COND_IF],
     165[m4_ifndef([_AM_COND_VALUE_$1],
     166           [m4_fatal([$0: no such condition "$1"])])dnl
     167_AM_COND_IF([$1])dnl
     168if test -z "$$1_TRUE"; then :
     169  m4_n([$2])[]dnl
     170m4_ifval([$3],
     171[_AM_COND_ELSE([$1])dnl
     172else
     173  $3
     174])dnl
     175_AM_COND_ENDIF([$1])dnl
     176fi[]dnl
    137177])
    138178
Note: See TracChangeset for help on using the changeset viewer.