Added --with-system-libltdl
[freeradius.git] / configure.in
index fe94d3e..770068d 100644 (file)
@@ -72,18 +72,26 @@ if test -z "$makever"; then
                from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing.)
 fi
 
-dnl libltdl is installable
+AC_ARG_WITH(system-libtldl,
+[  --with-system-libtldl   Use the libtltdl installed in your system (default=use our own)],
+[
+LIBLTDL="-ltdl"
+INCLTDL=
+LTDL_SUBDIRS=
+],
+[
 AC_LIBLTDL_INSTALLABLE
 
 dnl tell Makefile to build ltdl if needed
 if test x"$enable_ltdl_install" = x"yes"; then
   LTDL_SUBDIRS=libltdl
 fi
+])
 AC_SUBST(LTDL_SUBDIRS)
 
 dnl use system-wide libtool, if it exists
 AC_ARG_WITH(system-libtool,
-[  --with-system-libtool              try to use libtool installed in your system [default=use our own]],
+[  --with-system-libtool   Use the libtool installed in your system (default=use our own)],
 [ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) ],
 [
   LIBTOOL="`pwd`/libtool"