1 dnl Process this file with autoconf to produce a configure script.
3 AM_INIT_AUTOMAKE(libfaim, 0.99.2)
5 AC_PREFIX_DEFAULT(/usr)
6 AM_CONFIG_HEADER(include/libfaim_config.h)
8 dnl Checks for programs.
17 dnl Checks for libraries.
18 dnl Replace `main' with a function in -lfaim:
19 AC_CHECK_LIB(faim, aim_sessioninit)
20 dnl Replace `main' with a function in -lpcap:
21 dnl AC_CHECK_LIB(pcap, main)
23 LIBTOOL="$LIBTOOL --silent"
25 AC_ARG_ENABLE(debug, [ --disable-debug compile without debugging options],enable_debug=no,enable_debug=yes)
27 if test "$enable_debug" = yes ; then
28 CFLAGS="$CFLAGS -Wall -g"
31 dnl Checks for header files.
34 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
36 dnl Checks for typedefs, structures, and compiler characteristics.
44 dnl Checks for library functions.
49 AC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strstr strtol uname)
51 AC_CHECK_LIB(readline, rl_callback_handler_install,
52 READLINELIB="-lreadline -lcurses",
53 AC_MSG_ERROR(unable to find GNU readline),
65 utils/faimtest/Makefile