* aclocal.m4: Regenerate.
[deliverable/binutils-gdb.git] / opcodes / aclocal.m4
CommitLineData
e20c0b3d 1dnl aclocal.m4 generated automatically by aclocal 1.4-p6
252b5132 2
2c73f9d8 3dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
252b5132
RH
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13sinclude(../bfd/acinclude.m4)
14
ac48eca1
AO
15dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
16dnl The lines below arrange for aclocal not to bring libtool.m4
17dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
18dnl to add a definition of LIBTOOL to Makefile.in.
19ifelse(yes,no,[
20AC_DEFUN([AM_PROG_LIBTOOL],)
21AC_DEFUN([AM_DISABLE_SHARED],)
22AC_SUBST(LIBTOOL)
23])
24
25dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
26ifelse(yes,no,[
27AC_DEFUN([CY_WITH_NLS],)
28AC_SUBST(INTLLIBS)
29])
30
81172ff2
AM
31dnl AM_INSTALL_LIBBFD already included in bfd/acinclude.m4
32ifelse(yes,no,[
33AC_DEFUN([AM_INSTALL_LIBBFD],)
34AC_SUBST(bfdlibdir)
35AC_SUBST(bfdincludedir)
36])
37
e20c0b3d
AM
38# isc-posix.m4 serial 2 (gettext-0.11.2)
39dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
40dnl This file is free software, distributed under the terms of the GNU
41dnl General Public License. As a special exception to the GNU General
42dnl Public License, this file may be distributed as part of a program
43dnl that contains a configuration script generated by Autoconf, under
44dnl the same distribution terms as the rest of that program.
45
46# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
47
75798298
NC
48# This test replaces the one in autoconf.
49# Currently this macro should have the same name as the autoconf macro
50# because gettext's gettext.m4 (distributed in the automake package)
51# still uses it. Otherwise, the use in gettext.m4 makes autoheader
52# give these diagnostics:
53# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
54# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
55
56undefine([AC_ISC_POSIX])
57
58AC_DEFUN([AC_ISC_POSIX],
59 [
60 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
61 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
62 ]
63)
64
252b5132
RH
65# Do all the work for Automake. This macro actually does too much --
66# some checks are only needed if your package does certain things.
67# But this isn't really a big deal.
68
69# serial 1
70
71dnl Usage:
72dnl AM_INIT_AUTOMAKE(package,version, [no-define])
73
2c73f9d8 74AC_DEFUN([AM_INIT_AUTOMAKE],
e20c0b3d
AM
75[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
76AC_REQUIRE([AC_PROG_INSTALL])
252b5132
RH
77PACKAGE=[$1]
78AC_SUBST(PACKAGE)
79VERSION=[$2]
80AC_SUBST(VERSION)
81dnl test to see if srcdir already configured
82if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
83 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
84fi
85ifelse([$3],,
86AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
88AC_REQUIRE([AM_SANITY_CHECK])
89AC_REQUIRE([AC_ARG_PROGRAM])
90dnl FIXME This is truly gross.
91missing_dir=`cd $ac_aux_dir && pwd`
e20c0b3d 92AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
252b5132 93AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
e20c0b3d 94AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
252b5132
RH
95AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
96AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
97AC_REQUIRE([AC_PROG_MAKE_SET])])
98
e20c0b3d
AM
99# Copyright 2002 Free Software Foundation, Inc.
100
101# This program is free software; you can redistribute it and/or modify
102# it under the terms of the GNU General Public License as published by
103# the Free Software Foundation; either version 2, or (at your option)
104# any later version.
105
106# This program is distributed in the hope that it will be useful,
107# but WITHOUT ANY WARRANTY; without even the implied warranty of
108# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
109# GNU General Public License for more details.
110
111# You should have received a copy of the GNU General Public License
112# along with this program; if not, write to the Free Software
113# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
114
115# AM_AUTOMAKE_VERSION(VERSION)
116# ----------------------------
117# Automake X.Y traces this macro to ensure aclocal.m4 has been
118# generated from the m4 files accompanying Automake X.Y.
119AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
120
121# AM_SET_CURRENT_AUTOMAKE_VERSION
122# -------------------------------
123# Call AM_AUTOMAKE_VERSION so it can be traced.
124# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
125AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
126 [AM_AUTOMAKE_VERSION([1.4-p6])])
127
252b5132
RH
128#
129# Check to make sure that the build environment is sane.
130#
131
2c73f9d8 132AC_DEFUN([AM_SANITY_CHECK],
252b5132
RH
133[AC_MSG_CHECKING([whether build environment is sane])
134# Just in case
135sleep 1
136echo timestamp > conftestfile
137# Do `set' in a subshell so we don't clobber the current shell's
138# arguments. Must try -L first in case configure is actually a
139# symlink; some systems play weird games with the mod time of symlinks
140# (eg FreeBSD returns the mod time of the symlink's containing
141# directory).
142if (
143 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
144 if test "[$]*" = "X"; then
145 # -L didn't work.
146 set X `ls -t $srcdir/configure conftestfile`
147 fi
148 if test "[$]*" != "X $srcdir/configure conftestfile" \
149 && test "[$]*" != "X conftestfile $srcdir/configure"; then
150
151 # If neither matched, then we have a broken ls. This can happen
152 # if, for instance, CONFIG_SHELL is bash and it inherits a
153 # broken ls alias from the environment. This has actually
154 # happened. Such a system could not be considered "sane".
155 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
156alias in your environment])
157 fi
158
159 test "[$]2" = conftestfile
160 )
161then
162 # Ok.
163 :
164else
165 AC_MSG_ERROR([newly created file is older than distributed files!
166Check your system clock])
167fi
168rm -f conftest*
169AC_MSG_RESULT(yes)])
170
171dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
172dnl The program must properly implement --version.
2c73f9d8 173AC_DEFUN([AM_MISSING_PROG],
252b5132
RH
174[AC_MSG_CHECKING(for working $2)
175# Run test in a subshell; some versions of sh will print an error if
176# an executable is not found, even if stderr is redirected.
177# Redirect stdin to placate older versions of autoconf. Sigh.
178if ($2 --version) < /dev/null > /dev/null 2>&1; then
179 $1=$2
180 AC_MSG_RESULT(found)
181else
182 $1="$3/missing $2"
183 AC_MSG_RESULT(missing)
184fi
185AC_SUBST($1)])
186
252b5132
RH
187# Like AC_CONFIG_HEADER, but automatically create stamp file.
188
2c73f9d8 189AC_DEFUN([AM_CONFIG_HEADER],
252b5132
RH
190[AC_PREREQ([2.12])
191AC_CONFIG_HEADER([$1])
192dnl When config.status generates a header, we must update the stamp-h file.
193dnl This file resides in the same directory as the config header
194dnl that is generated. We must strip everything past the first ":",
195dnl and everything past the last "/".
196AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
197ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
198<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
199<<am_indx=1
200for am_file in <<$1>>; do
201 case " <<$>>CONFIG_HEADERS " in
202 *" <<$>>am_file "*<<)>>
203 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
204 ;;
205 esac
206 am_indx=`expr "<<$>>am_indx" + 1`
207done<<>>dnl>>)
208changequote([,]))])
209
210# Add --enable-maintainer-mode option to configure.
211# From Jim Meyering
212
213# serial 1
214
2c73f9d8 215AC_DEFUN([AM_MAINTAINER_MODE],
252b5132
RH
216[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
217 dnl maintainer-mode is disabled by default
218 AC_ARG_ENABLE(maintainer-mode,
219[ --enable-maintainer-mode enable make rules and dependencies not useful
220 (and sometimes confusing) to the casual installer],
221 USE_MAINTAINER_MODE=$enableval,
222 USE_MAINTAINER_MODE=no)
223 AC_MSG_RESULT($USE_MAINTAINER_MODE)
224 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
225 MAINT=$MAINTAINER_MODE_TRUE
226 AC_SUBST(MAINT)dnl
227]
228)
229
230# Define a conditional.
231
2c73f9d8 232AC_DEFUN([AM_CONDITIONAL],
252b5132
RH
233[AC_SUBST($1_TRUE)
234AC_SUBST($1_FALSE)
235if $2; then
236 $1_TRUE=
237 $1_FALSE='#'
238else
239 $1_TRUE='#'
240 $1_FALSE=
241fi])
242
This page took 0.227806 seconds and 4 git commands to generate.