libtool/demo/configure.in
Alexandre Oliva 0506cf492e * demo/configure.in: set DLPREOPEN to -dlopen if we don't have
shared libraries
* demo/Makefile.am (DLPREOPEN): use instead of -dlpreopen
(STATIC): use $(STATIC), not @STATIC@
* mdemo/Makefile.am (STATIC): ditto
* demo/Makefile.am, mdemo/Makefile.am (STATIC): do not use
1999-01-21 04:09:39 +00:00

30 lines
561 B
Plaintext

dnl Initialize the hell package.
AC_INIT(hello.c)
AM_INIT_AUTOMAKE(hell,1.0)
AC_PROG_CC
AC_C_CONST
AC_EXEEXT
AM_PROG_LIBTOOL
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
STATIC=-static
DLPREOPEN=-dlpreopen
else
STATIC=
DLPREOPEN=-dlopen
fi
AC_SUBST(STATIC)
AC_SUBST(DLPREOPEN)
AM_CONDITIONAL(BINARY_HELLDL, [dnl
grep '^global_symbol_pipe=..*$' ./libtool >/dev/null])
AC_CHECK_HEADERS(string.h math.h)
AC_CHECK_LIB(m, cos, LIBADD_M="-lm", LIBADD_M=)
AC_SUBST(LIBADD_M)
dnl Output the makefile
AC_OUTPUT(Makefile)