]> andersk Git - libfaim.git/blobdiff - configure.in
- Sun Oct 14 19:45:54 PDT 2001
[libfaim.git] / configure.in
index 2ceccc680c601422e70795af25f898822ae6e6bd..14deb3cba6f72b6cd4a8507a3472a379a588bc00 100644 (file)
@@ -1,7 +1,8 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(src/login.c)
-AM_INIT_AUTOMAKE(libfaim, 0.99.1)
+AM_INIT_AUTOMAKE(libfaim, 0.99.2)
 
+AC_PREFIX_DEFAULT(/usr)
 AM_CONFIG_HEADER(include/libfaim_config.h)
 
 dnl Checks for programs.
@@ -19,6 +20,14 @@ AC_CHECK_LIB(faim, aim_sessioninit)
 dnl Replace `main' with a function in -lpcap:
 dnl AC_CHECK_LIB(pcap, main)
 
+LIBTOOL="$LIBTOOL --silent"
+
+AC_ARG_ENABLE(debug,    [  --disable-debug         compile without debugging options],enable_debug=no,enable_debug=yes)
+
+if test "$enable_debug" = yes ; then
+        CFLAGS="$CFLAGS -Wall -g"
+fi
+
 dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
@@ -39,6 +48,15 @@ AC_FUNC_STRFTIME
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strstr strtol uname)
 
+AC_CHECK_LIB(readline, rl_callback_handler_install,
+       READLINELIB="-lreadline -lcurses",
+       AC_MSG_ERROR(unable to find GNU readline),
+       "-lcurses"
+)
+
+AC_SUBST(CFLAGS)
+AC_SUBST(READLINELIB)
+
 AC_OUTPUT([
        Makefile
        include/Makefile
This page took 0.031023 seconds and 4 git commands to generate.