Commit Graph

271 Commits

Author SHA1 Message Date
rocky
8238905c98 Add replacement for strndup(). MinGW doesn't have it. From Pete Batard again. 2012-01-16 20:15:33 -05:00
rocky
0faac0dabb Remove -mwindows for MinGw and cygwin since it prevents stdout/stderr from reaching the console. From Pete Batard, see libcdio-devel Jan 16, 2012. 2012-01-16 20:11:03 -05:00
R. Bernstein
1de200a821 Allow FreeBSD9. John Wehle says it works 2011-12-15 23:42:14 -05:00
rocky
f5a2c6666f cygwin has ncurses.h in <ncurses/ncurses.h> 2011-11-30 06:06:40 -05:00
rocky
7032a6dbd9 If we don't have ncurses.h don't try to look for libncurses 2011-11-25 10:22:30 +01:00
R. Bernstein
401efe4e68 up release to 0.84git 2011-11-24 21:09:31 -05:00
R. Bernstein
e0b2ee826d Don't error out on handling "NO PRE_EMPHASIS" in cdrdao TOC.
Savannah bug #34826:
2011-11-16 20:36:22 -05:00
R. Bernstein
bf925d61d7 Get ready for 0.83 release 2011-10-26 21:14:54 -04:00
R. Bernstein
6822c3543e Makefile.am: Increase shared library "current" numbers, zeroing "revision" and "age ".
configure.ac: require autoconf at least 2.67
2011-10-21 15:32:57 -04:00
R. Bernstein
b7203f5d6b Correct test for enable_cdda to accept either curses.h *or* ncurses.h
Add <strings.h> in more places that use bzero. Checks suggested by Blake Jones.

Add preprocessor symbol CDIO_CONFIG_H to <cdio_config.h>
2011-10-20 18:24:10 -04:00
rocky
15cd458874 Use "make" to create include/cdio/cdio_config.h rather than do it in the configure script. 2011-07-08 21:40:07 -04:00
rocky
0c0a16befd Copy all of config.h in order to get _FILE_OFFSET_BITS. 2011-07-07 06:49:48 -04:00
R. Bernstein
958c3cad4d configure.ac: remove no AC_LANG_SOURCE call detected. (From Christopher Yeleighton) 2011-05-20 17:25:32 -04:00
R. Bernstein
3b933bb375 Savannah Patch #7129 from Mike Frysinger:
specifies user-visible e-mail address in AC_INIT
- uses AC_HELP_STRING() for enable/with options
- uses AC_MSG_* instead of `echo` for user notices
- removes redundant test checks for enable/with options
- fixes 3rd arg handling with AC_ARG_ENABLE and --enable-rock and --enable-cddb and --enable-vcd-info
- properly quotes enable/with variables in case someone passes a value with spaces as the enable/with value
2010-03-23 16:20:35 -04:00
R. Bernstein
f23ca9a9da Start to remove sleep in favor of usleep. Bug #28543. 2010-02-11 20:10:11 -05:00
R. Bernstein
c8b86ee520 Drop version number on automake. Add missing externals to libcdio.sym 2010-02-09 03:02:28 -05:00
R. Bernstein
c90c24d1c8 testtoc -> driver/cdrdao.c.in 2010-01-23 23:20:12 -05:00
R. Bernstein
50b9cf1343 Allow automake 1.10 2010-01-21 04:11:35 -05:00
R. Bernstein
2b4a36f758 Remove more warnings. test/testnrg.c.in -> test/driver/nrg.c.in 2010-01-21 02:58:19 -05:00
R. Bernstein
0ec240f935 Reorganize test data for future growth. 2010-01-20 20:57:43 -05:00
R. Bernstein
7d8b6d0a4d cdio_follow_symlink -> cdio_realpath which is really POSIX realpath. (Suggestion via Thomas Schmitt.) gnu_linux.c: report errors when they occur. 2010-01-16 16:44:12 -05:00
R. Bernstein
d675551d19 Let's try FreeBSD driver on FreeBSD 8.x 2010-01-03 10:36:29 -05:00
R. Bernstein
cb35e2877c Move driver tests into a separate directory. 2009-12-26 11:20:55 -05:00
R. Bernstein
205c944f74 Show whether we are building C++ programs in configure output. 2009-12-25 16:04:25 -05:00
R. Bernstein
1d4e4fd169 cddb configure patch #6904 for gentoo bug #272788. 2009-12-24 07:31:02 -05:00
R. Bernstein
9bec7fc204 Change tests for S_ISLNK and S_ISSOCK macros from AC_COMPILE_IFELSE to
AC_LINK_IFELSE. On Mingw 4.4.0 these macros succeed when they should
fail. Patch by carlo.bramix to libcdio-devel
2009-10-29 10:16:55 -04:00
R. Bernstein
273ba31e3a In 0.83git now. Fix minor leaks in libcdio 0.82 detected by cppcheck
via Eric Sesterhenn.
2009-10-27 21:00:51 -04:00
R. Bernstein
5ead040aea Make doxygen clean. Get ready for 0.82 release. 2009-10-27 07:47:55 -04:00
R. Bernstein
2522c26ec8 Adapted from patches by Nicolas Boullis on Debian:
* alignment issues on sparc
 * "make check" failure when stderr is not a tty
 * wrong program name in manpages in tarball
 * build failure with hurd
 * "make check" failure on machines with no disc drive
 * make distclean fixes
