]> git.lyx.org Git - lyx.git/blob - config/cygwin.m4
compatibility with new intel macs
[lyx.git] / config / cygwin.m4
1 # Macro added for some Cygwin-specific support     -*- sh -*-
2 # @author@: Kayvan Sylvan
3
4 AC_DEFUN([CHECK_WITH_CYGWIN],
5 [
6   case $host_os in
7   cygwin* | mingw* | pw32* )
8     # Export all symbols to Win32 DLL using MinGW 2.0 ld.
9     WIN32_LD_EXPORT_ALL_SYMBOLS=''
10     AC_MSG_CHECKING([whether ld accepts --export-all-symbols])
11     if $LD --help 2>&1 | egrep 'export-all-symbols' > /dev/null; then
12       WIN32_LD_EXPORT_ALL_SYMBOLS='-Wl,--export-all-symbols'
13       AC_MSG_RESULT([yes])
14     else
15       AC_MSG_RESULT([no])
16     fi
17     if test x"$WIN32_LD_EXPORT_ALL_SYMBOLS" != x; then
18       LDFLAGS="$LDFLAGS $WIN32_LD_EXPORT_ALL_SYMBOLS"
19     fi
20     ;;
21   esac
22 ])