Mercurial > hg > xemacs-beta
comparison aclocal.m4 @ 1633:baca156a450b
[xemacs-hg @ 2003-08-19 02:11:46 by james]
Make modules build and run on Cygwin and MinGW. This is the second commit to
get the toplevel files that were not committed the first time.
author | james |
---|---|
date | Tue, 19 Aug 2003 02:11:49 +0000 |
parents | 1364f9716d7b |
children | 2422c1cd1afd |
comparison
equal
deleted
inserted
replaced
1632:64eaceca611d | 1633:baca156a450b |
---|---|
82 | 82 |
83 AC_MSG_CHECKING(how to produce PIC code) | 83 AC_MSG_CHECKING(how to produce PIC code) |
84 wl= | 84 wl= |
85 | 85 |
86 can_build_shared=yes | 86 can_build_shared=yes |
87 cygwin_warn= | |
88 if test "$XEGCC" = yes; then | 87 if test "$XEGCC" = yes; then |
89 wl='-Wl,' | 88 wl='-Wl,' |
90 | 89 |
91 case "$xehost_os" in | 90 case "$xehost_os" in |
92 aix[[3-9]]* | irix[[5-9]]* | osf[[3-9]]) | 91 aix[[3-9]]* | irix[[5-9]]* | osf[[3-9]]) |
102 # like `-m68040'. | 101 # like `-m68040'. |
103 dll_cflags='-m68020 -resident32 -malways-restore-a4' | 102 dll_cflags='-m68020 -resident32 -malways-restore-a4' |
104 ;; | 103 ;; |
105 *cygwin* | *mingw* ) | 104 *cygwin* | *mingw* ) |
106 # PIC is the default | 105 # PIC is the default |
107 cygwin_warn=yes | |
108 # #### Need some trickery involving import libraries that we don't | |
109 # currently support. | |
110 can_build_shared=no | |
111 ;; | 106 ;; |
112 *) | 107 *) |
113 dll_cflags='-fPIC' | 108 dll_cflags='-fPIC' |
114 ;; | 109 ;; |
115 esac | 110 esac |
201 can_build_shared=no | 196 can_build_shared=no |
202 dll_cflags=]) | 197 dll_cflags=]) |
203 CFLAGS="$save_CFLAGS" | 198 CFLAGS="$save_CFLAGS" |
204 else | 199 else |
205 AC_MSG_RESULT(none) | 200 AC_MSG_RESULT(none) |
206 fi | |
207 | |
208 if test -n "$cygwin_warn"; then | |
209 AC_MSG_WARN([Cannot currently build modules under Cygwin.]) | |
210 fi | 201 fi |
211 | 202 |
212 dnl | 203 dnl |
213 dnl Now comes the LD trickery. We do things differently to libtool here. | 204 dnl Now comes the LD trickery. We do things differently to libtool here. |
214 dnl I believe that libtool is incorrect in trying to drive the linker | 205 dnl I believe that libtool is incorrect in trying to drive the linker |