[ruby-cvs:70534] ngoto:r63443 (trunk): configure.ac: move checks of -std=gnu99 and _XOPEN_SOURCE on Solaris

ngoto at ruby-lang.org ngoto at ruby-lang.org
Wed May 16 13:11:20 JST 2018


ngoto	2018-05-16 13:11:20 +0900 (Wed, 16 May 2018)

  New Revision: 63443

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63443

  Log:
    configure.ac: move checks of -std=gnu99 and _XOPEN_SOURCE on Solaris
    
    * configure.ac (ansi_options): On Solaris, "-std=gnu99" should be
      appended to CPPFLAGS instead of warnflags and strict_warnflags,
      because the flag affects existance of functions and macros.
    
    * configure.ac (solaris*): Check _XOPEN_SOURCE just after checking
      "-std=gnu99" on Solaris. Because _XOPEN_SOURCE also affects existance
      of many functions and macros, it is good to define it earlier.
      The check is simplified to use AC_TRY_COMPILE with RUBY_WERROR_FLAG.

  Modified files:
    trunk/configure.ac


More information about the ruby-cvs mailing list