2009-07-02 20:26:39 -04:00
R. Bernstein
58d87158cf Add OS/2 driver courtesy of KO Myung-Hun. Security: Add "%s" to cdparanoia's fprintfs 2009-02-08 05:52:49 -05:00
R. Bernstein
860becb14c Use LTLIBICONV instead of LIBICONV. Bug #25201 from Yaakov Selkowitz 2008-12-28 23:09:25 -05:00
R. Bernstein
ca23ec2ae5 Add check against GNU/Linux driver. More info in include/cdio/config. 2008-12-07 06:40:51 -05:00
R. Bernstein
f434186567 Makefile.am: Redo target for ChangeLog to use git2cl. NEWS: Note NetBSD driver added. Reset: git administrivia. 2008-12-06 20:04:23 -05:00
rocky
dbba9a7f6b Patch by Mike Frysinger to facilitate cross-compilation. sr #106338 2008-11-27 21:09:51 +00:00
rocky
afeb80aa49 Erroneous initialization. See sr #106271 2008-11-25 02:20:17 +00:00
rocky
a33fe3154a Treat uclinux like GNU/Linux. sr #106336 from Mike Frysinger. 2008-11-25 01:57:16 +00:00
rocky
088a2ec17c Remove bit-ordering test in configure.ac since we don't seem to use
this at compile time and it fouls up cross compilation.

cd-paranoia has tests at run-time. libcdio inherited this from
vcdimager which needs it in writing images. It is possible that when
libcdio does writing this may come back. Untill then, simplify.
2008-11-25 01:47:36 +00:00
rocky
48de04f1b6 Typo in comment 2008-10-29 09:55:22 +00:00
rocky
f81a660ef8 Bug fix to allow linker flags --as-needed and --no-undefined. Thanks to Götz Waschk 2008-10-29 09:53:00 +00:00
flameeyes
10e258de88 Don't use echo -n, use subshells instead.
echo -n is not working on all shells, in particular it does not seem
to work on Sun /bin/sh shell; instead use subshells to have the same
output everywhere.
2008-09-29 03:34:49 +00:00
rocky
82c7c09a97 Fixes for Mingw+MSYS and DLL support from Carlo Bramini
* configure.ac: Added AC_LIBTOOL_WIN32_DLL for enabling the creation of shared libraries.
* configure.ac: Added -I$(top_srcdir)/include to LIBCDIO_CFLAGS, it allows to build outside the source tree.
* configure.ac: Added LT_NO_UNDEFINED for adding '-no-undefined' switch to libtool when building win32 shared libraries.
* configure.ac: Check for Windows.h presence if under Mingw (included for using Sleep() function).
* configure.ac: Check for more missing functions: setenv(), unsetenv(), sleep(), gmtime_r(), localtime_r().

* example/cdchange.c: If sleep() function does not exist, it tries to emulate it with a similar code (require inclusion of Windows.h)

* src/cddb.c:
* lib/cdda_interface/scsi_interface.c: Compilation fails because u_int32_t is undefined. It has been changed to uint32_t to be compliant to all other parts of the libraries.
* lib/cdda_interface/Makefile.am:
* lib/iso9660/Makefile.am:
* lib/cdio++/Makefile.am:
* lib/paranoia/Makefile.am:
* lib/udf/Makefile.am:
* lib/driver/Makefile.am: added LT_NO_UNDEFINED to libtool flags.
* lib/iso9660/iso9660.c: Added replacements for setenv(), unsetenv(), gmtime_r\
(), localtime_r().
2008-06-25 08:01:53 +00:00
flameeyes
5d2dc434e3 Fix AC_ARG_WITH and AC_ARG_ENABLE call to use the un-translated option name (that is, using dash rather than underscore). 2008-06-19 13:41:40 +00:00
flameeyes
97831db455 Put all macros in the m4 directory, this avoids cluttering the main directory with libtool 2.2 (that split the macros in multiple files). 2008-06-16 22:36:09 +00:00
rocky
3709aca31e --disable-example-progs help text wording change
Ignore test/testpregap.c since that's now derived testpregap.c.in
2008-06-14 22:41:29 +00:00
rocky
a8e617dc7d Replace last vestige of non-reentrant gmtime with timegm. Problem
determination and fix again from Nicolas Boullis.
2008-05-31 12:18:33 +00:00
rocky
3f266b669b Changes to testpregap.c to allow to build outside of the source tree. 2008-05-05 23:58:28 +00:00
rocky
62d7731703 Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
   (changes lib/udf/udf_time.c, configure.ac, config.h.in)

 - The configure test for bitfield ordering uses AC_TRY_RUN and thus
   doesn't work when cross-compiling; use sneakiness to try and
   determine it at compile time, falling back to the existing runtime
   check if the sneakiness doesn't work
   (changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
   which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)

 - The configure test for "extern long timezone" needlessly uses
   AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
   that latter works when cross-compiling
   (changes configure.ac)

 - MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
   or S_IFSOCK, nor S_ISUID etc
   (changes lib/udf/udf.c and lib/iso9660/xa.c)

 - MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
   of the Linux driver doesn't compile unless it's moved inside the
   "ifdef HAVE_LINUX_CDROM"
   (changes lib/driver/gnu_linux.c)

 - Because the man pages cd-info.1 etc depend on the binaries themselves
   (for help2man reasons), the configure options --without-cd-info etc
   don't actually stop them being compiled. Fixed by only depending on
   man pages for programs that are actually built, which also stops
   the installation of man pages of programs which aren't themselves
   installed
   (changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
rocky
0e463dfc0d Start NetBSD driver 2008-03-27 17:40:50 +00:00
rocky
4d76632b8a Start a nrg image reading test. 2008-03-22 22:43:56 +00:00
rocky
51d9652c82 get_track_pregap_lba, get_track_pregap_lsn. Section on "CD-DA pregap" in libcdio manual.
All changes from Robert William Fuller.
2008-03-16 00:12:42 +00:00