Fix --with-system-libltdl and --with-system-libtool
authorStelian Ionescu <sionescu@cddr.org>
Tue, 2 Oct 2012 18:00:24 +0000 (20:00 +0200)
committerStelian Ionescu <sionescu@cddr.org>
Tue, 2 Oct 2012 18:00:24 +0000 (20:00 +0200)
configure.in

index 8203cb3..8456be6 100644 (file)
@@ -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],
 [