aclocal.m4 revision 130561
194536Sobriendnl aclocal.m4 generated automatically by aclocal 1.4-p5 238889Sjdp 394536Sobriendnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. 460484Sobriendnl This file is free software; the Free Software Foundation 538889Sjdpdnl gives unlimited permission to copy and/or distribute it, 638889Sjdpdnl with or without modifications, as long as this notice is preserved. 738889Sjdp 838889Sjdpdnl This program is distributed in the hope that it will be useful, 938889Sjdpdnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1038889Sjdpdnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1138889Sjdpdnl PARTICULAR PURPOSE. 1238889Sjdp 1338889Sjdpsinclude(../bfd/acinclude.m4) 1438889Sjdp 1577298Sobriendnl sinclude(../libtool.m4) already included in bfd/acinclude.m4 1677298Sobriendnl The lines below arrange for aclocal not to bring libtool.m4 1777298Sobriendnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake 1877298Sobriendnl to add a definition of LIBTOOL to Makefile.in. 1977298Sobrienifelse(yes,no,[ 2077298SobrienAC_DEFUN([AM_PROG_LIBTOOL],) 2177298SobrienAC_DEFUN([AM_DISABLE_SHARED],) 2277298SobrienAC_SUBST(LIBTOOL) 2377298Sobrien]) 2477298Sobrien 2577298Sobriendnl sinclude(../gettext.m4) already included in bfd/acinclude.m4 2677298Sobrienifelse(yes,no,[ 2777298SobrienAC_DEFUN([CY_WITH_NLS],) 2877298SobrienAC_SUBST(INTLLIBS) 2977298Sobrien]) 3077298Sobrien 31104834Sobriendnl AM_INSTALL_LIBBFD already included in bfd/acinclude.m4 32104834Sobrienifelse(yes,no,[ 33104834SobrienAC_DEFUN([AM_INSTALL_LIBBFD],) 34104834SobrienAC_SUBST(bfdlibdir) 35104834SobrienAC_SUBST(bfdincludedir) 36104834Sobrien]) 37104834Sobrien 38130561Sobrien#serial 1 39130561Sobrien# This test replaces the one in autoconf. 40130561Sobrien# Currently this macro should have the same name as the autoconf macro 41130561Sobrien# because gettext's gettext.m4 (distributed in the automake package) 42130561Sobrien# still uses it. Otherwise, the use in gettext.m4 makes autoheader 43130561Sobrien# give these diagnostics: 44130561Sobrien# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX 45130561Sobrien# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX 46130561Sobrien 47130561Sobrienundefine([AC_ISC_POSIX]) 48130561Sobrien 49130561SobrienAC_DEFUN([AC_ISC_POSIX], 50130561Sobrien [ 51130561Sobrien dnl This test replaces the obsolescent AC_ISC_POSIX kludge. 52130561Sobrien AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) 53130561Sobrien ] 54130561Sobrien) 55130561Sobrien 5638889Sjdp# Do all the work for Automake. This macro actually does too much -- 5738889Sjdp# some checks are only needed if your package does certain things. 5838889Sjdp# But this isn't really a big deal. 5938889Sjdp 6038889Sjdp# serial 1 6138889Sjdp 6238889Sjdpdnl Usage: 6338889Sjdpdnl AM_INIT_AUTOMAKE(package,version, [no-define]) 6438889Sjdp 6594536SobrienAC_DEFUN([AM_INIT_AUTOMAKE], 6660484Sobrien[AC_REQUIRE([AC_PROG_INSTALL]) 6738889SjdpPACKAGE=[$1] 6838889SjdpAC_SUBST(PACKAGE) 6938889SjdpVERSION=[$2] 7038889SjdpAC_SUBST(VERSION) 7138889Sjdpdnl test to see if srcdir already configured 7238889Sjdpif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 7338889Sjdp AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 7438889Sjdpfi 7538889Sjdpifelse([$3],, 7660484SobrienAC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 7760484SobrienAC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) 7838889SjdpAC_REQUIRE([AM_SANITY_CHECK]) 7938889SjdpAC_REQUIRE([AC_ARG_PROGRAM]) 8038889Sjdpdnl FIXME This is truly gross. 8138889Sjdpmissing_dir=`cd $ac_aux_dir && pwd` 8238889SjdpAM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) 8338889SjdpAM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 8438889SjdpAM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) 8538889SjdpAM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 8638889SjdpAM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) 8738889SjdpAC_REQUIRE([AC_PROG_MAKE_SET])]) 8838889Sjdp 8938889Sjdp# 9038889Sjdp# Check to make sure that the build environment is sane. 9138889Sjdp# 9238889Sjdp 9394536SobrienAC_DEFUN([AM_SANITY_CHECK], 9438889Sjdp[AC_MSG_CHECKING([whether build environment is sane]) 9538889Sjdp# Just in case 9638889Sjdpsleep 1 9738889Sjdpecho timestamp > conftestfile 9838889Sjdp# Do `set' in a subshell so we don't clobber the current shell's 9938889Sjdp# arguments. Must try -L first in case configure is actually a 10038889Sjdp# symlink; some systems play weird games with the mod time of symlinks 10138889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing 10238889Sjdp# directory). 10338889Sjdpif ( 10438889Sjdp set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 10538889Sjdp if test "[$]*" = "X"; then 10638889Sjdp # -L didn't work. 10738889Sjdp set X `ls -t $srcdir/configure conftestfile` 10838889Sjdp fi 10938889Sjdp if test "[$]*" != "X $srcdir/configure conftestfile" \ 11038889Sjdp && test "[$]*" != "X conftestfile $srcdir/configure"; then 11138889Sjdp 11238889Sjdp # If neither matched, then we have a broken ls. This can happen 11338889Sjdp # if, for instance, CONFIG_SHELL is bash and it inherits a 11438889Sjdp # broken ls alias from the environment. This has actually 11538889Sjdp # happened. Such a system could not be considered "sane". 11638889Sjdp AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 11738889Sjdpalias in your environment]) 11838889Sjdp fi 11938889Sjdp 12038889Sjdp test "[$]2" = conftestfile 12138889Sjdp ) 12238889Sjdpthen 12338889Sjdp # Ok. 12438889Sjdp : 12538889Sjdpelse 12638889Sjdp AC_MSG_ERROR([newly created file is older than distributed files! 12738889SjdpCheck your system clock]) 12838889Sjdpfi 12938889Sjdprm -f conftest* 13038889SjdpAC_MSG_RESULT(yes)]) 13138889Sjdp 13238889Sjdpdnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) 13338889Sjdpdnl The program must properly implement --version. 13494536SobrienAC_DEFUN([AM_MISSING_PROG], 13538889Sjdp[AC_MSG_CHECKING(for working $2) 13638889Sjdp# Run test in a subshell; some versions of sh will print an error if 13738889Sjdp# an executable is not found, even if stderr is redirected. 13838889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 13938889Sjdpif ($2 --version) < /dev/null > /dev/null 2>&1; then 14038889Sjdp $1=$2 14138889Sjdp AC_MSG_RESULT(found) 14238889Sjdpelse 14338889Sjdp $1="$3/missing $2" 14438889Sjdp AC_MSG_RESULT(missing) 14538889Sjdpfi 14638889SjdpAC_SUBST($1)]) 14738889Sjdp 14838889Sjdp# Like AC_CONFIG_HEADER, but automatically create stamp file. 14938889Sjdp 15094536SobrienAC_DEFUN([AM_CONFIG_HEADER], 15138889Sjdp[AC_PREREQ([2.12]) 15238889SjdpAC_CONFIG_HEADER([$1]) 15338889Sjdpdnl When config.status generates a header, we must update the stamp-h file. 15438889Sjdpdnl This file resides in the same directory as the config header 15538889Sjdpdnl that is generated. We must strip everything past the first ":", 15638889Sjdpdnl and everything past the last "/". 15738889SjdpAC_OUTPUT_COMMANDS(changequote(<<,>>)dnl 15838889Sjdpifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, 15938889Sjdp<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, 16038889Sjdp<<am_indx=1 16138889Sjdpfor am_file in <<$1>>; do 16238889Sjdp case " <<$>>CONFIG_HEADERS " in 16338889Sjdp *" <<$>>am_file "*<<)>> 16438889Sjdp echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx 16538889Sjdp ;; 16638889Sjdp esac 16738889Sjdp am_indx=`expr "<<$>>am_indx" + 1` 16838889Sjdpdone<<>>dnl>>) 16938889Sjdpchangequote([,]))]) 17038889Sjdp 17138889Sjdp# Add --enable-maintainer-mode option to configure. 17238889Sjdp# From Jim Meyering 17338889Sjdp 17438889Sjdp# serial 1 17538889Sjdp 17694536SobrienAC_DEFUN([AM_MAINTAINER_MODE], 17738889Sjdp[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 17838889Sjdp dnl maintainer-mode is disabled by default 17938889Sjdp AC_ARG_ENABLE(maintainer-mode, 18038889Sjdp[ --enable-maintainer-mode enable make rules and dependencies not useful 18138889Sjdp (and sometimes confusing) to the casual installer], 18238889Sjdp USE_MAINTAINER_MODE=$enableval, 18338889Sjdp USE_MAINTAINER_MODE=no) 18438889Sjdp AC_MSG_RESULT($USE_MAINTAINER_MODE) 18560484Sobrien AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) 18660484Sobrien MAINT=$MAINTAINER_MODE_TRUE 18738889Sjdp AC_SUBST(MAINT)dnl 18838889Sjdp] 18938889Sjdp) 19038889Sjdp 19160484Sobrien# Define a conditional. 19238889Sjdp 19394536SobrienAC_DEFUN([AM_CONDITIONAL], 19460484Sobrien[AC_SUBST($1_TRUE) 19560484SobrienAC_SUBST($1_FALSE) 19660484Sobrienif $2; then 19760484Sobrien $1_TRUE= 19860484Sobrien $1_FALSE='#' 19960484Sobrienelse 20060484Sobrien $1_TRUE='#' 20160484Sobrien $1_FALSE= 20260484Sobrienfi]) 20338889Sjdp 204