]> andersk Git - libfaim.git/blame - configure.in
- Sun Oct 14 19:45:54 PDT 2001
[libfaim.git] / configure.in
CommitLineData
dd60ff8b 1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/login.c)
fe214d24 3AM_INIT_AUTOMAKE(libfaim, 0.99.2)
dd60ff8b 4
60c74d0f 5AC_PREFIX_DEFAULT(/usr)
dd60ff8b 6AM_CONFIG_HEADER(include/libfaim_config.h)
7
8dnl Checks for programs.
9AC_PROG_CC
10AC_PROG_CXX
11AC_PROG_INSTALL
12AC_PROG_LN_S
13AC_PROG_MAKE_SET
14AC_PROG_RANLIB
15AM_PROG_LIBTOOL
16
17dnl Checks for libraries.
18dnl Replace `main' with a function in -lfaim:
19AC_CHECK_LIB(faim, aim_sessioninit)
20dnl Replace `main' with a function in -lpcap:
21dnl AC_CHECK_LIB(pcap, main)
22
7daf4a38 23LIBTOOL="$LIBTOOL --silent"
24
646c6b52 25AC_ARG_ENABLE(debug, [ --disable-debug compile without debugging options],enable_debug=no,enable_debug=yes)
26
27if test "$enable_debug" = yes ; then
28 CFLAGS="$CFLAGS -Wall -g"
29fi
30
dd60ff8b 31dnl Checks for header files.
32AC_HEADER_STDC
33AC_HEADER_SYS_WAIT
34AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
35
36dnl Checks for typedefs, structures, and compiler characteristics.
37AC_C_CONST
38AC_C_INLINE
39AC_TYPE_PID_T
40AC_TYPE_SIZE_T
41AC_HEADER_TIME
42AC_STRUCT_TM
43
44dnl Checks for library functions.
45AC_FUNC_MEMCMP
46AC_TYPE_SIGNAL
47AC_FUNC_STRFTIME
48AC_FUNC_VPRINTF
49AC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strstr strtol uname)
50
b562f484 51AC_CHECK_LIB(readline, rl_callback_handler_install,
01836aac 52 READLINELIB="-lreadline -lcurses",
66413340 53 AC_MSG_ERROR(unable to find GNU readline),
54 "-lcurses"
b562f484 55)
56
57AC_SUBST(CFLAGS)
58AC_SUBST(READLINELIB)
59
dd60ff8b 60AC_OUTPUT([
61 Makefile
62 include/Makefile
63 src/Makefile
64 utils/Makefile
65 utils/faimtest/Makefile
66])
67
This page took 0.116017 seconds and 5 git commands to generate.