Commit 124955cf authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Rewritten for Autoconf 2.

parent bc29a042
dnl
dnl Check if a option is acceptable to the C compiler in use
dnl
define([KOM_AC_CC_OPTION],
AC_DEFUN(KOM_COMPILER_CC_ACCEPTS,
[kom_safe=`echo "kom_cv_compiler_${CC}_accepts_$1" | tr './=\055' '____'`
AC_MSG_CHECKING([whether ${CC} accepts $1])
AC_CACHE_VAL($kom_safe,
[[kom_oldflags=$CFLAGS
CFLAGS="$CFLAGS $1"]
AC_COMPILE_CHECK([$1],,,AC_VERBOSE([accepting $1]),
[CFLAGS=$komxx_oldflags])])dnl
AC_TRY_LINK(,,
[eval "$kom_safe=yes"],
[eval "$kom_safe=no"])
[CFLAGS=$kom_oldflags]])dnl
AC_MSG_RESULT([`eval echo '$'$kom_safe`])
if test `eval echo '$'$kom_safe` = yes; then
CFLAGS="$CFLAGS $1"
fi])dnl
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment