_AC_PROG_F77_GNU): Use ac_ext. Use _ACEOF instead of ACEOF.
+2000-07-28 Akim Demaille <akim@epita.fr>
+
+ * aclang.m4 (AC_LANG_CONFTEST, _AC_PROG_CC_GNU, _AC_PROG_CXX_GNU,
+ _AC_PROG_F77_GNU): Use ac_ext. Use _ACEOF instead of ACEOF.
+
2000-07-28 Akim Demaille <akim@epita.fr>
* autoconf.sh (--warnings): Catch `no-category', not `nocategory'.
# ---------------------
# Save the BODY in `conftest.$acext'. Add a trailing new line.
define([AC_LANG_CONFTEST],
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
$1
-ACEOF])
+_ACEOF])
# AC_LANG_SOURCE(BODY)
define([_AC_PROG_CC_GNU],
[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
define([_AC_PROG_CXX_GNU],
[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
# do CPP pre-processing.
define([_AC_PROG_F77_GNU],
[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77,
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_g77=yes
else
# The replacement is empty.
AU_DEFUN([AC_F77_NAME_MANGLING], [])
+
# AC_F77_WRAPPERS
# ---------------
# Defines C macros F77_FUNC(name,NAME) and F77_FUNC_(name,NAME) to
esac
])# AC_F77_WRAPPERS
+
# AC_F77_FUNC(NAME, [SHELLVAR = NAME])
-# -------------------
+# ------------------------------------
# For a Fortran subroutine of given NAME, define a shell variable
# $SHELLVAR to the Fortran-77 mangled name. If the SHELLVAR
# argument is not supplied, it defaults to NAME.
])
m4_default([$2],[$1])="$ac_val"
]) # AC_F77_FUNC
-
-
# ---------------------
# Save the BODY in `conftest.$acext'. Add a trailing new line.
define([AC_LANG_CONFTEST],
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
$1
-ACEOF])
+_ACEOF])
# AC_LANG_SOURCE(BODY)
define([_AC_PROG_CC_GNU],
[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
define([_AC_PROG_CXX_GNU],
[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
# do CPP pre-processing.
define([_AC_PROG_F77_GNU],
[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77,
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_g77=yes
else
# The replacement is empty.
AU_DEFUN([AC_F77_NAME_MANGLING], [])
+
# AC_F77_WRAPPERS
# ---------------
# Defines C macros F77_FUNC(name,NAME) and F77_FUNC_(name,NAME) to
esac
])# AC_F77_WRAPPERS
+
# AC_F77_FUNC(NAME, [SHELLVAR = NAME])
-# -------------------
+# ------------------------------------
# For a Fortran subroutine of given NAME, define a shell variable
# $SHELLVAR to the Fortran-77 mangled name. If the SHELLVAR
# argument is not supplied, it defaults to NAME.
])
m4_default([$2],[$1])="$ac_val"
]) # AC_F77_FUNC
-
-
# ---------------------
# Save the BODY in `conftest.$acext'. Add a trailing new line.
define([AC_LANG_CONFTEST],
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
$1
-ACEOF])
+_ACEOF])
# AC_LANG_SOURCE(BODY)
define([_AC_PROG_CC_GNU],
[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
define([_AC_PROG_CXX_GNU],
[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
# do CPP pre-processing.
define([_AC_PROG_F77_GNU],
[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77,
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_g77=yes
else
# The replacement is empty.
AU_DEFUN([AC_F77_NAME_MANGLING], [])
+
# AC_F77_WRAPPERS
# ---------------
# Defines C macros F77_FUNC(name,NAME) and F77_FUNC_(name,NAME) to
esac
])# AC_F77_WRAPPERS
+
# AC_F77_FUNC(NAME, [SHELLVAR = NAME])
-# -------------------
+# ------------------------------------
# For a Fortran subroutine of given NAME, define a shell variable
# $SHELLVAR to the Fortran-77 mangled name. If the SHELLVAR
# argument is not supplied, it defaults to NAME.
])
m4_default([$2],[$1])="$ac_val"
]) # AC_F77_FUNC
-
-
# ---------------------
# Save the BODY in `conftest.$acext'. Add a trailing new line.
define([AC_LANG_CONFTEST],
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
$1
-ACEOF])
+_ACEOF])
# AC_LANG_SOURCE(BODY)
define([_AC_PROG_CC_GNU],
[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
define([_AC_PROG_CXX_GNU],
[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
[# The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.$ac_ext <<ACEOF
+cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes;
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
# do CPP pre-processing.
define([_AC_PROG_F77_GNU],
[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77,
-[cat >conftest.$ac_ext <<ACEOF
+[cat >conftest.$ac_ext <<_ACEOF
#ifdef __GNUC__
yes
#endif
-ACEOF
+_ACEOF
if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
ac_cv_prog_g77=yes
else
# The replacement is empty.
AU_DEFUN([AC_F77_NAME_MANGLING], [])
+
# AC_F77_WRAPPERS
# ---------------
# Defines C macros F77_FUNC(name,NAME) and F77_FUNC_(name,NAME) to
esac
])# AC_F77_WRAPPERS
+
# AC_F77_FUNC(NAME, [SHELLVAR = NAME])
-# -------------------
+# ------------------------------------
# For a Fortran subroutine of given NAME, define a shell variable
# $SHELLVAR to the Fortran-77 mangled name. If the SHELLVAR
# argument is not supplied, it defaults to NAME.
])
m4_default([$2],[$1])="$ac_val"
]) # AC_F77_FUNC
-
-