drill: ./drill/config.log
( cd drill ; $(MAKE) -f Makefile all)
+./examples/config.log:
+ ( mkdir examples ; cd examples ; ../$(srcdir)/examples/configure LDFLAGS="-L../.libs" CPPFLAGS="-I.. -I../..")
+
+examples: ./examples/config.log
+ ( cd examples ; $(MAKE) -f Makefile all)
+
+
+
lib: $(LIBDNS_OBJECTS) b64_pton$U.o b64_ntop$U.o
$(LINK_LIB) -o libldns.la $(LIBDNS_LOBJECTS) b64_pton$U.lo b64_ntop$U.lo \
-rpath $(prefix)/lib
distclean: clean docclean libclean
rm -f ltmain.sh
- (cd drill ; $(MAKE) -f Makefile clean)
+ (cd drill ; $(MAKE) -f Makefile distclean)
realclean: clean docclean libclean
rm -f config.status
#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 openssl/ssl.h netinet/in.h])
+AC_CHECK_HEADERS([getopt.h stdbool.h openssl/ssl.h netinet/in.h time.h])
AC_CHECK_HEADERS(sys/param.h sys/mount.h,,,
[
[
docclean:
rm -rf doxydoc
+distclean: clean docclean
+ rm -f config.h
+ rm -f drill.h
+
realclean: clean docclean
rm -f tags
rm -f config.log
+ rm -f config.sub
+ rm -f ltmain.sh
rm -f config.status
rm -rf autom4te.cache
rm -f config.h
#AC_HEADER_STDC
#AC_HEADER_SYS_WAIT
# do the very minimum - we can always extend this
-AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h])
+AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h time.h])
AC_CHECK_HEADERS(sys/param.h sys/mount.h,,,
[
[
#AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir")
+AH_BOTTOM([
+
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <assert.h>
+
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+])
+
AC_CONFIG_FILES([Makefile
drill.h
])
#define _DRILL_H_
#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif /* HAVE_STDINT_H */
-
#include "drill_util.h"
#define DRILL_VERSION "@PACKAGE_VERSION@"
]
)
+AH_BOTTOM([
+
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <assert.h>
+
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+])
+
+
#AC_CHECK_FUNCS([mkdir rmdir strchr strrchr strstr])
#AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir")
* Licensed under the GPL version 2
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <unistd.h>
-#include <stdbool.h>
-
-#include <stdint.h>
+#include "config.h"
#include <ldns/dns.h>