mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-27 07:09:26 +08:00
72abadcd76
* tests/mdemo-shared.test, tests/mdemo-static.test: ditto * tests/Makefile.am: ditto * doc/libtool.texi: document them * demo/Makefile.am, mdemo/Makefile.am (@STATIC@): do not use -static unconditionally, it can't work with --disable-static * demo/configure.in, mdemo/configure.in: check whether libtool was configured to build static libraries and, if not, set STATIC to an empty string
24 lines
399 B
Plaintext
24 lines
399 B
Plaintext
dnl Initialize the mdemo package.
|
|
AC_INIT(main.c)
|
|
AM_INIT_AUTOMAKE(mdemo,0.1)
|
|
|
|
AC_PROG_CC
|
|
AC_C_CONST
|
|
AC_EXEEXT
|
|
AM_PROG_LIBTOOL
|
|
|
|
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
|
|
STATIC=-static
|
|
else
|
|
STATIC=
|
|
fi
|
|
AC_SUBST(STATIC)
|
|
|
|
AC_CHECK_HEADERS(math.h)
|
|
|
|
AC_CHECK_LIB(m, cos, LIBADD_M="-lm", LIBADD_M=)
|
|
AC_SUBST(LIBADD_M)
|
|
|
|
dnl Output the makefile
|
|
AC_OUTPUT(Makefile)
|