aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
Commit message (Collapse)AuthorAgeFilesLines
* configure.in: compressed debug section optionnobu2016-11-161-4/+12
| | | | | | | * configure.in: make compressed debug section optional. [ruby-core:78121] [Bug #12934] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (-Wno-maybe-uninitialized): gcc 6 also shows the sameshugo2016-11-061-1/+1
| | | | | | warnings as described in r49410. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (-Wimplicit-fallthrough): gcc7 introduces casenaruse2016-11-051-0/+1
| | | | | | | fall through warnings but it is too noisy. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Add compiler version message into rbconfignaruse2016-11-041-0/+2
| | | | | | as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* file.c: include sys/sysmacros.hnobu2016-11-031-0/+1
| | | | | | | * file.c: include sys/sysmacros.h for ArchLinux which deprecated use of major() and minor() in sys/types.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: no round in x64-mingwnobu2016-10-311-1/+4
| | | | | | | * configure.in (ac_cv_func_round): round(3) in x86_64-w64-mingw32 is not accurate in an edge case. [ruby-core:77794] [Bug #12878] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fallback DLDFLAGS to LDFLAGSnobu2016-10-221-7/+5
| | | | | | | | * configure.in (DLDFLAGS): fallback to LDFLAGS. [ruby-core:72444] [Bug #11863] * configure.in (LIBRUBY_DLDFLAGS): fallback to DLDFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix RUBY_{APPEND/PREPEND}_OPTIONnobu2016-10-221-2/+2
| | | | | | | | * configure.in (RUBY_APPEND_OPTION, RUBY_PREPEND_OPTION): expand the option to be appended/prepended when matching, as well as RUBY_APPEND_OPTIONS and RUBY_PREPEND_OPTIONS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: compress debug sectionsnobu2016-10-181-0/+11
| | | | | | | | * configure.in (DLDFLAGS): append --compress-debug-sections=zlib if available, which reduces the size of LIBRUBY_SO by half or more. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* install-static-library option [ci skip]nobu2016-10-171-0/+8
| | | | | | | | | * configure.in (install-static-library): add option to enable/ disable to install static ruby library. defaulted to "no" if enable-shared. [Feature #12845] * tool/rbinstall.rb (local-arch-lib): respect the option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (WARN_UNUSED_RESULT): moved to configure.in, toshyouhei2016-09-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actually check its availability rather to check GCC's version. * configure.in (WARN_UNUSED_RESULT): moved to here. * configure.in (RUBY_FUNC_ATTRIBUTE): change function declaration to return int rather than void, because it makes no sense for a warn_unused_result attributed function to return void. Funny thing however is that it also makes no sense for noreturn attributed function to return int. So there is a fundamental conflict between them. While I tested this, I confirmed both GCC 6 and Clang 3.8 prefers int over void to correctly detect necessary attributes under this setup. Maybe subject to change in future. * internal.h (UNINITIALIZED_VAR): renamed to MAYBE_UNUSED, then moved to configure.in for the same reason we move WARN_UNUSED_RESULT. * configure.in (MAYBE_UNUSED): moved to here. * internal.h (__has_attribute): deleted, because it has no use now. * string.c (rb_str_enumerate_lines): refactor macro rename. * string.c (rb_str_enumerate_bytes): ditto. * string.c (rb_str_enumerate_chars): ditto. * string.c (rb_str_enumerate_codepoints): ditto. * thread.c (do_select): ditto. * vm_backtrace.c (rb_debug_inspector_open): ditto. * vsnprintf.c (BSD_vfprintf): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, lib/mkmf.rb, win32/Makefile.sub (CSRCFLAG): make theusa2016-07-111-0/+2
| | | | | | | | | | | | compiler option replacable in Makefile. * win32/Makefile.sub (OUTFLAG, COUTFLAG): ditto. * win32/Makeile.sub, win32/setup.mak (CC): should not append `-nologo` option forcely. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: define sig_t if not exist.naruse2016-07-041-0/+2
| | | | | | at least Solaris 10 and 11 doesn't have sig_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RUBY_USE_SETJMPEXnobu2016-06-201-0/+1
| | | | | | | | * configure.in, include/ruby/defines.h (RUBY_USE_SETJMPEX): include setjmpex.h only when using setjmpex() for RUBY_SETJMP. the header of mingw32 overrides setjmp() by setjmpex(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: Fix the timing to detect the appropriate C++ compiler in OS Xmrkn2016-06-051-10/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* crypt.h: remove initializednobu2016-06-041-0/+4
| | | | | | | | | | | | * missing/crypt.h (struct crypt_data): remove unnecessary member "initialized". * missing/crypt.c (des_setkey_r): nothing to be initialized in crypt_data. * configure.in (struct crypt_data): check for "initialized" in struct crypt_data, which may be only in glibc, and isn't on AIX at least. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r55246nobu2016-06-011-0/+1
| | | | | | * configure.in: no longer workaround crypt_r by r55247. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* workaround: don't check crypt_rnaruse2016-06-011-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use system cryptnobu2016-06-011-4/+50
| | | | | | | | | * configure.in: revert r55237. replace crypt, not crypt_r, and check if crypt is broken more. * missing/crypt.c: move crypt_r.c * string.c (rb_str_crypt): use crypt_r if provided by the system. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use crypt_rnobu2016-06-011-36/+4
| | | | | | * string.c (rb_str_crypt): use reentrant crypt_r. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: merge ruby_cflags to XCFLAGSnobu2016-05-241-3/+2
| | | | | | | * configure.in (XCFLAGS): merge flags only for ruby itself from ruby_cflags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ruby_cflags): separate from optflags [Bug #12409]naruse2016-05-241-2/+6
| | | | | | | | -fexcess-precision=standard and -fp-model precise are set to this now. * configure.in (cflags): use ruby_cflags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix missing argumentnobu2016-05-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix __error__ and __warning__ attribute checksnobu2016-05-241-3/+3
| | | | | | | * configure.in (ERRORFUNC, WARNINGFUNC): __error__ and __warning__ attributes take a parenthesized string literal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ALWAYS_INLINE): force compilers the function inlined.naruse2016-05-211-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: missing macro definitionnobu2016-05-211-1/+3
| | | | | | | * configure.in (RUBY_CHECK_SETJMP): fix missing macro definition for the configured result. fix up r55021. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: declare as NORETURNnobu2016-05-171-0/+3
| | | | | | | | * configure.in (RUBY_CHECK_BUILTIN_SETJMP): declare t as NORETURN to suppress warnings by -Wsuggest-attribute=noreturn. [ruby-core:75510] [Bug #12383] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: RUBY_CHECK_SETJMPnobu2016-05-171-7/+15
| | | | | | | * configure.in (RUBY_CHECK_SETJMP): needs the header and proper arguments for builtin setjmp functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: revert macro namesnobu2016-05-161-3/+3
| | | | | | | | | | * configure.in (FUNC_STDCALL, FUNC_CDECL, FUNC_FASTCALL): set macro names explicitly to the old names, which are accidentally changed at r54985, for backward compatibilities. fiddle also depends on these names to fallback to ANSI names. [ruby-core:75494] [Bug #12377] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use HAVE_BUILTIN___BUILTIN_CONSTANT_Pnaruse2016-05-121-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configurein: use alternative keywordnaruse2016-05-121-14/+16
| | | | | | to avoid macros conflicts with them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* util.c: qsort_snobu2016-05-111-0/+1
| | | | | | | * util.c (ruby_qsort): use qsort_s if available, for Microsoft Visual Studio 2005 (msvcr80.dll) and mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (-fexcess-precision=standard): before r54895 -std=c99naruse2016-05-101-1/+1
| | | | | | | | is specified and it implied -fexcess-precision=standard. Now with -std=gnu99, it should be explicitly specified. https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check function attirbute const and pure,naruse2016-05-081-0/+2
| | | | | | | | | | | | and define CONSTFUNC and PUREFUNC if available. Note that I don't add those options as default because it still shows many false-positive (it seems not to consider longjmp). * vm_eval.c (stack_check): get rb_thread_t* as an argument to avoid duplicate call of GET_THREAD(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: add -Wsuggest-attribute=format and suppress warnings.naruse2016-05-081-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: add -Wsuggest-attribute=noreturn and suppress warnings.naruse2016-05-081-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: add -Werror=implicit-int to avoid missing type ofnaruse2016-05-081-0/+1
| | | | | | function declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* random.c: use arc4random_bufnobu2016-05-051-0/+1
| | | | | | | * random.c (fill_random_bytes_syscall): use arc4random_buf if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (warnflags): use -std=gnu99 instead ofnaruse2016-05-031-1/+1
| | | | | | -std=iso9899:1999. [Feature #12336] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcountnaruse2016-05-031-0/+2
| | | | | | | | | only if it can use SSE 4.2 POPCNT whose latency is 3 cycle. * internal.h (rb_popcount64): use __builtin_popcountll because now it is in fast path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (search_nonascii): unroll and use ntznaruse2016-04-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | * configure.in (__builtin_ctz): check. * configure.in (__builtin_ctzll): check. * internal.h (rb_popcount32): defined for ntz_int32. it can use __builtin_popcount but this function is not used on GCC environment because it uses __builtin_ctz. When another function uses this, using __builtin_popcount should be re-considered. * internal.h (rb_popcount64): ditto. * internal.h (ntz_int32): defined for ntz_intptr. * internal.h (ntz_int64): defined for ntz_intptr. * internal.h (ntz_intptr): defined as ntz for uintptr_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_lgamma_r_pm0): check if lgamma_r(+0.0)odaira2016-04-271-6/+12
| | | | | | | | | returns positive infinity, in addition to lgamma_r(-0.0). AIX returns an incorrect result of negative infinity. * math.c (ruby_lgamma_r): handle +0.0, in addition to -0.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: define _DEFAULT_SOURCE because glibc 2.20 depracatesnaruse2016-04-271-4/+3
| | | | | | | _BSD_SOURCE. https://sourceware.org/glibc/wiki/Release/2.20 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: do not create unnecessary verconf.hnobu2016-04-251-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: add missing -lm for AIX.odaira2016-04-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: move cache variable for AIX roundnobu2016-04-231-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: don't use the system-provided round(3) on AIX.odaira2016-04-221-1/+1
| | | | | | | In AIX, round(0.49999999999999994) returns 1.0. Use round() in numeric.c instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2016-04-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ifchange: ignore unmatch TEST_COLORSnobu2016-04-211-1/+1
| | | | | | | | | * configure.in: check if succeeded in creating config.h. * tool/ifchange: ignore failures when TEST_COLORS unmatched. just use the default value if expected name is not contained in it. [ruby-core:75046] [Bug #12303] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: feature macros on cygwinnobu2016-04-141-0/+1
| | | | | | | * configure.in (cygwin): add feature macros for the declarations of eaccess. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e