2017-09-13 08:10:11 +00:00
|
|
|
AC_INIT([libburn], [1.4.9], [http://libburnia-project.org])
|
2006-08-15 20:37:04 +00:00
|
|
|
AC_PREREQ([2.50])
|
|
|
|
dnl AC_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
|
2010-02-04 08:31:31 +00:00
|
|
|
LIBBURNIA_SET_FLAGS
|
|
|
|
|
2006-08-15 20:37:04 +00:00
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
2011-06-08 19:41:11 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([./])
|
2006-08-15 20:37:04 +00:00
|
|
|
|
2011-11-20 21:56:13 +00:00
|
|
|
dnl Notes about version numbers and .so numbers:
|
2006-08-15 20:37:04 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Regrettably the meaning of the various version types was misunderstood
|
|
|
|
dnl before version 0.4.1.
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl In the past MAJOR.MINOR.MICRO versions led to the following SONAME numbers:
|
|
|
|
dnl 0.2.2 = 2 , 0.2.3 = 3 , 0.2.6 = 6
|
|
|
|
dnl 0.3.0 = 0 , 0.3.2 = 2 , 0.3.4 = 4 . 0.3.6 = 6 , 0.3.8 = 4
|
|
|
|
dnl 0.4.0 = 0 (also released as SONAME 4)
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Meanwhile the following schemes are maintained in parallel:
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl BURN_MAJOR_VERSION , BURN_MINOR_VERSION , BURN_MICRO_VERSION
|
|
|
|
dnl are three small non-negative integers which describe the evolution
|
|
|
|
dnl steps of the library.
|
|
|
|
dnl Older applications are able to use younger libraries over
|
|
|
|
dnl quite a long range of such steps. Some day, nevertheless,
|
|
|
|
dnl compatibility might get terminated, after due notice.
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl SONAME (libburn.so.4)
|
|
|
|
dnl is a small positive integer which marks a family of compatible
|
|
|
|
dnl evolution steps. Libraries with a particular SONAME allow a binary
|
|
|
|
dnl with the same SONAME to start up. Any further compatibility check is to
|
|
|
|
dnl be done by own runtime means. Especially *_version() calls in the API
|
|
|
|
dnl which return BURN_MAJOR_VERSION, BURN_MINOR_VERSION, BURN_MICRO_VERSION.
|
|
|
|
dnl See below.
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl CURRENT, AGE, REVISION
|
|
|
|
dnl are three integers used by libtool. CURRENT is positive, the others
|
|
|
|
dnl non-negative. The use at runtime is not known yet. But libtool computes
|
|
|
|
dnl at build time SONAME = CURRENT - AGE.
|
|
|
|
dnl So this is a superspace of the SONAME version space. To avoid
|
|
|
|
dnl ill SONAME, the value of CURRENT must be larger than AGE.
|
|
|
|
dnl See also http://www.gnu.org/software/libtool/manual.html#Interfaces
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2009-03-13 14:03:13 +00:00
|
|
|
dnl On Linux the name of the dynamic library will be
|
|
|
|
dnl libburn.so.$SONAME.$AGE.$REV
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl In the terminology of this file:
|
|
|
|
dnl CURRENT = LT_CURRENT
|
|
|
|
dnl AGE = LT_AGE
|
|
|
|
dnl REVISION= LT_REVISION
|
2007-12-07 18:51:57 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Beginning with libburn-0.4.1 a rectified counting was introduced as
|
|
|
|
dnl CURRENT=10, REVISION=1, AGE=6
|
|
|
|
dnl This rectification declared that version to be binary compatible up
|
|
|
|
dnl from libburn-0.3.4.
|
|
|
|
dnl Real compatibility was given since libburn-0.3.2.
|
|
|
|
dnl Beware of libburn-0.2.6 which had SONAME=6 and is not binary compatible.
|
|
|
|
dnl Applications for libburn-0.2 to libburn-0.3.1 need recompilation but no
|
|
|
|
dnl source code changes.
|
2008-01-23 21:18:25 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Neatly versioned stable releases meanwhile:
|
|
|
|
dnl 0.4.2 = libburn.so.4.7.0
|
2008-04-08 13:32:07 +00:00
|
|
|
dnl 0.4.4 = libburn.so.4.9.0
|
2008-05-10 13:40:55 +00:00
|
|
|
dnl 0.4.6 = libburn.so.4.11.0
|
2008-05-17 12:05:36 +00:00
|
|
|
dnl 0.4.8 = libburn.so.4.13.0
|
2008-07-16 09:12:22 +00:00
|
|
|
dnl 0.5.0 = libburn.so.4.15.0
|
2008-08-20 10:06:01 +00:00
|
|
|
dnl 0.5.2 = libburn.so.4.17.0
|
2008-10-05 12:41:44 +00:00
|
|
|
dnl 0.5.4 = libburn.so.4.19.0
|
2008-11-12 12:51:07 +00:00
|
|
|
dnl 0.5.6 = libburn.so.4.21.0
|
2008-12-07 16:00:45 +00:00
|
|
|
dnl 0.5.8 = libburn.so.4.23.0
|
2009-01-04 11:35:19 +00:00
|
|
|
dnl 0.6.0 = libburn.so.4.25.0
|
2009-02-20 12:50:12 +00:00
|
|
|
dnl 0.6.2 = libburn.so.4.27.0
|
2009-03-13 14:03:13 +00:00
|
|
|
dnl 0.6.4 = libburn.so.4.29.0
|
2009-05-07 18:15:47 +00:00
|
|
|
dnl 0.6.6 = libburn.so.4.31.0
|
2009-07-14 13:37:11 +00:00
|
|
|
dnl 0.6.8 = libburn.so.4.33.0
|
2009-08-27 14:38:24 +00:00
|
|
|
dnl 0.7.0 = libburn.so.4.35.0
|
2009-10-12 10:52:37 +00:00
|
|
|
dnl 0.7.2 = libburn.so.4.37.0
|
2009-12-07 07:54:24 +00:00
|
|
|
dnl 0.7.4 = libburn.so.4.39.0
|
2010-01-23 10:40:11 +00:00
|
|
|
dnl 0.7.6 = libburn.so.4.41.0
|
2010-03-10 13:56:58 +00:00
|
|
|
dnl 0.7.8 = libburn.so.4.43.0
|
2010-04-09 10:57:38 +00:00
|
|
|
dnl 0.8.0 = libburn.so.4.45.0
|
2010-06-11 10:53:56 +00:00
|
|
|
dnl 0.8.2 = libburn.so.4.47.0
|
2010-06-30 11:31:22 +00:00
|
|
|
dnl 0.8.4 = libburn.so.4.49.0
|
2010-09-17 07:54:34 +00:00
|
|
|
dnl 0.8.6 = libburn.so.4.51.0
|
2010-10-20 13:36:14 +00:00
|
|
|
dnl 0.8.8 = libburn.so.4.53.0
|
2010-12-08 13:55:24 +00:00
|
|
|
dnl 0.9.0 = libburn.so.4.55.0
|
2011-01-16 15:11:34 +00:00
|
|
|
dnl 1.0.0 = libburn.so.4.57.0
|
2011-02-23 19:38:44 +00:00
|
|
|
dnl 1.0.2 = libburn.so.4.59.0
|
2011-03-10 13:30:54 +00:00
|
|
|
dnl 1.0.4 = libburn.so.4.61.0
|
2011-04-09 09:26:29 +00:00
|
|
|
dnl 1.0.6 = libburn.so.4.63.0
|
2011-06-18 15:56:15 +00:00
|
|
|
dnl 1.1.0 = libburn.so.4.65.0
|
2011-08-08 12:20:01 +00:00
|
|
|
dnl 1.1.4 = libburn.so.4.67.0
|
2011-09-27 12:50:12 +00:00
|
|
|
dnl 1.1.6 = libburn.so.4.69.0
|
2011-11-20 21:56:13 +00:00
|
|
|
dnl 1.1.8 = libburn.so.4.71.0
|
2012-01-27 15:12:50 +00:00
|
|
|
dnl 1.2.0 = libburn.so.4.73.0
|
2012-04-02 17:26:28 +00:00
|
|
|
dnl 1.2.2 = libburn.so.4.75.0
|
2012-07-20 16:49:40 +00:00
|
|
|
dnl 1.2.4 = libburn.so.4.77.0
|
2013-01-08 14:52:30 +00:00
|
|
|
dnl 1.2.6 = libburn.so.4.79.0
|
2013-03-18 08:29:37 +00:00
|
|
|
dnl 1.2.8 = libburn.so.4.81.0
|
2013-05-17 18:08:48 +00:00
|
|
|
dnl 1.3.0 = libburn.so.4.83.0
|
2013-08-07 13:51:09 +00:00
|
|
|
dnl 1.3.2 = libburn.so.4.85.0
|
2013-12-12 14:52:30 +00:00
|
|
|
dnl 1.3.4 = libburn.so.4.87.0
|
2014-03-04 16:22:27 +00:00
|
|
|
dnl 1.3.6 = libburn.so.4.89.0
|
2014-06-28 06:33:13 +00:00
|
|
|
dnl 1.3.8 = libburn.so.4.91.0
|
2015-05-17 20:03:59 +00:00
|
|
|
dnl 1.4.0 = libburn.so.4.93.0
|
2015-11-28 21:04:27 +00:00
|
|
|
dnl 1.4.2 = libburn.so.4.95.0
|
2016-07-01 19:15:33 +00:00
|
|
|
dnl 1.4.4 = libburn.so.4.97.0
|
2016-09-16 19:09:18 +00:00
|
|
|
dnl 1.4.6 = libburn.so.4.99.0
|
2017-09-12 11:36:08 +00:00
|
|
|
dnl 1.4.8 = libburn.so.4.101.0
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl
|
|
|
|
dnl So LT_CURRENT, LT_REVISION and LT_AGE get set directly here.
|
2008-01-23 21:18:25 +00:00
|
|
|
dnl SONAME of the emerging library is LT_CURRENT - LT_AGE.
|
|
|
|
dnl The linker will do no finer checks. Especially no age range check for
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl the application binary. If SONAME matches, then the couple starts.
|
2008-01-23 21:18:25 +00:00
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Therefore at run time info is provided by libburn function burn_version().
|
2008-01-29 21:09:16 +00:00
|
|
|
dnl It returns the major, minor and micro revision of the library.
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Before using any API feature, a program should check for age.
|
|
|
|
dnl
|
2008-01-29 21:09:16 +00:00
|
|
|
dnl The variables BURN_*_VERSION are mere copies for informing libtool.
|
|
|
|
dnl The true values which get issued and should be compared are macros
|
|
|
|
dnl defined in libburn/libburn.h .
|
|
|
|
dnl
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl Normally one can allow a program to run with a library which passed the
|
|
|
|
dnl linker SONAME test and which is not older than the library it was
|
|
|
|
dnl developed for. Library2 is younger than library1 if:
|
2008-01-29 21:09:16 +00:00
|
|
|
dnl major2>major1 || (major2==major1 &&
|
|
|
|
dnl (minor2>minor1 || (minor2==minor1 && micro2 > micro1)))
|
2008-01-23 21:18:25 +00:00
|
|
|
dnl
|
|
|
|
dnl If BURN_*_VERSION changes, be sure to change AC_INIT above to match.
|
2006-08-15 20:37:04 +00:00
|
|
|
dnl
|
2008-01-29 21:09:16 +00:00
|
|
|
dnl As said: Only copies. Original in libburn/libburn.h : burn_header_version_*
|
2011-01-16 15:11:34 +00:00
|
|
|
BURN_MAJOR_VERSION=1
|
2015-05-17 20:03:59 +00:00
|
|
|
BURN_MINOR_VERSION=4
|
2017-09-13 08:10:11 +00:00
|
|
|
BURN_MICRO_VERSION=9
|
2008-01-23 21:18:25 +00:00
|
|
|
BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
2006-08-15 20:37:04 +00:00
|
|
|
|
|
|
|
AC_SUBST(BURN_MAJOR_VERSION)
|
|
|
|
AC_SUBST(BURN_MINOR_VERSION)
|
2008-01-23 21:18:25 +00:00
|
|
|
AC_SUBST(BURN_MICRO_VERSION)
|
2006-08-15 20:37:04 +00:00
|
|
|
AC_SUBST(BURN_VERSION)
|
|
|
|
|
|
|
|
dnl Libtool versioning
|
2008-01-23 21:18:25 +00:00
|
|
|
LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl
|
2017-09-13 08:10:11 +00:00
|
|
|
dnl ### This is the release version libburn-1.4.8
|
|
|
|
dnl This is the development version after above release version
|
2010-06-30 11:31:22 +00:00
|
|
|
dnl LT_CURRENT++, LT_AGE++ has not yet happened.
|
|
|
|
dnl ### LT_CURRENT++, LT_AGE++ has happened meanwhile.
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl
|
2017-09-12 11:36:08 +00:00
|
|
|
dnl SONAME = 105 - 101 = 4 . Linux library name = libburn.so.4.101.0
|
|
|
|
LT_CURRENT=105
|
|
|
|
LT_AGE=101
|
2008-01-27 14:53:55 +00:00
|
|
|
LT_REVISION=0
|
2006-08-15 20:37:04 +00:00
|
|
|
LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
|
|
|
|
|
|
|
|
AC_SUBST(LT_RELEASE)
|
|
|
|
AC_SUBST(LT_CURRENT)
|
|
|
|
AC_SUBST(LT_REVISION)
|
|
|
|
AC_SUBST(LT_AGE)
|
|
|
|
AC_SUBST(LT_CURRENT_MINUS_AGE)
|
|
|
|
|
2008-01-27 14:53:55 +00:00
|
|
|
dnl ts A71207: This is done only not to break any old components
|
2007-12-07 18:51:57 +00:00
|
|
|
BURN_INTERFACE_AGE=$LT_REVISION
|
|
|
|
BURN_BINARY_AGE=`expr $LT_AGE + $BURN_INTERFACE_AGE`
|
|
|
|
AC_SUBST(BURN_INTERFACE_AGE)
|
|
|
|
AC_SUBST(BURN_BINARY_AGE)
|
|
|
|
|
2006-08-15 20:37:04 +00:00
|
|
|
AC_PREFIX_DEFAULT([/usr/local])
|
|
|
|
test "$prefix" = "NONE" && prefix=$ac_default_prefix
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
|
|
dnl Large file support
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
AC_FUNC_FSEEKO
|
2006-12-04 22:01:21 +00:00
|
|
|
AC_CHECK_FUNC([fseeko])
|
2006-08-15 20:37:04 +00:00
|
|
|
if test ! $ac_cv_func_fseeko; then
|
|
|
|
AC_ERROR([Libburn requires largefile support.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
2016-08-23 19:39:00 +00:00
|
|
|
# LIBTOOL="$LIBTOOL --silent"
|
2006-08-15 20:37:04 +00:00
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS()
|
|
|
|
|
|
|
|
THREAD_LIBS=-lpthread
|
|
|
|
AC_SUBST(THREAD_LIBS)
|
|
|
|
|
|
|
|
TARGET_SHIZZLE
|
2006-10-12 17:33:22 +00:00
|
|
|
AC_SUBST(ARCH)
|
2009-03-16 19:07:45 +00:00
|
|
|
AC_SUBST(LIBBURNIA_PKGCONFDIR)
|
2006-10-12 17:33:22 +00:00
|
|
|
AC_SUBST(LIBBURN_ARCH_LIBS)
|
2006-08-15 20:37:04 +00:00
|
|
|
|
2009-03-03 09:20:53 +00:00
|
|
|
dnl ts A90303
|
|
|
|
dnl Check the preconditions for using statvfs() in sg-dummy
|
|
|
|
dnl (sg-linux and sg-freebsd use statvfs() unconditionally)
|
|
|
|
STATVFS_DEF=-DLibburn_os_has_statvfS
|
|
|
|
AC_CHECK_HEADER(sys/statvfs.h, X=, STATVFS_DEF=)
|
|
|
|
AC_CHECK_FUNC([statvfs], X=, STATVFS_DEF=)
|
|
|
|
dnl If this would be done more specifically in Makefile.am
|
|
|
|
dnl via libburn_libburn_la_CFLAGS then undesired .o file names would emerge
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="$STATVFS_DEF $CFLAGS"
|
2009-03-03 09:20:53 +00:00
|
|
|
|
2009-11-23 18:56:18 +00:00
|
|
|
dnl ts A91122
|
|
|
|
AC_ARG_ENABLE(track-src-odirect,
|
2010-07-04 17:01:21 +00:00
|
|
|
[ --enable-track-src-odirect Enable use of O_DIRECT with track input, default=no],
|
2009-11-23 18:56:18 +00:00
|
|
|
, enable_track_src_odirect=no)
|
|
|
|
if test x$enable_track_src_odirect = xyes; then
|
|
|
|
LIBBURN_O_DIRECT_DEF="-DLibburn_read_o_direcT"
|
|
|
|
echo "enabled use of O_DIRECT with track input"
|
2009-11-16 16:53:07 +00:00
|
|
|
else
|
2009-11-23 18:56:18 +00:00
|
|
|
LIBBURN_O_DIRECT_DEF=
|
|
|
|
echo "disabled use of O_DIRECT with track input"
|
2009-11-16 16:53:07 +00:00
|
|
|
fi
|
2009-11-23 18:56:18 +00:00
|
|
|
dnl Avoid the need for libburn_libburn_la_CFLAGS in Makefile.am (ugly .o names)
|
|
|
|
dnl ### AC_SUBST(LIBBURN_O_DIRECT_DEF)
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="$LIBBURN_O_DIRECT_DEF $CFLAGS"
|
2009-11-16 16:53:07 +00:00
|
|
|
|
2009-11-17 09:34:46 +00:00
|
|
|
dnl ts A91116
|
2009-11-16 16:53:07 +00:00
|
|
|
AC_ARG_ENABLE(dvd-obs-64k,
|
2013-08-04 10:03:21 +00:00
|
|
|
[ --enable-dvd-obs-64k 64 KB default size for DVD writing, default=no],
|
2010-03-17 18:54:10 +00:00
|
|
|
, enable_dvd_obs_64k=no)
|
2009-11-16 16:53:07 +00:00
|
|
|
if test x$enable_dvd_obs_64k = xyes; then
|
|
|
|
LIBBURN_DVD_OBS_64K="-DLibburn_dvd_obs_default_64K"
|
2013-08-04 10:03:21 +00:00
|
|
|
echo "enabled write size default 64 KB on DVD"
|
2009-11-16 16:53:07 +00:00
|
|
|
else
|
|
|
|
LIBBURN_DVD_OBS_64K=
|
2013-08-04 10:03:21 +00:00
|
|
|
echo "disabled write size default 64 KB on DVD"
|
2009-11-16 16:53:07 +00:00
|
|
|
fi
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="$LIBBURN_DVD_OBS_64K $CFLAGS"
|
2009-11-17 09:34:46 +00:00
|
|
|
|
2012-04-13 20:26:35 +00:00
|
|
|
dnl ts B20413
|
|
|
|
AC_ARG_ENABLE(dvd-obs-pad,
|
2015-08-01 13:58:24 +00:00
|
|
|
[ --enable-dvd-obs-pad pad DVD DAO sessions to 32 or 64 KB, default=no],
|
2012-04-13 20:26:35 +00:00
|
|
|
, enable_dvd_obs_pad=no)
|
|
|
|
if test x$enable_dvd_obs_pad = xyes; then
|
|
|
|
LIBBURN_DVD_OBS_PAD="-DLibburn_dvd_always_obs_paD"
|
2015-08-01 13:58:24 +00:00
|
|
|
echo "enabled padding of DVD DAO sessions to 32 or 64 KB"
|
2012-04-13 20:26:35 +00:00
|
|
|
else
|
|
|
|
LIBBURN_DVD_OBS_64K=
|
2015-08-01 13:58:24 +00:00
|
|
|
echo "disabled padding of DVD DAO sessions to 32 or 64 KB"
|
2012-04-13 20:26:35 +00:00
|
|
|
fi
|
|
|
|
CFLAGS="$LIBBURN_DVD_OBS_PAD $CFLAGS"
|
|
|
|
|
2012-10-02 13:49:26 +00:00
|
|
|
dnl ts A91218 - B21002
|
|
|
|
case $host_os in
|
|
|
|
cygwin*|mingw*)
|
|
|
|
default_libcdio=yes
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
default_libcdio=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
# Check for proper library versions if this is desired.
|
|
|
|
# (It fails too often on too many systems.)
|
|
|
|
AC_ARG_ENABLE(pkg-check-modules,
|
|
|
|
[ --enable-pkg-check-modules Enable pkg-config check for libcdio , default=no],
|
|
|
|
, enable_pkg_check_modules=no)
|
2009-12-19 14:34:48 +00:00
|
|
|
AC_ARG_ENABLE(libcdio,
|
2012-10-02 13:49:26 +00:00
|
|
|
[ --enable-libcdio Enable use of libcdio as system adapter, default=no (except on MSWindows)],
|
|
|
|
, enable_libcdio=$default_libcdio)
|
|
|
|
PKG_PROG_PKG_CONFIG
|
2009-12-19 14:34:48 +00:00
|
|
|
if test x$enable_libcdio = xyes; then
|
|
|
|
dnl Check whether there is libcdio-devel and libcdio-runtime.
|
|
|
|
dnl If not, erase this macro
|
|
|
|
LIBCDIO_DEF="-DLibburn_use_libcdiO"
|
2010-01-23 10:40:11 +00:00
|
|
|
dnl The empty yes case obviously causes -lcdio to be linked
|
2009-12-24 17:04:40 +00:00
|
|
|
AC_CHECK_HEADER(cdio/cdio.h, AC_CHECK_LIB(cdio, mmc_last_cmd_sense, , LIBCDIO_DEF= ), LIBCDIO_DEF= )
|
2009-12-19 14:34:48 +00:00
|
|
|
else
|
|
|
|
LIBCDIO_DEF=
|
|
|
|
fi
|
|
|
|
if test x$LIBCDIO_DEF = x
|
|
|
|
then
|
2009-12-24 17:04:40 +00:00
|
|
|
if test x$enable_libcdio = xyes
|
|
|
|
then
|
|
|
|
echo "WARNING: could not enable use of libcdio as system adapter"
|
|
|
|
fi
|
2009-12-19 14:34:48 +00:00
|
|
|
else
|
2012-10-02 13:49:26 +00:00
|
|
|
echo "enabled use of libcdio as system adapter"
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="$LIBCDIO_DEF $CFLAGS"
|
2009-12-19 14:34:48 +00:00
|
|
|
|
2012-10-02 13:49:26 +00:00
|
|
|
if test x$enable_pkg_check_modules = xyes; then
|
|
|
|
LIBCDIO_REQUIRED=0.83
|
|
|
|
PKG_CHECK_MODULES(LIBCDIO, libcdio >= $LIBCDIO_REQUIRED)
|
|
|
|
else
|
|
|
|
echo "checking for LIBCDIO... skipped, no --enable-pkg-check-modules"
|
|
|
|
fi
|
2009-12-25 14:40:16 +00:00
|
|
|
fi
|
2009-12-19 14:34:48 +00:00
|
|
|
|
2017-01-27 11:05:35 +00:00
|
|
|
dnl ts B70127
|
|
|
|
# There are Linuxes with no public generic SCSI interface
|
|
|
|
LIBBURNIA_CHECK_LINUX_SCSI
|
|
|
|
|
2010-07-04 17:01:21 +00:00
|
|
|
dnl ts B00704
|
|
|
|
# Library versioning normally serves a complex purpose.
|
|
|
|
# Since libburn obeys strict ABI backward compatibility, it needs only the
|
|
|
|
# simple feature to declare function names "global:" or "local:". Only the
|
|
|
|
# global ones are visible to applications at library load time.
|
|
|
|
AC_ARG_ENABLE(versioned-libs,
|
|
|
|
[ --enable-versioned-libs Enable strict symbol encapsulation , default=yes],
|
|
|
|
, enable_versioned_libs=yes)
|
|
|
|
if test x$enable_versioned_libs = xyes; then
|
2010-07-06 11:33:51 +00:00
|
|
|
vers_libs_test=no
|
|
|
|
LIBBURN_ASSERT_VERS_LIBS
|
|
|
|
if test x$vers_libs_test = xno
|
|
|
|
then
|
|
|
|
echo "disabled strict symbol encapsulation (test failed)"
|
|
|
|
else
|
|
|
|
echo "enabled strict symbol encapsulation"
|
|
|
|
fi
|
2010-07-04 17:01:21 +00:00
|
|
|
else
|
|
|
|
echo "disabled strict symbol encapsulation"
|
|
|
|
fi
|
|
|
|
|
2015-12-10 19:24:06 +00:00
|
|
|
# Check for system dependent mandatory libraries (LIBBURN_ARCH_LIBS)
|
|
|
|
LIBBURNIA_CHECK_ARCH_LIBS(mandatory)
|
|
|
|
|
2010-09-22 10:54:56 +00:00
|
|
|
AC_ARG_ENABLE(ldconfig-at-install,
|
|
|
|
[ --enable-ldconfig-at-install On GNU/Linux run ldconfig, default=yes],
|
|
|
|
, ldconfig_at_install=yes)
|
|
|
|
if test x$ldconfig_at_install = xyes; then
|
|
|
|
dummy=dummy
|
|
|
|
else
|
|
|
|
LIBBURNIA_LDCONFIG_CMD="echo 'NOTE: ldconfig is disabled. If needed, configure manually for:'"
|
|
|
|
echo "disabled run of ldconfig during installation on GNU/Linux"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBBURNIA_LDCONFIG_CMD)
|
|
|
|
|
2009-11-16 16:53:07 +00:00
|
|
|
|
2009-11-17 09:34:46 +00:00
|
|
|
dnl Add compiler-specific flags
|
|
|
|
|
|
|
|
dnl See if the user wants aggressive optimizations of the code
|
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
[ --enable-debug Disable aggressive optimizations [default=yes]],
|
|
|
|
, enable_debug=yes)
|
|
|
|
if test x$enable_debug != xyes; then
|
|
|
|
if test x$GCC = xyes; then
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="-O3 $CFLAGS"
|
|
|
|
CFLAGS="-fexpensive-optimizations $CFLAGS"
|
2009-11-17 09:34:46 +00:00
|
|
|
fi
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="-DNDEBUG $CFLAGS"
|
2009-11-17 09:34:46 +00:00
|
|
|
else
|
|
|
|
if test x$GCC = xyes; then
|
2014-02-11 08:28:44 +00:00
|
|
|
CFLAGS="-g -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-char-subscripts $CFLAGS"
|
2009-11-17 09:34:46 +00:00
|
|
|
fi
|
2010-12-13 08:00:00 +00:00
|
|
|
CFLAGS="-DDEBUG $CFLAGS"
|
2009-11-17 09:34:46 +00:00
|
|
|
fi
|
2009-07-07 19:12:18 +00:00
|
|
|
|
|
|
|
dnl Determine target directory for libburn-*.pc
|
|
|
|
dnl Important: Must be performed _after_ TARGET_SHIZZLE
|
|
|
|
dnl
|
|
|
|
LIBBURNIA_SET_PKGCONFIG
|
|
|
|
|
|
|
|
|
2006-08-15 20:37:04 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
doc/doxygen.conf
|
|
|
|
version.h
|
2008-02-01 10:03:56 +00:00
|
|
|
libburn-1.pc
|
2006-08-15 20:37:04 +00:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|