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