2 AM_INIT_AUTOMAKE(libmsn, 0.1)
4 AM_CONFIG_HEADER(config.h)
10 AC_ARG_ENABLE(msn, [ --disable-msn Build without MSN], build_msn="$enableval", build_msn="yes")
11 AM_CONDITIONAL(BUILD_MSN, test "x$build_msn" = xyes)
13 if test "$build_msn" = "yes"; then
16 AC_CHECK_HEADERS([sstream strstream])
19 # Checks for header files.
21 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h])
23 # Checks for typedefs, structures, and compiler characteristics.
28 # Checks for library functions.
29 AC_FUNC_SELECT_ARGTYPES
30 AC_CHECK_FUNCS([gethostbyname gethostname getpass inet_ntoa memset select socket strerror strtol])
32 # Checks for libraries.
34 [ --with-curl=[DIR] curl-config in DIR],
35 [CURL_CONFIG=$withval],
36 [ AC_PATH_PROG(CURL_CONFIG,
38 AC_MSG_ERROR(curl-config not found))])
40 CXXFLAGS="$CXXFLAGS `$CURL_CONFIG --cflags`"
43 AC_OUTPUT(Makefile msn/Makefile)