Always set LIB_roken when we find libroken
authorAndrew Deason <adeason@sinenomine.net>
Tue, 29 Mar 2011 18:04:48 +0000 (13:04 -0500)
committerDerrick Brashear <shadow@dementia.org>
Wed, 30 Mar 2011 15:09:33 +0000 (08:09 -0700)
If we found an external libroken when configuring, we were not setting
LIB_roken if --with-roken=DIR was not specified. Set LIB_roken when we
find a libroken without --with-roken=DIR.

Change-Id: I927647a14f4c5cd8925f0e719b0a9b4164584571
Reviewed-on: http://gerrit.openafs.org/4376
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/cf/roken.m4

index 662cf0e..ee1f095 100644 (file)
@@ -37,8 +37,8 @@ AC_DEFUN([_OPENAFS_ROKEN_CHECK], [
   AS_IF([test x"$roken_foundlib" = xtrue && test x"$roken_foundheader" = xtrue],
         [AS_IF([test x"$roken_path" != x],
               [CPPFLAGS_roken="-I$roken_path/include"
-               LDFLAGS_roken="-L$roken_path/lib"
-               LIB_roken="-lroken"])
+               LDFLAGS_roken="-L$roken_path/lib"])
+        LIB_roken="-lroken"
         $2],
        [$3])
 ])