comparison configure.ac @ 1798:8dc43b30c6bf

Define _GNU_SOURCE properly, other header fixes This lets -std=c89 build for gcc 8.4.0
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Mar 2021 21:03:02 +0800
parents d5680e12ac33
children 7dc92355a986
comparison
equal deleted inserted replaced
1797:f680a19bd559 1798:8dc43b30c6bf
44 AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wno-pointer-sign]) 44 AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wno-pointer-sign])
45 DB_TRYADDCFLAGS([-Wno-pointer-sign]) 45 DB_TRYADDCFLAGS([-Wno-pointer-sign])
46 46
47 AC_MSG_NOTICE([Checking if compiler '$CC' supports -fno-strict-overflow]) 47 AC_MSG_NOTICE([Checking if compiler '$CC' supports -fno-strict-overflow])
48 DB_TRYADDCFLAGS([-fno-strict-overflow]) 48 DB_TRYADDCFLAGS([-fno-strict-overflow])
49
50 # needed for various extensions. define early before autoconf tests
51 AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions if glibc])
49 52
50 STATIC=0 53 STATIC=0
51 AC_ARG_ENABLE(static, 54 AC_ARG_ENABLE(static,
52 [ --enable-static Build static binaries], 55 [ --enable-static Build static binaries],
53 [ 56 [