* aclocal.m4: Regenerate.
[deliverable/binutils-gdb.git] / opcodes / aclocal.m4
1 dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2
3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
12
13 sinclude(../bfd/acinclude.m4)
14
15 dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
16 dnl The lines below arrange for aclocal not to bring libtool.m4
17 dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
18 dnl to add a definition of LIBTOOL to Makefile.in.
19 ifelse(yes,no,[
20 AC_DEFUN([AM_PROG_LIBTOOL],)
21 AC_DEFUN([AM_DISABLE_SHARED],)
22 AC_SUBST(LIBTOOL)
23 ])
24
25 dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
26 ifelse(yes,no,[
27 AC_DEFUN([CY_WITH_NLS],)
28 AC_SUBST(INTLLIBS)
29 ])
30
31 dnl AM_INSTALL_LIBBFD already included in bfd/acinclude.m4
32 ifelse(yes,no,[
33 AC_DEFUN([AM_INSTALL_LIBBFD],)
34 AC_SUBST(bfdlibdir)
35 AC_SUBST(bfdincludedir)
36 ])
37
38 # isc-posix.m4 serial 2 (gettext-0.11.2)
39 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
40 dnl This file is free software, distributed under the terms of the GNU
41 dnl General Public License. As a special exception to the GNU General
42 dnl Public License, this file may be distributed as part of a program
43 dnl that contains a configuration script generated by Autoconf, under
44 dnl 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
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
56 undefine([AC_ISC_POSIX])
57
58 AC_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
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
71 dnl Usage:
72 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
73
74 AC_DEFUN([AM_INIT_AUTOMAKE],
75 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
76 AC_REQUIRE([AC_PROG_INSTALL])
77 PACKAGE=[$1]
78 AC_SUBST(PACKAGE)
79 VERSION=[$2]
80 AC_SUBST(VERSION)
81 dnl test to see if srcdir already configured
82 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
83 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
84 fi
85 ifelse([$3],,
86 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
88 AC_REQUIRE([AM_SANITY_CHECK])
89 AC_REQUIRE([AC_ARG_PROGRAM])
90 dnl FIXME This is truly gross.
91 missing_dir=`cd $ac_aux_dir && pwd`
92 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
93 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
94 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
95 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
96 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
97 AC_REQUIRE([AC_PROG_MAKE_SET])])
98
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.
119 AC_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.
125 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
126 [AM_AUTOMAKE_VERSION([1.4-p6])])
127
128 #
129 # Check to make sure that the build environment is sane.
130 #
131
132 AC_DEFUN([AM_SANITY_CHECK],
133 [AC_MSG_CHECKING([whether build environment is sane])
134 # Just in case
135 sleep 1
136 echo 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).
142 if (
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
156 alias in your environment])
157 fi
158
159 test "[$]2" = conftestfile
160 )
161 then
162 # Ok.
163 :
164 else
165 AC_MSG_ERROR([newly created file is older than distributed files!
166 Check your system clock])
167 fi
168 rm -f conftest*
169 AC_MSG_RESULT(yes)])
170
171 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
172 dnl The program must properly implement --version.
173 AC_DEFUN([AM_MISSING_PROG],
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.
178 if ($2 --version) < /dev/null > /dev/null 2>&1; then
179 $1=$2
180 AC_MSG_RESULT(found)
181 else
182 $1="$3/missing $2"
183 AC_MSG_RESULT(missing)
184 fi
185 AC_SUBST($1)])
186
187 # Like AC_CONFIG_HEADER, but automatically create stamp file.
188
189 AC_DEFUN([AM_CONFIG_HEADER],
190 [AC_PREREQ([2.12])
191 AC_CONFIG_HEADER([$1])
192 dnl When config.status generates a header, we must update the stamp-h file.
193 dnl This file resides in the same directory as the config header
194 dnl that is generated. We must strip everything past the first ":",
195 dnl and everything past the last "/".
196 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
197 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
198 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
199 <<am_indx=1
200 for 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`
207 done<<>>dnl>>)
208 changequote([,]))])
209
210 # Add --enable-maintainer-mode option to configure.
211 # From Jim Meyering
212
213 # serial 1
214
215 AC_DEFUN([AM_MAINTAINER_MODE],
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
232 AC_DEFUN([AM_CONDITIONAL],
233 [AC_SUBST($1_TRUE)
234 AC_SUBST($1_FALSE)
235 if $2; then
236 $1_TRUE=
237 $1_FALSE='#'
238 else
239 $1_TRUE='#'
240 $1_FALSE=
241 fi])
242
This page took 0.036502 seconds and 4 git commands to generate.