Browse Source

set BOOST_LDFLAGS only when a non-trivial argument (i.e. neither "yes" nor "no")
to --with-boost-lib is given.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1641 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 15 years ago
parent
commit
af735f4b79
1 changed files with 3 additions and 4 deletions
  1. 3 4
      configure.ac

+ 3 - 4
configure.ac

@@ -169,10 +169,9 @@ AC_SUBST(BOOST_INCLUDES)
 AC_ARG_WITH([boost-lib],
 AC_HELP_STRING([--with-boost-lib=PATH],
   [specify exact directory for Boost libraries]),
-  [boostlib_path="$withval"])
-if test "X$boostlib_path" != "X"; then
-	BOOST_LDFLAGS="-L$boostlib_path"
-fi
+  [if test "$withval" != "yes" -a "$withval" != "no"; then
+   BOOST_LDFLAGS="-L$withval"
+   fi])
 AC_SUBST(BOOST_LDFLAGS)
 
 # Check availability of the Boost System library