summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTomas Chvatal <tchvatal@suse.cz>2011-08-11 15:00:24 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-08-11 15:14:21 +0200
commit822a92b8f1c0e118f8ceac9977a9377bbd1c38d9 (patch)
tree54e2b503ca1c0359d4685c17cdb40d1b58446fc6 /configure.ac
parenta7325125bb509ed888230266aa272a272b5c7c71 (diff)
There is no chance that someone will try to compile this with gcc-2 on windows.
Signed-off-by: Tomas Chvatal <tchvatal@suse.cz>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 5 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 94db70e..1afb5c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -155,25 +155,14 @@ AS_IF([test "x$native_win32" = "xyes"], [
], [
our_gcc="$ac_cv_prog_CC"
])
- case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
- 2.)
- AS_IF([$our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null], [
- msnative_struct='-fnative-struct'
- ])
- ;;
- *)
- AS_IF([$our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null], [
- msnative_struct='-mms-bitfields'
- ])
- ;;
- esac
- AS_IF([test -z "$msnative_struct"], [
- AC_MSG_RESULT([no way])
- AC_MSG_WARN([produced libraries might be incompatible with MSVC-compiled code])
- ], [
+ AS_IF([$our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null], [
+ msnative_struct="-mms-bitfields"
CFLAGS="$CFLAGS $msnative_struct"
CXXFLAGS="$CXXFLAGS $msnative_struct"
AC_MSG_RESULT([${msnative_struct}])
+ ], [
+ AC_MSG_RESULT([no way])
+ AC_MSG_WARN([produced libraries might be incompatible with MSVC-compiled code])
])
])
CFLAGS="$CFLAGS -Wall -pedantic"