[PATCH 1/9] Adding configuration option --enable-sadr.

Dean Luga dluga93 at gmail.com
Tue Mar 7 00:56:25 CET 2017


From: dean <dluga93 at gmail.com>

It compiles with the macro SADR_OSPF defined.
---
 configure | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 09c6acf..ad92c7f 100755
--- a/configure
+++ b/configure
@@ -704,6 +704,7 @@ enable_debug
 enable_memcheck
 enable_client
 enable_ipv6
+enable_sadr
 enable_pthreads
 with_suffix
 with_sysconfig
@@ -725,7 +726,6 @@ LIBS
 CPPFLAGS
 CPP'
 
-
 # Initialize some variables set by options.
 ac_init_help=
 ac_init_version=false
@@ -2317,6 +2317,13 @@ else
   enable_ipv6=no
 fi
 
+# Check whether --enable-sadr was given.
+if test "${enable_sadr+set}" = set; then :
+  :
+else
+  enable_sadr=no
+fi
+
 # Check whether --enable-pthreads was given.
 if test "${enable_pthreads+set}" = set; then :
   enableval=$enable_pthreads;
@@ -2401,6 +2408,10 @@ else
 	SUFFIX=""
 fi
 
+if test "$enable_sadr" = yes ; then
+  CPPFLAGS="$CPPFLAGS -D SADR_OSPF"
+fi
+
 if test "$given_suffix" = yes ; then
    	SUFFIX="$with_suffix"
 fi
-- 
2.7.4



More information about the Bird-users mailing list