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