Add headers and fix build
Add more C headers and allow libsb to build correctly with warnings.
This commit is contained in:
parent
103ffffbd7
commit
943afc734f
22 changed files with 6155 additions and 38 deletions
19
configure.ac
19
configure.ac
|
|
@ -1,13 +1,13 @@
|
|||
# Title, version, etc.
|
||||
AC_INIT(\
|
||||
[RTR], \
|
||||
[SB0], \
|
||||
[0.1.0], \
|
||||
[mail@acm.contact], \
|
||||
[rtr], \
|
||||
[sb0], \
|
||||
[https://www.delay.cloud/] \
|
||||
)
|
||||
|
||||
AC_COPYRIGHT(ISC License)
|
||||
AC_COPYRIGHT(All rights reserved.)
|
||||
|
||||
# AC_CHECK_LIB is not utilized, since it checks the presence of libraries by
|
||||
# linking them to test program; this process introduces more overhead and longer
|
||||
|
|
@ -57,16 +57,25 @@ AC_CONFIG_FILES([\
|
|||
AC_CONFIG_SRCDIR([src/main.c])
|
||||
|
||||
|
||||
CFLAGS="$CFLAGS -std=c99 -pedantic-errors -Wall -Wold-style-definition -Wextra \
|
||||
-Wmissing-prototypes -Wstrict-prototypes" # Compile to C11
|
||||
CFLAGS="$CFLAGS -std=c89 -pedantic-errors -Wall -Wold-style-definition -Wextra \
|
||||
-Wmissing-prototypes -Wstrict-prototypes" # Compile to C89
|
||||
# without
|
||||
# GNU extensions.
|
||||
# Warnings on.
|
||||
|
||||
# Change -std=c++98 to -std=c++11.
|
||||
|
||||
CXXFLAGS="$CFLAGS -std=c++98 -pedantic-errors -Wall -Wold-style-definition \
|
||||
-Wextra -Wmissing-prototypes -Wstrict-prototypes" # Compile to C++98
|
||||
# without
|
||||
# GNU extensions.
|
||||
# Warnings on.
|
||||
|
||||
LT_INIT([shared disable-static]) # Start GNU Libtool. Satic libraries
|
||||
# disabled; shared/dynamic linking.
|
||||
|
||||
AC_PROG_CC([gcc]) # Autoconf for C compiler; obviously set to use GCC.
|
||||
AC_PROG_CXX([g++])
|
||||
|
||||
AC_OUTPUT # Generate files.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue