]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/configure.in: only assume implicit installation if
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 10 Mar 1999 20:39:03 +0000 (20:39 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 10 Mar 1999 20:39:03 +0000 (20:39 +0000)
libltdl was libtoolized.  If not, print a warning message
suggesting the use of --enable-ltdl-install or of one of the
AC_LIBLTDL_* macros.

ChangeLog
libltdl/configure.in

index cf3bac7bd485fee2370dd2888647fd3c6796629e..e9a75a86a9245fbfb7e53edb569ba22a46b2d7f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-03-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libltdl/configure.in: only assume implicit installation if
+       libltdl was libtoolized.  If not, print a warning message
+       suggesting the use of --enable-ltdl-install or of one of the
+       AC_LIBLTDL_* macros.
+
        * libtool.m4 (AC_LIBTOOL_SETUP): new macro, that does all the
        configure-work that AC_PROG_LIBTOOL used to do; add
        --cache-file=$cache_file to libtool_flags
index 5b66c1b9a871eed27a51b80effde82a11416574a..510e71dbacd1df6c678b8391be368242f070765a 100644 (file)
@@ -1,6 +1,19 @@
 dnl Process this file with autoconf to create configure.
 dnl Initialize the libltdl package.
 AC_INIT(ltdl.c)
+
+if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
+  if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
+    # if libltdl is libtoolized, it is assumed to be stand-alone and
+    # installed unless the command line overrides it (tested above)
+    enable_ltdl_install=yes
+  else
+    AC_MSG_WARN([*** The top-level configure must select either])
+    AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
+    AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
+  fi
+fi
+
 AM_INIT_AUTOMAKE(libltdl,1.0,-)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE