"Fossies" - the Fresh Open Source Software Archive

Member "ruby-2.7.4/tool/m4/ruby_mingw32.m4" (7 Jul 2021, 637 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_mingw32.m4": 2.7.3_vs_2.7.4.

    1 # -*- Autoconf -*-
    2 AC_DEFUN([RUBY_MINGW32],
    3 [AS_CASE(["$host_os"],
    4 [cygwin*], [
    5 AC_CACHE_CHECK(for mingw32 environment, rb_cv_mingw32,
    6 [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
    7 #ifndef __MINGW32__
    8 # error
    9 #endif
   10 ]])],[rb_cv_mingw32=yes],[rb_cv_mingw32=no])
   11 rm -f conftest*])
   12 AS_IF([test "$rb_cv_mingw32" = yes], [
   13     target_os="mingw32"
   14     : ${ac_tool_prefix:="`expr "$CC" : ['\(.*-\)g\?cc[^/]*$']`"}
   15     AC_DEFINE(__USE_MINGW_ANSI_STDIO, 1) dnl for gnu_printf
   16 ])
   17 ])
   18 AS_CASE(["$target_os"], [mingw*msvc], [
   19 target_os="`echo ${target_os} | sed 's/msvc$//'`"
   20 ])
   21 AS_CASE(["$target_cpu-$target_os"], [x86_64-mingw*], [
   22 target_cpu=x64
   23 ])
   24 ])dnl