lyx_mirror/config/cygwin.m4
Georg Baum e811433ec7 Remove -mms-bitfields compiler option on windows, since all qt
releases that we support with the gcc toolchain on windows are
	compiled without it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13421 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-18 17:46:15 +00:00

23 lines
658 B
Bash

# Macro added for some Cygwin-specific support -*- sh -*-
# @author@: Kayvan Sylvan
AC_DEFUN([CHECK_WITH_CYGWIN],
[
case $host_os in
cygwin* | mingw* | pw32* )
# Export all symbols to Win32 DLL using MinGW 2.0 ld.
WIN32_LD_EXPORT_ALL_SYMBOLS=''
AC_MSG_CHECKING([whether ld accepts --export-all-symbols])
if $LD --help 2>&1 | egrep 'export-all-symbols' > /dev/null; then
WIN32_LD_EXPORT_ALL_SYMBOLS='-Wl,--export-all-symbols'
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
if test x"$WIN32_LD_EXPORT_ALL_SYMBOLS" != x; then
LDFLAGS="$LDFLAGS $WIN32_LD_EXPORT_ALL_SYMBOLS"
fi
;;
esac
])