characteristics in the logs.
Suggested by Mo DeJong.
+2001-06-25 Akim Demaille <akim@epita.fr>
+
+ * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
+ characteristics in the logs.
+ Suggested by Mo DeJong.
+
2001-06-24 Akim Demaille <akim@epita.fr>
* acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
** Generic macros
- AC_CHECK_HEADER and AC_CHECK_HEADERS support a fourth argument to
specify pre-includes.
-- AC_ARG_VAR refuses to run configure when precious variable have
+- AC_ARG_VAR refuses to run configure when precious variables have
changed.
+- When a GNU compiler is found, its characteristics are dumped in the
+ log.
** Specific Macros
- AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
[ac_compiler_gnu=yes],
[ac_compiler_gnu=no])
ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
+if test $ac_compiler_gnu = yes; then
+ echo "$as_me:__oline__:" \
+ "checking for GNU _AC_LANG compiler characterisitics" >&AS_MESSAGE_LOG_FD
+ ac_compiler=`set X $ac_compile; echo $[2]`
+ _AC_EVAL([$ac_compiler --version </dev/null >&AS_MESSAGE_LOG_FD])
+ _AC_EVAL([$ac_compiler -dumpspecs </dev/null >&AS_MESSAGE_LOG_FD])
+fi
])])# _AC_LANG_COMPILER_GNU
[ac_compiler_gnu=yes],
[ac_compiler_gnu=no])
ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
+if test $ac_compiler_gnu = yes; then
+ echo "$as_me:__oline__:" \
+ "checking for GNU _AC_LANG compiler characterisitics" >&AS_MESSAGE_LOG_FD
+ ac_compiler=`set X $ac_compile; echo $[2]`
+ _AC_EVAL([$ac_compiler --version </dev/null >&AS_MESSAGE_LOG_FD])
+ _AC_EVAL([$ac_compiler -dumpspecs </dev/null >&AS_MESSAGE_LOG_FD])
+fi
])])# _AC_LANG_COMPILER_GNU
[ac_compiler_gnu=yes],
[ac_compiler_gnu=no])
ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
+if test $ac_compiler_gnu = yes; then
+ echo "$as_me:__oline__:" \
+ "checking for GNU _AC_LANG compiler characterisitics" >&AS_MESSAGE_LOG_FD
+ ac_compiler=`set X $ac_compile; echo $[2]`
+ _AC_EVAL([$ac_compiler --version </dev/null >&AS_MESSAGE_LOG_FD])
+ _AC_EVAL([$ac_compiler -dumpspecs </dev/null >&AS_MESSAGE_LOG_FD])
+fi
])])# _AC_LANG_COMPILER_GNU
[ac_compiler_gnu=yes],
[ac_compiler_gnu=no])
ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
+if test $ac_compiler_gnu = yes; then
+ echo "$as_me:__oline__:" \
+ "checking for GNU _AC_LANG compiler characterisitics" >&AS_MESSAGE_LOG_FD
+ ac_compiler=`set X $ac_compile; echo $[2]`
+ _AC_EVAL([$ac_compiler --version </dev/null >&AS_MESSAGE_LOG_FD])
+ _AC_EVAL([$ac_compiler -dumpspecs </dev/null >&AS_MESSAGE_LOG_FD])
+fi
])])# _AC_LANG_COMPILER_GNU