From: Stelian Ionescu Date: Tue, 2 Oct 2012 18:00:24 +0000 (+0200) Subject: Fix --with-system-libltdl and --with-system-libtool X-Git-Tag: release_3_0_0_beta1~1662^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbc2861a7a5d3fc548f31084a303b4ad7de3d34;p=thirdparty%2Ffreeradius-server.git Fix --with-system-libltdl and --with-system-libtool --- diff --git a/configure.in b/configure.in index 8203cb3ce6e..8456be65c58 100644 --- a/configure.in +++ b/configure.in @@ -81,15 +81,20 @@ fi AC_ARG_WITH(system-libltdl, [ --with-system-libltdl Use the libltdl installed in your system (default=use dlopen)], -[ -LIBLTDL="-lltdl" -INCLTDL=-DWITH_SYSTEM_LTDL -], -) +[], +[with_system_libltdl=no]) + +AS_IF([test "x$with_system_libltdl" = "xyes" ], +[ LIBLTDL="-lltdl" +INCLTDL=-DWITH_SYSTEM_LTDL]) dnl use system-wide libtool, if it exists AC_ARG_WITH(system-libtool, [ --with-system-libtool Use the libtool installed in your system (default=use our own)], +[], +[with_system_libtool=no]) + +AS_IF([test "x$with_system_libtool" = "xyes" ], [ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL], [