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