From: Erik Rozendaal Date: Thu, 16 Dec 2004 08:50:53 +0000 (+0000) Subject: configure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline X-Git-Tag: release-0.50~671 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c822bcbc4bea57d7e08df83b1bc335f2f9a437f5;p=thirdparty%2Fldns.git configure.ac: (AC_C_CONST, AC_C_INLINE) Check for const and inline keywords. (OURCPPFLAGS) New. (OURCFLAGS) Moved from Makefile.in. Makefile.in: Removed OURCFLAGS. util.h: (read_uint16, read_uint32) Copied from NSD. rr.c: Use read_uint16 and read_uint32. --- diff --git a/configure.ac b/configure.ac index 1e0710cd..1f87ecbf 100644 --- a/configure.ac +++ b/configure.ac @@ -5,22 +5,31 @@ AC_PREREQ(2.57) AC_INIT(libdns, 0.01, libdns@nlnetlabs.nl, libdns0.01) AC_CONFIG_SRCDIR([packet.c]) +OURCPPFLAGS='-ansi -pedantic' +CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} +OURCFLAGS='-g -O2 -Wall -W -Wwrite-strings' +CFLAGS=${CFLAGS:-${OURCFLAGS}} + AC_AIX # Checks for programs. AC_PROG_CC AC_PROG_MAKE_SET +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_INLINE + # my own checks AC_PATH_PROG(doxygen, doxygen, "/usr/bin/doxygen") # Checks for libraries. # Checks for header files. -#AC_HEADER_STDC +AC_HEADER_STDC #AC_HEADER_SYS_WAIT #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h]) # do the very minimum - we can always extend this -AC_CHECK_HEADERS([getopt.h stdbool.h stdlib.h stdio.h openssl/ssl.h assert.h netinet/in.h ctype.h]) +AC_CHECK_HEADERS([getopt.h stdbool.h openssl/ssl.h netinet/in.h]) AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [ [