1997-04-02 03:21:43 +08:00
|
|
|
dnl Process this file with autoconf to create configure.
|
1997-09-15 20:31:09 +08:00
|
|
|
AC_INIT(ltmain.in)
|
1997-11-28 00:57:00 +08:00
|
|
|
|
1998-12-16 16:19:50 +08:00
|
|
|
AM_INIT_AUTOMAKE(libtool,1.2e)
|
1997-04-02 02:29:23 +08:00
|
|
|
|
|
|
|
pkgdatadir='${datadir}/libtool'
|
|
|
|
AC_SUBST(pkgdatadir)
|
|
|
|
aclocaldir='${datadir}/aclocal'
|
|
|
|
AC_SUBST(aclocaldir)
|
|
|
|
|
* configure.in (AC_CONFIG_SUBDIRS): add libltdl, demo, mdemo and
depdemo commented out, so that `dist' works before `check'
(BUILD_LTDL): will contain libltdl if --enable-ltdl-install
* Makefile.am (DIST_SUBDIRS): expand SUBDIRS and add depdemo,
commented out
(SUBDIRS): add $(BUILT_LTDL)
* libltdl/Makefile.am (EXTRA_LTLIBRARIES): add libtest.la, the
same as libltdl but always a convenience library. Not built by
default. Both libraries now depend on the libtool script, that
depends on ../libtool and is rebuilt when needed
* mdemo/Makefile.am (mdemo, mdemo.debug): depend on and link with
../libltdl/libtest.la, that is rebuilt if needed
(mdemo_LDADD): removed $(LIBADD_M), to avoid silent failures
(foo1.la): renamed from libfoo1.la; test removing the lib prefix
* mdemo/foo1.c: renamed libfoo1_LTX symbols to foo1_LTX
* mdemo/main.c: don't include string.h nor math.h, nor refer to
sin nor cos
* tests/mdemo-exec.test: renamed libfoo1.la to foo1.la
* tests/mdemo-inst.test: ditto
1999-01-11 03:16:30 +08:00
|
|
|
AC_ARG_ENABLE(ltdl-install,
|
|
|
|
[--enable-ltdl-install install libltdl])
|
|
|
|
AM_CONDITIONAL(INSTALL_LTDL, test x$enable_ltdl_install = xyes)
|
|
|
|
if test x$enable_ltdl_install = xyes; then
|
|
|
|
BUILD_LTDL=libltdl
|
|
|
|
else
|
|
|
|
BUILD_LTDL=
|
|
|
|
fi
|
|
|
|
AC_SUBST(BUILD_LTDL)
|
|
|
|
|
1997-04-02 03:21:43 +08:00
|
|
|
dnl Use the specified CC, RANLIB, and LD while running ltconfig.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
1997-07-02 04:04:47 +08:00
|
|
|
AM_PROG_LD
|
1997-07-13 05:39:00 +08:00
|
|
|
AM_PROG_NM
|
1997-07-01 12:38:32 +08:00
|
|
|
AC_PROG_LN_S
|
1997-04-02 03:21:43 +08:00
|
|
|
|
1997-11-28 00:57:00 +08:00
|
|
|
dnl For the `lineno' script (which puts line numbers into `ltconfig').
|
1997-08-21 13:16:08 +08:00
|
|
|
AC_PROG_AWK
|
|
|
|
|
* configure.in (AC_CONFIG_SUBDIRS): add libltdl, demo, mdemo and
depdemo commented out, so that `dist' works before `check'
(BUILD_LTDL): will contain libltdl if --enable-ltdl-install
* Makefile.am (DIST_SUBDIRS): expand SUBDIRS and add depdemo,
commented out
(SUBDIRS): add $(BUILT_LTDL)
* libltdl/Makefile.am (EXTRA_LTLIBRARIES): add libtest.la, the
same as libltdl but always a convenience library. Not built by
default. Both libraries now depend on the libtool script, that
depends on ../libtool and is rebuilt when needed
* mdemo/Makefile.am (mdemo, mdemo.debug): depend on and link with
../libltdl/libtest.la, that is rebuilt if needed
(mdemo_LDADD): removed $(LIBADD_M), to avoid silent failures
(foo1.la): renamed from libfoo1.la; test removing the lib prefix
* mdemo/foo1.c: renamed libfoo1_LTX symbols to foo1_LTX
* mdemo/main.c: don't include string.h nor math.h, nor refer to
sin nor cos
* tests/mdemo-exec.test: renamed libfoo1.la to foo1.la
* tests/mdemo-inst.test: ditto
1999-01-11 03:16:30 +08:00
|
|
|
AC_CONFIG_SUBDIRS(libltdl demo mdemo dnl #depdemo
|
|
|
|
)
|
1997-04-02 02:46:48 +08:00
|
|
|
AC_OUTPUT([Makefile doc/Makefile tests/Makefile])
|
1997-04-02 03:21:43 +08:00
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# mode:shell-script
|
|
|
|
# sh-indentation:2
|
|
|
|
# End:
|