diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-09-28 20:48:00 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-09-28 20:48:00 +0000 |
| commit | 529aaf08f746d02ac87d780b3e70de05168e8d1b (patch) | |
| tree | 4453c0e00f8637aaef5a649476372e78ff01b2ef | |
| parent | 5a8385cf2d25d8d363afc547536b965ce555ddaf (diff) | |
Configure enhancements for Cygwin (STR #2974).
Remove obsolete -mno-cygwin option for Cygwin -> MinGW/WIN32 compilation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | configure.in | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/configure.in b/configure.in index 631d1e4b6..c4f52d236 100644 --- a/configure.in +++ b/configure.in @@ -26,6 +26,10 @@ AC_INIT(src/Fl.cxx) AC_CANONICAL_HOST +dnl Find compiler commands... +AC_PROG_CC +AC_PROG_CXX + dnl So --with-archflags option is used during "checking size of long" case $host_os in darwin*) @@ -71,16 +75,7 @@ case $host_os in # Handle Cygwin option *first*, before all other tests. AC_ARG_ENABLE(cygwin, [ --enable-cygwin use the Cygwin libraries [(default=no)]]) AC_ARG_ENABLE(x11, [ --enable-x11 use Cygwin with X11 [(default=no)]]) - if test x$enable_cygwin != xyes; then - # NOTE: We can't use ARCHFLAGS for this, since it does not work - # with some of the function tests - Cygwin uses a - # different C library... - CFLAGS="$CFLAGS -mno-cygwin" - CPPFLAGS="$CPPFLAGS -mno-cygwin" - CXXFLAGS="$CXXFLAGS -mno-cygwin" - LDFLAGS="$LDFLAGS -mno-cygwin" - DSOFLAGS="$DSOFLAGS -mno-cygwin" - else + if test x$enable_cygwin = xyes; then # we target Cygwin in combination with X11 if test x$enable_x11 = xyes; then host_os_gui="X11$host_os" @@ -188,10 +183,6 @@ fi AC_ARG_ENABLE(gl, [ --enable-gl turn on OpenGL support [default=yes]]) -dnl Find commands... -AC_PROG_CC -AC_PROG_CXX - AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]]) if test x$enable_shared = xyes; then PICFLAG=1 |
