]> granicus.if.org Git - sudo/commitdiff
Call AC_ENABLE_SHARED and check the status of enable_shared to know when
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 07:00:01 +0000 (07:00 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 07:00:01 +0000 (07:00 +0000)
shared libs are available.

configure.in

index 637989b9b51823f2d5a4890482134f5e504f281d..7035c98cf475f2c51dcfc9bd06ac677350ab19e2 100644 (file)
@@ -1137,17 +1137,18 @@ cross_compiling="no"
 AC_PROG_CPP
 
 dnl
-dnl Libtool magic; disable static lib since we require LD_PRELOAD to work
+dnl Libtool magic; enable shared libs and disable static libs
 dnl
 AC_CANONICAL_HOST
 AC_CANONICAL_SYSTEM
+AC_ENABLE_SHARED
 AC_DISABLE_STATIC
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
 
 dnl
 dnl Defer with_noexec until after libtool magic runs
 dnl
-test "$can_build_shared" = "no" && with_noexec=no
+test "$enable_shared" = "no" && with_noexec=no
 AC_MSG_CHECKING(path to sudo_noexec.so)
 AC_ARG_WITH(noexec, [  --with-noexec           fully qualified pathname of sudo_noexec.so],
 [case $with_noexec in