692044d39870d06dfd01906a93e0731588afbecf
[scilab.git] / scilab / m4 / compiler.m4
1
2 dnl CHECK_COMPILER_ARG(LANG, ARG, ACTION-IF-NOT_FOUND)
3 AC_DEFUN([CHECK_COMPILER_ARG],[
4     AC_LANG_PUSH([$1])
5     AC_MSG_CHECKING([if the $1 compiler accepts $2])
6     ac_save_$3="$$3"
7     $3="$$3 $$2"
8
9     AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
10        [AC_MSG_RESULT([yes])
11        $4="$2"
12        ],
13        [AC_MSG_RESULT([no])]
14     )
15     $3="$ac_save_$3";
16     AC_LANG_POP([$1])
17
18 ])