diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-06-29 03:21:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-06-29 03:21:56 +0000 |
commit | 50fb79778f49e57f1f5d72a05e296d94b6c1c05e (patch) | |
tree | 7ae2236031b9c61473f328248ac134366937f953 /gprof/aclocal.m4 | |
parent | 3128c5978f4726f6d3dcf400d3eb7b1775632f97 (diff) | |
download | gdb-50fb79778f49e57f1f5d72a05e296d94b6c1c05e.zip gdb-50fb79778f49e57f1f5d72a05e296d94b6c1c05e.tar.gz gdb-50fb79778f49e57f1f5d72a05e296d94b6c1c05e.tar.bz2 |
* aclocal.m4, configure, Makefile.in: Rebuild with automake 1.2.
Diffstat (limited to 'gprof/aclocal.m4')
-rw-r--r-- | gprof/aclocal.m4 | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/gprof/aclocal.m4 b/gprof/aclocal.m4 index 619693b..d5e10ef 100644 --- a/gprof/aclocal.m4 +++ b/gprof/aclocal.m4 @@ -1,4 +1,4 @@ -dnl aclocal.m4 generated automatically by aclocal 1.1n +dnl aclocal.m4 generated automatically by aclocal 1.2 # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. @@ -15,6 +15,10 @@ PACKAGE=[$1] AC_SUBST(PACKAGE) VERSION=[$2] AC_SUBST(VERSION) +dnl test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi ifelse([$3],, AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) @@ -76,7 +80,8 @@ AC_DEFUN(AM_MISSING_PROG, [AC_MSG_CHECKING(for working $2) # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. -if ($2 --version) > /dev/null 2>&1; then +# Redirect stdin to placate older versions of autoconf. Sigh. +if ($2 --version) < /dev/null > /dev/null 2>&1; then $1=$2 AC_MSG_RESULT(found) else @@ -113,13 +118,23 @@ AC_DEFUN(AM_MAINTAINER_MODE, # Otherwise set it to "". dnl AM_CYGWIN32() +dnl You might think we can do this by checking for a cygwin32-specific +dnl cpp define. We can't, because cross-compilers that target +dnl cygwin32 don't use the .exe suffix. I don't know why. AC_DEFUN(AM_CYGWIN32, -[AC_MSG_CHECKING(for Cygwin32 environment) -AC_EGREP_CPP(lose, [ -#ifdef __CYGWIN32__ -lose -#endif], [EXEEXT=.exe -AC_MSG_RESULT(yes)], [EXEEXT= -AC_MSG_RESULT(no)]) +[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, +[cat > conftest.$ac_ext << 'EOF' +int main () { +/* Nothing. */ +return 0; } +EOF +if AC_TRY_EVAL(ac_link) && test -s conftest.exe; then + am_cv_cygwin32=yes +else + am_cv_cygwin32=no +fi +rm -f conftest*]) +EXEEXT= +test "$am_cv_cygwin32" = yes && EXEEXT=.exe AC_SUBST(EXEEXT)]) |