Thomas Nagy
30336cd9ba
Reverted the changes to conf.check(header_name=) as this causes regressions. Use conf.check(header_name=, link_header_test=False) - #1647
2015-10-26 22:44:39 +01:00
Thomas Nagy
fcec20c9fd
Do not link header tests - ruby detection is broken when the compiler includes the symbols
2015-10-10 10:18:02 +02:00
Thomas Nagy
1fbac668cb
Pass a conf.env.env to check_cfg
2015-10-06 23:06:22 +02:00
Mohammad Alsaleh
6de1ac07d5
c_config: Avoid warnings/errors when checking for C functions
...
The check for C functions fails with '-Werror' in GCC (5.2).
return (int)p;
^
The cast here triggers this error:
error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
p=(void*)(%s);
^
This conversion triggers another error with '-pedantic -Werror':
error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
This patch fixes both errors.
Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2015-09-13 22:45:32 +02:00
Thomas Nagy
c2f4f1b1e8
Force a chmod value for configuration tests executed
2015-09-03 21:31:46 +02:00
Thomas Nagy
03ad2fff74
Adding input to cmd_and_log/exec_command enables stdin=PIPE
2015-08-23 17:39:25 +02:00
Thomas Nagy
bfbcc73eb2
C/FC detection and outputs to be written in config.log
2015-08-23 17:16:03 +02:00
Thomas Nagy
6ca1c7cad4
Simplify Clang macro detection
2015-08-07 10:51:45 +02:00
Thomas Nagy
45ffae6d4e
Ensure __GNUC_PATCHLEVEL__ is always of str type
2015-08-07 10:48:22 +02:00
Thomas Nagy
a98baba3e8
Unused code fragment
2015-08-07 10:47:06 +02:00
Thomas Nagy
0d9a9b7e77
Let write_config_header use env.WAF_CONFIG_H_PRELUDE
...
A prelude will be added from the variable env.WAF_CONFIG_H_PRELUDE if provided. This
can be used to insert complex macros or include guards::
def configure(conf):
conf.env.WAF_CONFIG_H_PRELUDE = '#include <unistd.h>\\n'
conf.write_config_header('config.h')
2015-07-11 12:01:26 +02:00
Thomas Nagy
4f93b4e814
docs
2015-07-07 22:30:00 +02:00
Thomas Nagy
a946ca8383
Removed the executable bit on c_config.py
2015-06-27 14:03:04 +02:00
Thomas Nagy
1debaf5f03
Better error message when the c compiler is clang and gcc is not found
2015-06-20 23:17:24 +02:00
Thomas Nagy
d761ad1397
Better error message when the c compiler is clang and gcc is not found
2015-06-20 22:21:43 +02:00
Thomas Nagy
ea59b302c5
Fixed conf.multicheck error handling
2015-05-23 15:09:37 +02:00
Thomas Nagy
f048d6d20f
Do not duplicate flags from the OS environment - https://github.com/waf-project/waf/issues/1574
2015-05-16 14:26:43 +02:00
Thomas Nagy
b45f52165b
docs
2015-05-03 10:22:28 +02:00
Thomas Nagy
120af4f1d0
docs
2015-05-03 01:03:11 +02:00
Thomas Nagy
924f8bbce8
Inserting LDFLAGS at the end of the command-line causes less overhead than expected, and LINKFLAGS can still be used for flags in the beginning of the line
2015-04-22 21:34:45 +02:00
Thomas Nagy
0c0e0388a0
More accurate rpath parsing in parse_flags
2015-04-08 23:32:53 +02:00
Thomas Nagy
b8c965153c
Issue 1551 - use -Bstatic and -Bdynamic in parse_flags
2015-03-26 21:50:23 +01:00
Thomas Nagy
eefb67755e
Issue 1529 - conf.check(function_name)
2015-03-13 17:47:53 +01:00
Thomas Nagy
ff2ab4076f
Fix for gcc detection under msys - it behaves like cygwin
2015-03-05 16:18:51 +01:00
Thomas Nagy
80344dee5e
Use splitlines when possible
2015-03-03 12:19:25 +01:00
Thomas Nagy
47a100480f
Issue 1538 - make detection of pyembed optional
2015-02-27 12:03:53 +01:00
Thomas Nagy
bbf26e0e12
Fix the g++ compiler detection which is broken by the new clang tool
2015-02-20 14:23:04 +01:00
Thomas Nagy
e3d8daf8bc
Issue 1527 - a not on as-needed
2015-02-14 22:38:25 +01:00
David Robillard
a3a209b352
Fix compiler detection on OSX 10.6.
...
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2015-02-14 22:29:19 +01:00
Thomas Nagy
9a46ff7558
No one has ever used conf.as_needed()
2014-11-10 22:08:36 +01:00
Thomas Nagy
6c9e7c6233
Much faster version of get_config_header
2014-10-02 21:09:16 +02:00
Thomas Nagy
fec1956327
Issue 1212
2014-09-21 12:47:32 +02:00
Thomas Nagy
d491de7486
conf.check generalization using arbitrary build functions
2014-09-14 10:58:29 +02:00
Thomas Nagy
a112808610
Issue 1481 - unreadable configuration cache file
2014-09-02 22:14:51 +02:00
Thomas Nagy
69bb9f9209
Handle the -Xlinker case in parse_flags
2014-08-31 21:03:03 +02:00
yngwe
342b4ab1ce
c_config: cleanup directory after configuration if no cache is needed.
2014-07-02 09:37:22 +02:00
Thomas Nagy
d4ca0e8cdc
Issue 1440
2014-04-27 20:06:04 +02:00
Chris Winter
53387d8eff
c_config: parse_flags: add support for parsing '-isystem' and friends
...
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-03-24 12:43:29 +01:00
Thomas Nagy
72334441ce
Issue 1419 - gcc 2.95 detection
2014-03-05 21:23:32 +01:00
Thomas Nagy
8faafeb913
Issue 1276 - suppress configuration outputs
2014-02-02 04:04:21 +01:00
Krzysztof Kosiński
8147d0a18b
Add support for parameter define_name to check_cfg
2014-01-27 03:45:35 +01:00
Krzysztof Kosiński
e95b150c56
Add simple compiler tools for clang and clang++
2014-01-25 21:00:27 +01:00
Krzysztof Kosiński
86b87413c8
Always return a value which evaluates to True when check_cfg succeeds.
2014-01-25 19:12:44 +01:00
Thomas Nagy
9f7ceb0e91
Issue 1395
2014-01-14 20:11:11 +01:00
Jérôme Carretero
33a60e79e7
treecleaner: 'in [...]' replaced by 'in (...)' where appropriate
2014-01-05 16:27:06 -05:00
Thomas Nagy
29252511d0
Issue 1390 - conf.check(lib='several libs')
2013-12-21 17:29:06 +01:00
Thomas Nagy
8571c15a1b
missing change
2013-11-08 22:46:51 +01:00
Thomas Nagy
dcd6184d3f
Issue 1372 version detection for old and buggy sun compilers
2013-11-08 22:45:34 +01:00
Thomas Nagy
3884124886
Issue 1371
2013-11-03 00:14:04 +01:00
Thomas Nagy
ff820ccf49
Extract rpath flags into use variables
2013-10-27 14:56:04 +01:00