include: Sync with GCC
[deliverable/binutils-gdb.git] / gdb / gdbserver / aclocal.m4
CommitLineData
0feedb2c 1# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
84563040 2
3db0444b 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
81ecdfbb 4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
dcdb98d2
DJ
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
84563040 8
dcdb98d2
DJ
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
84563040 13
c9a1864a
YQ
14# AM_CONDITIONAL -*- Autoconf -*-
15
16# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
17# Free Software Foundation, Inc.
18#
19# This file is free software; the Free Software Foundation
20# gives unlimited permission to copy and/or distribute it,
21# with or without modifications, as long as this notice is preserved.
22
23# serial 9
24
25# AM_CONDITIONAL(NAME, SHELL-CONDITION)
26# -------------------------------------
27# Define a conditional.
28AC_DEFUN([AM_CONDITIONAL],
29[AC_PREREQ(2.52)dnl
30 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
31 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
32AC_SUBST([$1_TRUE])dnl
33AC_SUBST([$1_FALSE])dnl
34_AM_SUBST_NOTMAKE([$1_TRUE])dnl
35_AM_SUBST_NOTMAKE([$1_FALSE])dnl
36m4_define([_AM_COND_VALUE_$1], [$2])dnl
37if $2; then
38 $1_TRUE=
39 $1_FALSE='#'
40else
41 $1_TRUE='#'
42 $1_FALSE=
43fi
44AC_CONFIG_COMMANDS_PRE(
45[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
46 AC_MSG_ERROR([[conditional "$1" was never defined.
47Usually this means the macro was only invoked conditionally.]])
48fi])])
49
c9a1864a
YQ
50# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
51# From Jim Meyering
52
53# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
54# Free Software Foundation, Inc.
55#
56# This file is free software; the Free Software Foundation
57# gives unlimited permission to copy and/or distribute it,
58# with or without modifications, as long as this notice is preserved.
59
60# serial 5
61
62# AM_MAINTAINER_MODE([DEFAULT-MODE])
63# ----------------------------------
64# Control maintainer-specific portions of Makefiles.
65# Default is to disable them, unless `enable' is passed literally.
66# For symmetry, `disable' may be passed as well. Anyway, the user
67# can override the default with the --enable/--disable switch.
68AC_DEFUN([AM_MAINTAINER_MODE],
69[m4_case(m4_default([$1], [disable]),
70 [enable], [m4_define([am_maintainer_other], [disable])],
71 [disable], [m4_define([am_maintainer_other], [enable])],
72 [m4_define([am_maintainer_other], [enable])
73 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
74AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
75 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
76 AC_ARG_ENABLE([maintainer-mode],
77[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
78 (and sometimes confusing) to the casual installer],
79 [USE_MAINTAINER_MODE=$enableval],
80 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
81 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
82 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
83 MAINT=$MAINTAINER_MODE_TRUE
84 AC_SUBST([MAINT])dnl
85]
86)
87
88AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
89
c9a1864a
YQ
90# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
91#
92# This file is free software; the Free Software Foundation
93# gives unlimited permission to copy and/or distribute it,
94# with or without modifications, as long as this notice is preserved.
95
96# serial 2
97
98# _AM_SUBST_NOTMAKE(VARIABLE)
99# ---------------------------
100# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
101# This macro is traced by Automake.
102AC_DEFUN([_AM_SUBST_NOTMAKE])
103
104# AM_SUBST_NOTMAKE(VARIABLE)
105# ---------------------------
106# Public sister of _AM_SUBST_NOTMAKE.
107AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
108
dcdb98d2 109m4_include([acinclude.m4])
This page took 1.190275 seconds and 4 git commands to generate.