]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - configure.in
BGP: Support for large communities
[thirdparty/bird.git] / configure.in
index 5af574a5cef60d8072e48c14afa9ffa1eb796310..16a0b4146241806534c3735f19e630c86b611d5e 100644 (file)
@@ -69,7 +69,8 @@ fi
 AC_SUBST(CONFIG_FILE)
 AC_SUBST(CONTROL_SOCKET)
 
-AC_SEARCH_LIBS(clock_gettime,[c rt posix4])
+AC_SEARCH_LIBS(clock_gettime, [c rt posix4], ,
+       AC_MSG_ERROR([[Function clock_gettime not available.]]))
 
 AC_CANONICAL_HOST
 
@@ -84,12 +85,12 @@ if test -z "$GCC" ; then
 fi
 
 # Enable threads by default just in Linux and FreeBSD
-if test "$enable_pthreads" = try ; then
-       case "$host_os" in
-               (linux* | freebsd*)     enable_pthreads=try ;;
-               (*)                     enable_pthreads=no ;;
-       esac
-fi
+#if test "$enable_pthreads" = try ; then
+#      case "$host_os" in
+#              (linux* | freebsd* | openbsd* | netbsd* )       enable_pthreads=try ;;
+#              (*)                             enable_pthreads=no ;;
+#      esac
+#fi
 
 if test "$enable_pthreads" != no ; then
        BIRD_CHECK_PTHREADS
@@ -205,6 +206,9 @@ fi
 AC_SUBST(iproutedir)
 
 all_protocols="$proto_bfd bgp ospf pipe $proto_radv rip static"
+if test "$ip" = ipv6 ; then
+   all_protocols="$all_protocols babel"
+fi
 all_protocols=`echo $all_protocols | sed 's/ /,/g'`
 
 if test "$with_protocols" = all ; then
@@ -269,8 +273,9 @@ if test "$enable_client" = yes ; then
        AC_CHECK_LIB(ncurses, tgetent, USE_TERMCAP_LIB=-lncurses,
                AC_CHECK_LIB(curses, tgetent, USE_TERMCAP_LIB=-lcurses,
                        AC_CHECK_LIB(tinfow, tgetent, USE_TERMCAP_LIB=-ltinfow,
-                               AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo
-                                       AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap)))))
+                               AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo,
+                                       AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap,
+                                               AC_MSG_ERROR([[The client requires ncurses library. Either install the library or use --disable-client to compile without the client.]]))))))
        AC_CHECK_LIB(readline, rl_callback_read_char, CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB",
                AC_MSG_ERROR([[The client requires GNU readline library 2.1 or newer. Either install the library or use --disable-client to compile without the client.]]), $USE_TERMCAP_LIB)
        AC_CHECK_LIB(readline, rl_crlf, AC_DEFINE(HAVE_RL_CRLF),,$USE_TERMCAP_LIB)