2013-07-30 14:55:09 -05:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
2013-08-08 20:14:43 -05:00
|
|
|
# known to work with autconf version: autoconf (GNU Autoconf) 2.69
|
|
|
|
#
|
2013-07-30 14:55:09 -05:00
|
|
|
# @configure_input@
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_PREREQ([2.68])
|
|
|
|
AC_INIT([getdns], [0.320], [melinda.shore@nomountain.net])
|
2013-08-15 09:16:15 -05:00
|
|
|
AC_CONFIG_SRCDIR([src/getdns/getdns.h])
|
2013-08-08 20:14:43 -05:00
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
LT_INIT
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2013-07-30 14:55:09 -05:00
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
# Checks for libraries.
|
2013-08-09 16:04:25 -05:00
|
|
|
found_all_libs=1
|
|
|
|
AC_MSG_NOTICE([Checking for dependencies ldns and libevent])
|
|
|
|
AC_CHECK_LIB([event_core], [event_base_new], [], [found_all_libs=0])
|
|
|
|
AC_CHECK_LIB([ldns], [ldns_dname_new_frm_str], [], [found_all_libs=0])
|
|
|
|
|
|
|
|
if test $found_all_libs == 0
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([One more dependencies is missing])
|
|
|
|
fi
|
2013-07-30 14:55:09 -05:00
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_CHECK_HEADERS([inttypes.h netinet/in.h stdint.h stdlib.h string.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_UINT16_T
|
|
|
|
AC_TYPE_UINT32_T
|
|
|
|
AC_TYPE_UINT64_T
|
|
|
|
AC_TYPE_UINT8_T
|
|
|
|
|
2013-08-15 09:16:15 -05:00
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile src/getdns/Makefile src/example/Makefile src/test/Makefile])
|
|
|
|
AC_CONFIG_SUBDIRS([src/ src/getdns/ src/example/ src/test/])
|
2013-07-30 14:55:09 -05:00
|
|
|
AC_OUTPUT
|