1 dnl aclocal.m4 --- Dynamically linked library support for XEmacs
2 dnl Copyright (C) 1998 Free Software Foundation, Inc.
3 dnl Author: William Perry <wmperry@aventail.com>
4 dnl This file is part of XEmacs
6 AC_DEFUN(XE_MAKE_SHAREDLIB, [
12 AC_MSG_CHECKING(how to build a shared library)
14 UNIX_SV*|UNIX_System_V*)
25 dll_lflags="-Bshareable"
26 dll_cflags="-fPIC -DPIC"
31 dll_lflags="-dp -assert pure-text -assert nodefinitions"
37 dll_oflags="-W0,-y-o -W0,-y"
55 dll_lflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:\${@:.ell=.exp} -b noentry -lc"
62 if test "$GCC" = "yes" ; then
76 dll_cflags="-DDLSYM_NEEDS_UNDERSCORE -DPIC -fPIC"
77 dll_lflags="-Bshareable"
94 AC_MSG_RESULT("lflags: $dll_lflags cflags: $dll_cflags")