xref: /netbsd/external/gpl3/gdb/dist/sim/m32r/aclocal.m4 (revision 07163879)
1*07163879Schristos# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
248596154Schristos
3*07163879Schristos# Copyright (C) 1996-2017 Free Software Foundation, Inc.
4*07163879Schristos
548596154Schristos# This file is free software; the Free Software Foundation
648596154Schristos# gives unlimited permission to copy and/or distribute it,
748596154Schristos# with or without modifications, as long as this notice is preserved.
848596154Schristos
948596154Schristos# This program is distributed in the hope that it will be useful,
1048596154Schristos# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1148596154Schristos# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1248596154Schristos# PARTICULAR PURPOSE.
1348596154Schristos
14*07163879Schristosm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1548596154Schristos# AM_CONDITIONAL                                            -*- Autoconf -*-
1648596154Schristos
17*07163879Schristos# Copyright (C) 1997-2017 Free Software Foundation, Inc.
1848596154Schristos#
1948596154Schristos# This file is free software; the Free Software Foundation
2048596154Schristos# gives unlimited permission to copy and/or distribute it,
2148596154Schristos# with or without modifications, as long as this notice is preserved.
2248596154Schristos
2348596154Schristos# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2448596154Schristos# -------------------------------------
2548596154Schristos# Define a conditional.
2648596154SchristosAC_DEFUN([AM_CONDITIONAL],
27*07163879Schristos[AC_PREREQ([2.52])dnl
28*07163879Schristos m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
2948596154Schristos       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
3048596154SchristosAC_SUBST([$1_TRUE])dnl
3148596154SchristosAC_SUBST([$1_FALSE])dnl
3248596154Schristos_AM_SUBST_NOTMAKE([$1_TRUE])dnl
3348596154Schristos_AM_SUBST_NOTMAKE([$1_FALSE])dnl
3448596154Schristosm4_define([_AM_COND_VALUE_$1], [$2])dnl
3548596154Schristosif $2; then
3648596154Schristos  $1_TRUE=
3748596154Schristos  $1_FALSE='#'
3848596154Schristoselse
3948596154Schristos  $1_TRUE='#'
4048596154Schristos  $1_FALSE=
4148596154Schristosfi
4248596154SchristosAC_CONFIG_COMMANDS_PRE(
4348596154Schristos[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
4448596154Schristos  AC_MSG_ERROR([[conditional "$1" was never defined.
4548596154SchristosUsually this means the macro was only invoked conditionally.]])
4648596154Schristosfi])])
4748596154Schristos
48*07163879Schristos# Copyright (C) 2003-2017 Free Software Foundation, Inc.
4948596154Schristos#
5048596154Schristos# This file is free software; the Free Software Foundation
5148596154Schristos# gives unlimited permission to copy and/or distribute it,
5248596154Schristos# with or without modifications, as long as this notice is preserved.
5348596154Schristos
5448596154Schristos# Check whether the underlying file-system supports filenames
5548596154Schristos# with a leading dot.  For instance MS-DOS doesn't.
5648596154SchristosAC_DEFUN([AM_SET_LEADING_DOT],
5748596154Schristos[rm -rf .tst 2>/dev/null
5848596154Schristosmkdir .tst 2>/dev/null
5948596154Schristosif test -d .tst; then
6048596154Schristos  am__leading_dot=.
6148596154Schristoselse
6248596154Schristos  am__leading_dot=_
6348596154Schristosfi
6448596154Schristosrmdir .tst 2>/dev/null
6548596154SchristosAC_SUBST([am__leading_dot])])
6648596154Schristos
677af5a897Schristos# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
687af5a897Schristos# From Jim Meyering
697af5a897Schristos
70*07163879Schristos# Copyright (C) 1996-2017 Free Software Foundation, Inc.
717af5a897Schristos#
727af5a897Schristos# This file is free software; the Free Software Foundation
737af5a897Schristos# gives unlimited permission to copy and/or distribute it,
747af5a897Schristos# with or without modifications, as long as this notice is preserved.
757af5a897Schristos
767af5a897Schristos# AM_MAINTAINER_MODE([DEFAULT-MODE])
777af5a897Schristos# ----------------------------------
787af5a897Schristos# Control maintainer-specific portions of Makefiles.
79*07163879Schristos# Default is to disable them, unless 'enable' is passed literally.
80*07163879Schristos# For symmetry, 'disable' may be passed as well.  Anyway, the user
817af5a897Schristos# can override the default with the --enable/--disable switch.
827af5a897SchristosAC_DEFUN([AM_MAINTAINER_MODE],
837af5a897Schristos[m4_case(m4_default([$1], [disable]),
847af5a897Schristos       [enable], [m4_define([am_maintainer_other], [disable])],
857af5a897Schristos       [disable], [m4_define([am_maintainer_other], [enable])],
867af5a897Schristos       [m4_define([am_maintainer_other], [enable])
877af5a897Schristos        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
88*07163879SchristosAC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
897af5a897Schristos  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
907af5a897Schristos  AC_ARG_ENABLE([maintainer-mode],
91*07163879Schristos    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
92*07163879Schristos      am_maintainer_other[ make rules and dependencies not useful
93*07163879Schristos      (and sometimes confusing) to the casual installer])],
947af5a897Schristos    [USE_MAINTAINER_MODE=$enableval],
957af5a897Schristos    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
967af5a897Schristos  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
977af5a897Schristos  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
987af5a897Schristos  MAINT=$MAINTAINER_MODE_TRUE
997af5a897Schristos  AC_SUBST([MAINT])dnl
1007af5a897Schristos]
1017af5a897Schristos)
1027af5a897Schristos
103*07163879Schristos# Copyright (C) 2006-2017 Free Software Foundation, Inc.
10448596154Schristos#
10548596154Schristos# This file is free software; the Free Software Foundation
10648596154Schristos# gives unlimited permission to copy and/or distribute it,
10748596154Schristos# with or without modifications, as long as this notice is preserved.
10848596154Schristos
10948596154Schristos# _AM_SUBST_NOTMAKE(VARIABLE)
11048596154Schristos# ---------------------------
11148596154Schristos# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
11248596154Schristos# This macro is traced by Automake.
11348596154SchristosAC_DEFUN([_AM_SUBST_NOTMAKE])
11448596154Schristos
11548596154Schristos# AM_SUBST_NOTMAKE(VARIABLE)
116*07163879Schristos# --------------------------
11748596154Schristos# Public sister of _AM_SUBST_NOTMAKE.
11848596154SchristosAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
11948596154Schristos
120