Mercurial > hg > xemacs-beta
comparison configure.ac @ 3228:80361b938eaa
[xemacs-hg @ 2006-02-04 02:25:47 by vins]
Fix /bin/gcc no-X xpm builds on cygwin.
author | vins |
---|---|
date | Sat, 04 Feb 2006 02:25:52 +0000 |
parents | 15139dbf89f4 |
children | 8d7c2461057a |
comparison
equal
deleted
inserted
replaced
3227:bdc2d7488c19 | 3228:80361b938eaa |
---|---|
2160 dnl Pick up mingw include path | 2160 dnl Pick up mingw include path |
2161 dnl We only cope with headers in mingw, not mingw32: no previous version of | 2161 dnl We only cope with headers in mingw, not mingw32: no previous version of |
2162 dnl XEmacs supported mingw and cygnus have made this incompatible change | 2162 dnl XEmacs supported mingw and cygnus have made this incompatible change |
2163 dnl so we just go with the flow. | 2163 dnl so we just go with the flow. |
2164 case "$opsys" in mingw* | cygwin*) | 2164 case "$opsys" in mingw* | cygwin*) |
2165 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; | 2165 cygwin_include=`eval gcc -print-search-dirs | sed -ne s'/install: //p'` |
2166 cygwin_include=`eval "dirname $cygwin_include"` ; | 2166 cygwin_include=`eval "cd $cygwin_include/../../../..; pwd"` |
2167 cygwin_include="-I$cygwin_include/../include" ; | 2167 cygwin_include="-I$cygwin_include/include" ; |
2168 extra_includes="$cygwin_include/mingw $cygwin_include" ; | 2168 extra_includes="$cygwin_include/mingw $cygwin_include" ; |
2169 case "$opsys" in mingw*) | 2169 case "$opsys" in mingw*) |
2170 XE_APPEND($extra_includes, c_switch_system) ;; | 2170 XE_APPEND($extra_includes, c_switch_system) ;; |
2171 esac | 2171 esac |
2172 ;; | 2172 ;; |
3936 dnl -- should only happen if CYGWIN && WITH_XPM && WITH_MSW && !WITH_X | 3936 dnl -- should only happen if CYGWIN && WITH_XPM && WITH_MSW && !WITH_X |
3937 libpath_xpm= | 3937 libpath_xpm= |
3938 incpath_xpm= | 3938 incpath_xpm= |
3939 case "$opsys" in | 3939 case "$opsys" in |
3940 cygwin*) | 3940 cygwin*) |
3941 cygwin_top=`eval "gcc -print-file-name=libc.a"` ; | 3941 cygwin_top=`eval gcc -print-search-dirs | sed -ne s'/install: //p'` |
3942 cygwin_top=`eval "dirname ${cygwin_top}"`; | 3942 cygwin_top=`eval "cd $cygwin_top/../../../..; pwd"` |
3943 cygwin_top="${cygwin_top}/.."; | |
3944 case "$window_system" in | 3943 case "$window_system" in |
3945 dnl use "standard" search pattern | 3944 dnl use "standard" search pattern |
3946 x11) ;; | 3945 x11) ;; |
3947 dnl hardcode "standard" non-X11 xpm lib/inc dirs | 3946 dnl hardcode "standard" non-X11 xpm lib/inc dirs |
3948 msw) libpath_xpm="-L${cygwin_top}/lib/noX" | 3947 msw) libpath_xpm="-L${cygwin_top}/lib/noX" |