2001-09-23 23:34:56 +08:00
|
|
|
# AM_CONDITIONAL
|
|
|
|
|
|
|
|
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
# 02111-1307, USA.
|
|
|
|
|
Automake 1.5.
* Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
(AMTAR): Help automake define it.
(INSTALL, install-data-hook): The INSTALL.txt trick is no longer
needed, 1.5 can have a macro and a target with the same name.
* m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
* m4/strip.m4: New.
* m4/init.m4, m4/sanity.m4: Update.
* doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
* lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
* lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
* lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
2001-08-27 15:12:16 +08:00
|
|
|
# serial 3
|
|
|
|
|
|
|
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
|
|
# -------------------------------------
|
|
|
|
# Define a conditional.
|
|
|
|
#
|
|
|
|
# FIXME: Once using 2.50, use this:
|
|
|
|
# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
|
|
AC_DEFUN([AM_CONDITIONAL],
|
|
|
|
[ifelse([$1], [TRUE],
|
|
|
|
[errprint(__file__:__line__: [$0: invalid condition: $1
|
|
|
|
])dnl
|
|
|
|
m4exit(1)])dnl
|
|
|
|
ifelse([$1], [FALSE],
|
|
|
|
[errprint(__file__:__line__: [$0: invalid condition: $1
|
|
|
|
])dnl
|
|
|
|
m4exit(1)])dnl
|
|
|
|
AC_SUBST([$1_TRUE])
|
|
|
|
AC_SUBST([$1_FALSE])
|
|
|
|
if $2; then
|
|
|
|
$1_TRUE=
|
|
|
|
$1_FALSE='#'
|
|
|
|
else
|
|
|
|
$1_TRUE='#'
|
|
|
|
$1_FALSE=
|
|
|
|
fi])
|