| 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 | dnl See whether we need to use fopen-bin.h rather than fopen-same.h. | 
|---|
| 14 | AC_DEFUN(BFD_BINARY_FOPEN, | 
|---|
| 15 | [AC_REQUIRE([AC_CANONICAL_SYSTEM]) | 
|---|
| 16 | case "${host}" in | 
|---|
| 17 | changequote(,)dnl | 
|---|
| 18 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*) | 
|---|
| 19 | changequote([,])dnl | 
|---|
| 20 | AC_DEFINE(USE_BINARY_FOPEN, 1, [Use b modifier when opening binary files?]) ;; | 
|---|
| 21 | esac])dnl | 
|---|
| 22 |  | 
|---|
| 23 | dnl Get a default for CC_FOR_BUILD to put into Makefile. | 
|---|
| 24 | AC_DEFUN(BFD_CC_FOR_BUILD, | 
|---|
| 25 | [# Put a plausible default for CC_FOR_BUILD in Makefile. | 
|---|
| 26 | if test -z "$CC_FOR_BUILD"; then | 
|---|
| 27 | if test "x$cross_compiling" = "xno"; then | 
|---|
| 28 | CC_FOR_BUILD='$(CC)' | 
|---|
| 29 | else | 
|---|
| 30 | CC_FOR_BUILD=gcc | 
|---|
| 31 | fi | 
|---|
| 32 | fi | 
|---|
| 33 | AC_SUBST(CC_FOR_BUILD) | 
|---|
| 34 | # Also set EXEEXT_FOR_BUILD. | 
|---|
| 35 | if test "x$cross_compiling" = "xno"; then | 
|---|
| 36 | EXEEXT_FOR_BUILD='$(EXEEXT)' | 
|---|
| 37 | else | 
|---|
| 38 | AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext, | 
|---|
| 39 | [rm -f conftest* | 
|---|
| 40 | echo 'int main () { return 0; }' > conftest.c | 
|---|
| 41 | bfd_cv_build_exeext= | 
|---|
| 42 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | 
|---|
| 43 | for file in conftest.*; do | 
|---|
| 44 | case $file in | 
|---|
| 45 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | 
|---|
| 46 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 47 | esac | 
|---|
| 48 | done | 
|---|
| 49 | rm -f conftest* | 
|---|
| 50 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no]) | 
|---|
| 51 | EXEEXT_FOR_BUILD="" | 
|---|
| 52 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | 
|---|
| 53 | fi | 
|---|
| 54 | AC_SUBST(EXEEXT_FOR_BUILD)])dnl | 
|---|
| 55 |  | 
|---|
| 56 | dnl See whether we need a declaration for a function. | 
|---|
| 57 | AC_DEFUN(BFD_NEED_DECLARATION, | 
|---|
| 58 | [AC_MSG_CHECKING([whether $1 must be declared]) | 
|---|
| 59 | AC_CACHE_VAL(bfd_cv_decl_needed_$1, | 
|---|
| 60 | [AC_TRY_COMPILE([ | 
|---|
| 61 | #include <stdio.h> | 
|---|
| 62 | #ifdef HAVE_STRING_H | 
|---|
| 63 | #include <string.h> | 
|---|
| 64 | #else | 
|---|
| 65 | #ifdef HAVE_STRINGS_H | 
|---|
| 66 | #include <strings.h> | 
|---|
| 67 | #endif | 
|---|
| 68 | #endif | 
|---|
| 69 | #ifdef HAVE_STDLIB_H | 
|---|
| 70 | #include <stdlib.h> | 
|---|
| 71 | #endif | 
|---|
| 72 | #ifdef HAVE_UNISTD_H | 
|---|
| 73 | #include <unistd.h> | 
|---|
| 74 | #endif], | 
|---|
| 75 | [char *(*pfn) = (char *(*)) $1], | 
|---|
| 76 | bfd_cv_decl_needed_$1=no, bfd_cv_decl_needed_$1=yes)]) | 
|---|
| 77 | AC_MSG_RESULT($bfd_cv_decl_needed_$1) | 
|---|
| 78 | if test $bfd_cv_decl_needed_$1 = yes; then | 
|---|
| 79 | AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), 1, | 
|---|
| 80 | [Define if $1 is not declared in system header files.]) | 
|---|
| 81 | fi | 
|---|
| 82 | ])dnl | 
|---|
| 83 |  | 
|---|
| 84 | dnl Check for existence of a type $1 in sys/procfs.h | 
|---|
| 85 |  | 
|---|
| 86 | AC_DEFUN(BFD_HAVE_SYS_PROCFS_TYPE, | 
|---|
| 87 | [AC_MSG_CHECKING([for $1 in sys/procfs.h]) | 
|---|
| 88 | AC_CACHE_VAL(bfd_cv_have_sys_procfs_type_$1, | 
|---|
| 89 | [AC_TRY_COMPILE([ | 
|---|
| 90 | #define _SYSCALL32 | 
|---|
| 91 | #include <sys/procfs.h>], | 
|---|
| 92 | [$1 avar], | 
|---|
| 93 | bfd_cv_have_sys_procfs_type_$1=yes, | 
|---|
| 94 | bfd_cv_have_sys_procfs_type_$1=no | 
|---|
| 95 | )]) | 
|---|
| 96 | if test $bfd_cv_have_sys_procfs_type_$1 = yes; then | 
|---|
| 97 | AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1, | 
|---|
| 98 | [Define if <sys/procfs.h> has $1.]) | 
|---|
| 99 | fi | 
|---|
| 100 | AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_$1) | 
|---|
| 101 | ]) | 
|---|
| 102 |  | 
|---|
| 103 |  | 
|---|
| 104 | dnl Check for existence of member $2 in type $1 in sys/procfs.h | 
|---|
| 105 |  | 
|---|
| 106 | AC_DEFUN(BFD_HAVE_SYS_PROCFS_TYPE_MEMBER, | 
|---|
| 107 | [AC_MSG_CHECKING([for $1.$2 in sys/procfs.h]) | 
|---|
| 108 | AC_CACHE_VAL(bfd_cv_have_sys_procfs_type_member_$1_$2, | 
|---|
| 109 | [AC_TRY_COMPILE([ | 
|---|
| 110 | #define _SYSCALL32 | 
|---|
| 111 | #include <sys/procfs.h>], | 
|---|
| 112 | [$1 avar; void* aref = (void*) &avar.$2], | 
|---|
| 113 | bfd_cv_have_sys_procfs_type_member_$1_$2=yes, | 
|---|
| 114 | bfd_cv_have_sys_procfs_type_member_$1_$2=no | 
|---|
| 115 | )]) | 
|---|
| 116 | if test $bfd_cv_have_sys_procfs_type_member_$1_$2 = yes; then | 
|---|
| 117 | AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z])[_]translit($2, [a-z], [A-Z]), 1, | 
|---|
| 118 | [Define if <sys/procfs.h> has $1.$2.]) | 
|---|
| 119 | fi | 
|---|
| 120 | AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2) | 
|---|
| 121 | ]) | 
|---|
| 122 |  | 
|---|
| 123 | sinclude(../libtool.m4) | 
|---|
| 124 | dnl The lines below arrange for aclocal not to bring libtool.m4 | 
|---|
| 125 | dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake | 
|---|
| 126 | dnl to add a definition of LIBTOOL to Makefile.in. | 
|---|
| 127 | ifelse(yes,no,[ | 
|---|
| 128 | AC_DEFUN([AM_PROG_LIBTOOL],) | 
|---|
| 129 | AC_DEFUN([AM_DISABLE_SHARED],) | 
|---|
| 130 | AC_SUBST(LIBTOOL) | 
|---|
| 131 | ]) | 
|---|
| 132 |  | 
|---|
| 133 | sinclude(../gettext.m4) | 
|---|
| 134 | ifelse(yes,no,[ | 
|---|
| 135 | AC_DEFUN([CY_WITH_NLS],) | 
|---|
| 136 | AC_SUBST(INTLLIBS) | 
|---|
| 137 | ]) | 
|---|
| 138 |  | 
|---|
| 139 | AC_DEFUN([AM_INSTALL_LIBBFD], | 
|---|
| 140 | [AC_MSG_CHECKING([whether to install libbfd]) | 
|---|
| 141 | AC_ARG_ENABLE(install-libbfd, | 
|---|
| 142 | [  --enable-install-libbfd controls installation of libbfd and related headers], | 
|---|
| 143 | install_libbfd_p=$enableval, | 
|---|
| 144 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then | 
|---|
| 145 | install_libbfd_p=yes | 
|---|
| 146 | else | 
|---|
| 147 | install_libbfd_p=no | 
|---|
| 148 | fi) | 
|---|
| 149 | AC_MSG_RESULT($install_libbfd_p) | 
|---|
| 150 | AM_CONDITIONAL(INSTALL_LIBBFD, test $install_libbfd_p = yes) | 
|---|
| 151 | # libbfd.a is a host library containing target dependent code | 
|---|
| 152 | bfdlibdir='$(libdir)' | 
|---|
| 153 | bfdincludedir='$(includedir)' | 
|---|
| 154 | if test "${host}" != "${target}"; then | 
|---|
| 155 | bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib' | 
|---|
| 156 | bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include' | 
|---|
| 157 | fi | 
|---|
| 158 | AC_SUBST(bfdlibdir) | 
|---|
| 159 | AC_SUBST(bfdincludedir) | 
|---|
| 160 | ] | 
|---|
| 161 | ) | 
|---|
| 162 |  | 
|---|
| 163 | # Define a conditional. | 
|---|
| 164 |  | 
|---|
| 165 | AC_DEFUN([AM_CONDITIONAL], | 
|---|
| 166 | [AC_SUBST($1_TRUE) | 
|---|
| 167 | AC_SUBST($1_FALSE) | 
|---|
| 168 | if $2; then | 
|---|
| 169 | $1_TRUE= | 
|---|
| 170 | $1_FALSE='#' | 
|---|
| 171 | else | 
|---|
| 172 | $1_TRUE='#' | 
|---|
| 173 | $1_FALSE= | 
|---|
| 174 | fi]) | 
|---|
| 175 |  | 
|---|
| 176 | # Do all the work for Automake.  This macro actually does too much -- | 
|---|
| 177 | # some checks are only needed if your package does certain things. | 
|---|
| 178 | # But this isn't really a big deal. | 
|---|
| 179 |  | 
|---|
| 180 | # serial 1 | 
|---|
| 181 |  | 
|---|
| 182 | dnl Usage: | 
|---|
| 183 | dnl AM_INIT_AUTOMAKE(package,version, [no-define]) | 
|---|
| 184 |  | 
|---|
| 185 | AC_DEFUN([AM_INIT_AUTOMAKE], | 
|---|
| 186 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 
|---|
| 187 | AC_REQUIRE([AC_PROG_INSTALL]) | 
|---|
| 188 | PACKAGE=[$1] | 
|---|
| 189 | AC_SUBST(PACKAGE) | 
|---|
| 190 | VERSION=[$2] | 
|---|
| 191 | AC_SUBST(VERSION) | 
|---|
| 192 | dnl test to see if srcdir already configured | 
|---|
| 193 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | 
|---|
| 194 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | 
|---|
| 195 | fi | 
|---|
| 196 | ifelse([$3],, | 
|---|
| 197 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | 
|---|
| 198 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) | 
|---|
| 199 | AC_REQUIRE([AM_SANITY_CHECK]) | 
|---|
| 200 | AC_REQUIRE([AC_ARG_PROGRAM]) | 
|---|
| 201 | dnl FIXME This is truly gross. | 
|---|
| 202 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 203 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) | 
|---|
| 204 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | 
|---|
| 205 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) | 
|---|
| 206 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | 
|---|
| 207 | AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) | 
|---|
| 208 | AC_REQUIRE([AC_PROG_MAKE_SET])]) | 
|---|
| 209 |  | 
|---|
| 210 | # Copyright 2002  Free Software Foundation, Inc. | 
|---|
| 211 |  | 
|---|
| 212 | # This program is free software; you can redistribute it and/or modify | 
|---|
| 213 | # it under the terms of the GNU General Public License as published by | 
|---|
| 214 | # the Free Software Foundation; either version 2, or (at your option) | 
|---|
| 215 | # any later version. | 
|---|
| 216 |  | 
|---|
| 217 | # This program is distributed in the hope that it will be useful, | 
|---|
| 218 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 219 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 220 | # GNU General Public License for more details. | 
|---|
| 221 |  | 
|---|
| 222 | # You should have received a copy of the GNU General Public License | 
|---|
| 223 | # along with this program; if not, write to the Free Software | 
|---|
| 224 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 
|---|
| 225 |  | 
|---|
| 226 | # AM_AUTOMAKE_VERSION(VERSION) | 
|---|
| 227 | # ---------------------------- | 
|---|
| 228 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | 
|---|
| 229 | # generated from the m4 files accompanying Automake X.Y. | 
|---|
| 230 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) | 
|---|
| 231 |  | 
|---|
| 232 | # AM_SET_CURRENT_AUTOMAKE_VERSION | 
|---|
| 233 | # ------------------------------- | 
|---|
| 234 | # Call AM_AUTOMAKE_VERSION so it can be traced. | 
|---|
| 235 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | 
|---|
| 236 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 
|---|
| 237 | [AM_AUTOMAKE_VERSION([1.4-p6])]) | 
|---|
| 238 |  | 
|---|
| 239 | # | 
|---|
| 240 | # Check to make sure that the build environment is sane. | 
|---|
| 241 | # | 
|---|
| 242 |  | 
|---|
| 243 | AC_DEFUN([AM_SANITY_CHECK], | 
|---|
| 244 | [AC_MSG_CHECKING([whether build environment is sane]) | 
|---|
| 245 | # Just in case | 
|---|
| 246 | sleep 1 | 
|---|
| 247 | echo timestamp > conftestfile | 
|---|
| 248 | # Do `set' in a subshell so we don't clobber the current shell's | 
|---|
| 249 | # arguments.  Must try -L first in case configure is actually a | 
|---|
| 250 | # symlink; some systems play weird games with the mod time of symlinks | 
|---|
| 251 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|---|
| 252 | # directory). | 
|---|
| 253 | if ( | 
|---|
| 254 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | 
|---|
| 255 | if test "[$]*" = "X"; then | 
|---|
| 256 | # -L didn't work. | 
|---|
| 257 | set X `ls -t $srcdir/configure conftestfile` | 
|---|
| 258 | fi | 
|---|
| 259 | if test "[$]*" != "X $srcdir/configure conftestfile" \ | 
|---|
| 260 | && test "[$]*" != "X conftestfile $srcdir/configure"; then | 
|---|
| 261 |  | 
|---|
| 262 | # If neither matched, then we have a broken ls.  This can happen | 
|---|
| 263 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|---|
| 264 | # broken ls alias from the environment.  This has actually | 
|---|
| 265 | # happened.  Such a system could not be considered "sane". | 
|---|
| 266 | AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken | 
|---|
| 267 | alias in your environment]) | 
|---|
| 268 | fi | 
|---|
| 269 |  | 
|---|
| 270 | test "[$]2" = conftestfile | 
|---|
| 271 | ) | 
|---|
| 272 | then | 
|---|
| 273 | # Ok. | 
|---|
| 274 | : | 
|---|
| 275 | else | 
|---|
| 276 | AC_MSG_ERROR([newly created file is older than distributed files! | 
|---|
| 277 | Check your system clock]) | 
|---|
| 278 | fi | 
|---|
| 279 | rm -f conftest* | 
|---|
| 280 | AC_MSG_RESULT(yes)]) | 
|---|
| 281 |  | 
|---|
| 282 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) | 
|---|
| 283 | dnl The program must properly implement --version. | 
|---|
| 284 | AC_DEFUN([AM_MISSING_PROG], | 
|---|
| 285 | [AC_MSG_CHECKING(for working $2) | 
|---|
| 286 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 287 | # an executable is not found, even if stderr is redirected. | 
|---|
| 288 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 289 | if ($2 --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 290 | $1=$2 | 
|---|
| 291 | AC_MSG_RESULT(found) | 
|---|
| 292 | else | 
|---|
| 293 | $1="$3/missing $2" | 
|---|
| 294 | AC_MSG_RESULT(missing) | 
|---|
| 295 | fi | 
|---|
| 296 | AC_SUBST($1)]) | 
|---|
| 297 |  | 
|---|
| 298 | # Like AC_CONFIG_HEADER, but automatically create stamp file. | 
|---|
| 299 |  | 
|---|
| 300 | AC_DEFUN([AM_CONFIG_HEADER], | 
|---|
| 301 | [AC_PREREQ([2.12]) | 
|---|
| 302 | AC_CONFIG_HEADER([$1]) | 
|---|
| 303 | dnl When config.status generates a header, we must update the stamp-h file. | 
|---|
| 304 | dnl This file resides in the same directory as the config header | 
|---|
| 305 | dnl that is generated.  We must strip everything past the first ":", | 
|---|
| 306 | dnl and everything past the last "/". | 
|---|
| 307 | AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl | 
|---|
| 308 | ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, | 
|---|
| 309 | <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, | 
|---|
| 310 | <<am_indx=1 | 
|---|
| 311 | for am_file in <<$1>>; do | 
|---|
| 312 | case " <<$>>CONFIG_HEADERS " in | 
|---|
| 313 | *" <<$>>am_file "*<<)>> | 
|---|
| 314 | echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx | 
|---|
| 315 | ;; | 
|---|
| 316 | esac | 
|---|
| 317 | am_indx=`expr "<<$>>am_indx" + 1` | 
|---|
| 318 | done<<>>dnl>>) | 
|---|
| 319 | changequote([,]))]) | 
|---|
| 320 |  | 
|---|
| 321 | # Add --enable-maintainer-mode option to configure. | 
|---|
| 322 | # From Jim Meyering | 
|---|
| 323 |  | 
|---|
| 324 | # serial 1 | 
|---|
| 325 |  | 
|---|
| 326 | AC_DEFUN([AM_MAINTAINER_MODE], | 
|---|
| 327 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | 
|---|
| 328 | dnl maintainer-mode is disabled by default | 
|---|
| 329 | AC_ARG_ENABLE(maintainer-mode, | 
|---|
| 330 | [  --enable-maintainer-mode enable make rules and dependencies not useful | 
|---|
| 331 | (and sometimes confusing) to the casual installer], | 
|---|
| 332 | USE_MAINTAINER_MODE=$enableval, | 
|---|
| 333 | USE_MAINTAINER_MODE=no) | 
|---|
| 334 | AC_MSG_RESULT($USE_MAINTAINER_MODE) | 
|---|
| 335 | AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) | 
|---|
| 336 | MAINT=$MAINTAINER_MODE_TRUE | 
|---|
| 337 | AC_SUBST(MAINT)dnl | 
|---|
| 338 | ] | 
|---|
| 339 | ) | 
|---|
| 340 |  | 
|---|