"Fossies" - the Fresh Open Source Software Archive

Member "ruby-2.7.4/tool/m4/ruby_try_cflags.m4" (7 Jul 2021, 279 Bytes) of package /linux/misc/ruby-2.7.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ruby_try_cflags.m4": 2.7.3_vs_2.7.4.

    1 # -*- Autoconf -*-
    2 AC_DEFUN([RUBY_TRY_CFLAGS], [
    3     AC_MSG_CHECKING([whether ]$1[ is accepted as CFLAGS])
    4     RUBY_WERROR_FLAG([
    5     CFLAGS="[$]CFLAGS $1"
    6     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$4]], [[$5]])],
    7 	[$2
    8 	AC_MSG_RESULT(yes)],
    9 	[$3
   10 	AC_MSG_RESULT(no)])
   11     ])
   12 ])dnl