Re: RFC: Build system changes

2012-12-14 Thread Stefan Sperling
On Fri, Dec 14, 2012 at 01:25:05AM -0500, Greg Stein wrote: > Consider >this< my typical potty-mouth response. I'll skip the > actuals, and move along in peace... Save it for later. I'll ask for more next time we have a drink together :)

Re: RFC: Build system changes

2012-12-13 Thread Branko Čibej
On 14.12.2012 07:38, Miha Vitorovic wrote: > On 14.12.2012 4:21, Branko Čibej wrote: >> The only reason for trying for C++11 is, as far as I'm concerned, >> getting std::shared_ptr . The C++ bindings I'm slowly >> wrapping my head around will need it, and I don't want to even >> consider using stan

Re: RFC: Build system changes

2012-12-13 Thread Miha Vitorovic
On 14.12.2012 4:21, Branko Čibej wrote: The only reason for trying for C++11 is, as far as I'm concerned, getting std::shared_ptr . The C++ bindings I'm slowly wrapping my head around will need it, and I don't want to even consider using standard containers without it. The only alternative to C

Re: RFC: Build system changes

2012-12-13 Thread Greg Stein
On Thu, Dec 13, 2012 at 10:21 PM, Branko Čibej wrote: >... > P.S.: Nothing wrong with Boost as such, of course; but including > tends to pull in some 90% of Boost's headers, and > I consider that overkill. I'll go on record with "Boost is the Automake of C++. Tons of useless crap that you don't

Re: RFC: Build system changes

2012-12-13 Thread Branko Čibej
On 14.12.2012 02:32, Hyrum K Wright wrote: > On Thu, Dec 13, 2012 at 1:13 PM, Branko Čibej wrote: > >> The attached patch makes several changes to how we discover compilers >> and set flags on *nix: >> >> * Search for clang as well as the default gcc/cc, and prefer clang(++) >> over gcc/g++.

Re: RFC: Build system changes

2012-12-13 Thread Hyrum K Wright
On Thu, Dec 13, 2012 at 1:13 PM, Branko Čibej wrote: > The attached patch makes several changes to how we discover compilers > and set flags on *nix: > > * Search for clang as well as the default gcc/cc, and prefer clang(++) > over gcc/g++. > * Set standards-compliance mode (C90/C++11) ev

Re: RFC: Build system changes

2012-12-13 Thread Peter Samuelson
> * Search for clang as well as the default gcc/cc, and prefer clang(++) > over gcc/g++. Is clang considered superior, then? Fair enough, I haven't really kept up. > * Add -pipe to C(XX)FLAGS if the compiler supports it. This speeds up > compilation a bit in my tests. Hmm. It seem

Re: RFC: Build system changes

2012-12-13 Thread Philip Martin
Branko Čibej writes: > {{{ > * build/ac-macros/compiler.m4: New file. > (SVN_PROG_CC, SVN_CFLAGS_ADD_IFELSE, >SVN_PROG_CXX, SVN_CXXFLAGS_ADD_IFELSE): New. > * aclocal.m4: Include build/ac-macros/compiler.m4. > > * configure.ac: > - Use SVN_PROG_CC instead of AC_PROG_CC > - Use SVN_PROG_

RFC: Build system changes

2012-12-13 Thread Branko Čibej
The attached patch makes several changes to how we discover compilers and set flags on *nix: * Search for clang as well as the default gcc/cc, and prefer clang(++) over gcc/g++. * Set standards-compliance mode (C90/C++11) even without maintainer-mode. * Add -pipe to C(XX)FLAGS if the com