Commit Graph

241 Commits

Author SHA1 Message Date
Matthias Melcher 9c538a4b2e STR 1883: Attempt to fix installation of binaries in .app bundle on platforms other than OS X. Must be tested with Cygwin and on Linux!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-26 15:26:08 +00:00
Michael R Sweet 6208077d2a Add configure summary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-20 21:52:54 +00:00
Matthias Melcher abde88e220 On OS X: disable all 'deprecated' warnings to be able to see the really important warnings. Nevertheless, we will have to replace all Carbon calls as soon as possible. Also re-fixed (i hope) the 'return' from an endless loop in 'threads.cxx'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-20 16:32:37 +00:00
Michael R Sweet d8c288df3e Fix compiler warnings/errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-20 16:18:31 +00:00
Michael R Sweet 73d01dd659 Fix all compiler warnings from various build systems.
Fix vsnprintf() implementation to properly handle long and long long ints.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-20 00:01:06 +00:00
Michael R Sweet e37b4526fc Solaris sh (POSIX shell) does not support the Bash substitution syntax.
Add a different workaround for this Cygwin shell bug (however note that
we are NOT going to go out of our way to work around Cygwin bugs - you
need to report those upstream folks!)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-14 19:35:32 +00:00
Matthias Melcher 62d66c6422 Str #1656: changed default optimization on Cygwin/Mingw to -O3 because -O3 causes verifably and repeatably bad code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-14 12:21:42 +00:00
Matthias Melcher 2df9fcb3aa OSF/Tru64 now uses 'install-sh' instead of 'install' to accomodate for a missing '-d' option (STR #1632)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-14 12:00:06 +00:00
Matthias Melcher ee1d3823a0 Modified 'configure.in' to overcome the Cygwin bug of adding a ^M to the output of the 'sizeof' test code. From all I read, the notation seems to be shell scripting standard and should be available everywhere.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-09 19:40:04 +00:00
Matthias Melcher d84e2832f7 Second aproach at solving the 'install -d' issue. I added a public domain script that supposedly solves the issue on every box. I also looke at 'install-sh', but found a bazillion of versions, doing so much more than we actually need. But I am open to sugestions, and happy to reverse my changes if something better comes along.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-03 12:33:20 +00:00
Matthias Melcher ba562f87b9 STR #1632: replaced 'install -d' with 'mkdir -p', falling back to 'install' in case 'mkdir' could not be found (which I can't imagine happening. Now I hope that every implementation of 'mkdir' supports the '-p' flag.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-02 15:01:37 +00:00
Michael R Sweet ded0bf0432 Add LDFLAGS for DLLs via Cygwin/MingW as noted by Ian MacArthur.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-10 21:21:02 +00:00
Michael R Sweet 057e542c39 More Cygwin DLL fixes (STR #1585)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 21:22:32 +00:00
Michael R Sweet e173e7bec0 Add header check for dlfcn.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 20:14:30 +00:00
Michael R Sweet 7b4d33bbdd Make sure INSTALL command uses absolute path for install-sh...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 19:14:29 +00:00
Michael R Sweet 4d6faca615 Add support for glutGetProcAddress() on Mac OS X and other platforms
via dlsym() (STR #1582)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 15:44:28 +00:00
Michael R Sweet 44b2ff35cf Use install command instead of CHMOD, CP, and MKDIR.
Drop all POSTBUILD stuff as it is no longer used.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-06 19:35:28 +00:00
Michael R Sweet 47fb93aa3c Update pthreads configure test to work on more platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-05 18:39:27 +00:00
Michael R Sweet 1c61b1297d Fix glXGetProcAddressARB() usage and support for POSIX threads on HP-UX 11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-05 03:20:30 +00:00
Michael R Sweet 502f83219d Fix DLL generation via MingW/Cygwin (STR #1546)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 20:23:31 +00:00
Michael R Sweet 7a9e9468e6 Add -fno-strict-aliasing to compiler options since GCC doesn't understand
that char * and unsigned char * are safe to interchange (STR #1484)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-31 21:28:11 +00:00
Michael R Sweet 4e0cea8f10 Scratch that, looks like autoconf 2.50 added AC_SYS_LARGEFILE. 2.57
added documentation for it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-31 21:15:47 +00:00
Michael R Sweet 7dd62791f9 AC_SYS_LARGEFILE appears to have been introduced in autoconf 2.57...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-31 21:11:04 +00:00
Michael R Sweet ef2dc5bd87 Add DSOFLAGS to DSOCOMMAND's, so that we inherit X_LIBS and other options
for linking of shared libs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-12 01:31:42 +00:00
Michael R Sweet cdc165bd68 Fixed DSO generation (STR #1405)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 01:39:13 +00:00
Michael R Sweet 464e8110a7 Fix man page extension for games.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 16:45:48 +00:00
Matthias Melcher 4f6119433b Fixed Makefile configuration for OS X dynamic library. STR #1391
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-12 11:05:04 +00:00
Michael R Sweet 8266e090f5 Don't call dummy function inside dummy function - some compilers don't like
it...

Drop +DAportable from default HP-UX optimizations.

Move HP-UX C++ compiler warning options to CXXFLAGS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-02 18:03:10 +00:00
Michael R Sweet d9eecaf4ab Fix problems with new FLUID output, add common to closing braces to show
what widget is being closed, and bump the version number to 1.1.8 in the
repo...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-27 19:26:11 +00:00
Michael R Sweet 8761079f3c Revert change to --enable-cygwin option since ARCHFLAGS does not work with
the configure tests for strlcpy and friends.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-26 13:45:07 +00:00
Michael R Sweet eea2b38b34 Add --with-archflags option to configure script, and use it in the right
places.

Update changes file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 18:29:31 +00:00
Michael R Sweet 7565604dbf Make sure native eol-style is set on all source files.
Fix some freetype-config and xprop issues in the configure script.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 14:04:00 +00:00
Matthias Melcher e35e2a27a2 Included fltk.spec in configure.in
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-21 08:50:25 +00:00
Michael R Sweet bf7082f16c Fix fl_filename_list() bug (STR #1159) caused by changing of the ABI
(dirent size is different for large file mode)

The default is now --disable-largefile; if you use --enable-largefile,
the large file support definitions are propagated to the fltk-config
script as well.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-31 15:50:06 +00:00
Michael R Sweet 115d539691 More packaging fun.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4756 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 18:36:16 +00:00
Michael R Sweet 61b86ce0e5 More packaging fun (games package to "advertise" FLTK...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 18:02:44 +00:00
Michael R Sweet 887a458227 Work on Linux and OSX desktop integration stuff via make install and
packaging via EPM.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 03:16:09 +00:00
Michael R Sweet 72b136d58b Fix MingW threading support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02 12:47:09 +00:00
Michael R Sweet e73818789d Add Cygwin/MingW support for winmm library... (STR #1121)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 02:27:23 +00:00
Michael R Sweet 7dd1ddbeef FLTK now enables large file support when available (STR #1087)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4702 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 00:39:55 +00:00
Matthias Melcher 861944d1cb Removed the "-g" compile option for the optimized version of FLTK. This was probably a leftover from someone debugging the optimized version (and I am too lazy and polit to run "svn blame", especially since that someone could have been myself ;-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-10 10:23:44 +00:00
Michael R Sweet a6e6888a2d Add OSX audio support to Sudoku (THANK YOU IAN!)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-08 03:51:21 +00:00
Michael R Sweet 2f40b8b80b Start adding support for sound in Sudoku via ALSA.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-05 00:55:01 +00:00
Michael R Sweet 9e8a88e66c Fix mousewheel handler bug (using wrong variable in initial check)
Add sudoku game app (fun for the holidays! :)

Use "-Os -g" as the default optimization settings.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 20:40:16 +00:00
Michael R Sweet 6e88ede6a4 Remove libsupc++ stuff, since it doesn't work on OSX 10.4 or with
other (broken) GCC installs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-18 04:02:29 +00:00
Michael R Sweet 6585e234ae Added shared library support for Cygwin and MingW (STR #893)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:54:30 +00:00
Michael R Sweet b8dcdf4c64 Compilation could fail if a previous installation of FLTK was in
the same (non-standard) directory as an image library (STR #926)

configure.in:
    - Add LINKFLTKFORMS definition.
    - Change LINKFLTK* definitions to just reference the static
      libraries themselves.

makeinclude.in:
    - Use LINKFLTKFORMS and drop -L../lib stuff for static linking.

src/Makefile:
    - Move -L. in front of LDLIBS and IMGLIBS when linking shared
      libfltk_images.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:44:38 +00:00
Matthias Melcher 458d1dc75d Attempt to make 'localeconv()' part of the configuration process. VC6 works, but I'll need feedback for all other platforms... . Trying OS X in a few minutes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-24 18:41:30 +00:00
Michael R Sweet 671ef36117 Fix MacOS X 10.4 compile issues.
configure.in:
    - 10.4 doesn't include libsupc++.a, so we need to use g++ when compiling.

src/Fl_Help_View.cxx:
    - Fl_Help_View::format_table(): missing initialization of font and fsize.

src/Fl_Text_Buffer.cxx:
    - Fl_Text_Buffer::remove_rectangle(): missing initialization of endOffset.

src/Fl_Gl_Window.cxx:
    - Fl_Gl_Window::flush(): use 0xff instead of ~0 for clear_damage() call.

test/keyboard.cxx:
    - Apparently unnamed structs are not supported by Apple's GCC 4.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-28 17:48:04 +00:00
Michael R Sweet 1c399af444 Update source file headers with STR web page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:13:17 +00:00