Minxuan Zhuang
2014-07-04 05:38:42 UTC
a project needs to satisfy both gcc 4.1.2 and gcc 4.7.3, but some options
in the latter one(like -Wno-narrowing and Wno-unused-result) cannot be used
in the former one. So I need to test the cutrrent gcc version and decide
what can of option can be assigned to CFLAGS, sth like:
if gcc version == 4.1.2
CFLAGS=....
else
CFLAGS =.....
how can I implement it in configure.ac?
in the latter one(like -Wno-narrowing and Wno-unused-result) cannot be used
in the former one. So I need to test the cutrrent gcc version and decide
what can of option can be assigned to CFLAGS, sth like:
if gcc version == 4.1.2
CFLAGS=....
else
CFLAGS =.....
how can I implement it in configure.ac?