]> granicus.if.org Git - sudo/commitdiff
add --with-efence option
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 15 Jan 2002 20:48:34 +0000 (20:48 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 15 Jan 2002 20:48:34 +0000 (20:48 +0000)
configure.in

index 00ec1e59f058b4c1b86cd62a228e457459ea55ad..cfe3b9e035e45a882c76449c27721d63f850c0f3 100644 (file)
@@ -203,6 +203,19 @@ AC_ARG_WITH(devel, [  --with-devel            add developement options],
                ;;
 esac])
 
+AC_ARG_WITH(efence, [  --with-efence           link with -lefence for malloc() debugging],
+[case $with_efence in  
+    yes)       echo 'Sudo will link with -lefence (Electric Fence)'
+               LIBS="${LIBS} -lefence"
+               if test -f /usr/local/lib/libefence.a; then
+                   LDFLAGS="${LDFLAGS} -L/usr/local/lib"
+               fi
+               ;;
+    no)                ;;
+    *)         echo "Ignoring unknown argument to --with-efence: $with_efence"
+               ;;
+esac])
+
 AC_ARG_WITH(csops, [  --with-csops            add CSOps standard options],
 [case $with_csops in  
     yes)       echo 'Adding CSOps standard options'