- ln without -f, it checks if the file exists anway.
- check AC_C_INLINE after setting flags, it changes the results.
- INLINE used for ldns_power.
copy-headers:
if [ ! -d include ] ; then mkdir include ; fi ;
- if [ ! -d include/ldns ] ; then ln -sf ../ldns ./include/ldns ; fi ;
+ if [ ! -d include/ldns ] ; then ln -s ../ldns ./include/ldns ; fi ;
for i in $(LIBDNS_HEADERS); do \
if [ $(srcdir)/ldns/$$i -nt ./include/ldns/$$i ] ; then \
MVPROG=/bin/cp $(INSTALL) -m 644 $$i ./include/ldns/; \
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
-AC_C_INLINE
AC_LANG_C
AC_TYPE_SIZE_T
CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
CHECK_COMPILER_FLAG(std=c99, [CFLAGS="$CFLAGS -std=c99"], [CFLAGS="$CFLAGS -ansi"])
+AC_C_INLINE
AC_CHECK_TYPE(int8_t, char)
AC_CHECK_TYPE(int16_t, short)
AC_CHECK_TYPE(int32_t, int)
* (or 1 of b < 1)
*/
/*@unused@*/
-static inline long
+INLINE long
ldns_power(long a, long b) {
long result = 1;
while (b > 0) {