comparison src/configure.ac @ 13690:4034ddb84f01 v8.0.1717

patch 8.0.1717: C89 check causes too much trouble commit https://github.com/vim/vim/commit/3cba73423e5304ef7ccdb2280d65562d2f06f483 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 15 13:12:46 2018 +0200 patch 8.0.1717: C89 check causes too much trouble Problem: C89 check causes too much trouble. Solution: Remove enforcing C89 for now.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Apr 2018 13:15:06 +0200
parents 6b49b6ea9e43
children 7152032191d7
comparison
equal deleted inserted replaced
13689:e8e253f1cca7 13690:4034ddb84f01
59 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 59 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
60 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 60 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
61 CFLAGS="$CFLAGS -fno-strength-reduce" 61 CFLAGS="$CFLAGS -fno-strength-reduce"
62 fi 62 fi
63 fi 63 fi
64
65 dnl Declare what standards the code should comply with
66 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700"
67 fi 64 fi
68 65
69 dnl clang-500.2.75 or around has abandoned -f[no-]strength-reduce and issues a 66 dnl clang-500.2.75 or around has abandoned -f[no-]strength-reduce and issues a
70 dnl warning when that flag is passed to. Accordingly, adjust CFLAGS based on 67 dnl warning when that flag is passed to. Accordingly, adjust CFLAGS based on
71 dnl the version number of the clang in use. 68 dnl the version number of the clang in use.
4401 # IBM z/OS reset CFLAGS for config.mk 4398 # IBM z/OS reset CFLAGS for config.mk
4402 if test "$zOSUnix" = "yes"; then 4399 if test "$zOSUnix" = "yes"; then
4403 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 4400 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
4404 fi 4401 fi
4405 4402
4406 dnl Declare what standards the code should comply with.
4407 dnl But not when using GTK, the header files cause all kinds of warnings.
4408 dnl But not when using Ruby, it needs "inline".
4409 if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
4410 CFLAGS="$CFLAGS -ansi"
4411 fi
4412
4413 dnl write output files 4403 dnl write output files
4414 AC_OUTPUT(auto/config.mk:config.mk.in) 4404 AC_OUTPUT(auto/config.mk:config.mk.in)
4415 4405
4416 dnl vim: set sw=2 tw=78 fo+=l: 4406 dnl vim: set sw=2 tw=78 fo+=l: