2021-01-30 20:16:25 +00:00
|
|
|
AC_INIT([libisoburn], [1.5.5], [http://libburnia-project.org])
|
2007-09-14 04:32:46 +00:00
|
|
|
AC_PREREQ([2.50])
|
|
|
|
dnl AC_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
|
2010-02-04 08:25:31 +00:00
|
|
|
LIBBURNIA_SET_FLAGS
|
|
|
|
|
2007-09-14 04:32:46 +00:00
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
2011-06-08 19:43:18 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([./])
|
2007-09-14 04:32:46 +00:00
|
|
|
|
2008-04-28 12:34:39 +00:00
|
|
|
dnl Hint: Search list for version code aspects:
|
2021-09-04 14:22:35 +00:00
|
|
|
dnl /AC_INIT
|
2008-04-28 12:34:39 +00:00
|
|
|
dnl /ISOBURN_.*_VERSION
|
|
|
|
dnl /LT_.*
|
|
|
|
dnl /LIB.*_REQUIRED
|
|
|
|
|
2008-06-02 15:29:46 +00:00
|
|
|
dnl The API version codes are defined in libisoburn/libisoburn.h
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl #define isoburn_header_version_*
|
|
|
|
dnl configure.ac only rules the libtool revision numbering about
|
|
|
|
dnl LT_CURREN, LT_AGE, LT_REVISION where SONAME becomes LT_CURRENT - LT_AGE
|
|
|
|
dnl
|
|
|
|
dnl These three are only copies to provide libtool with unused LT_RELEASE
|
2011-01-17 09:25:21 +00:00
|
|
|
ISOBURN_MAJOR_VERSION=1
|
2018-09-15 13:58:10 +00:00
|
|
|
ISOBURN_MINOR_VERSION=5
|
2021-01-30 20:16:25 +00:00
|
|
|
ISOBURN_MICRO_VERSION=5
|
2009-03-16 12:07:24 +00:00
|
|
|
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl ISOBURN_VERSION=$ISOBURN_MAJOR_VERSION.$ISOBURN_MINOR_VERSION.$ISOBURN_MICRO_VERSION
|
|
|
|
|
2008-01-26 12:06:26 +00:00
|
|
|
AC_SUBST(ISOBURN_MAJOR_VERSION)
|
|
|
|
AC_SUBST(ISOBURN_MINOR_VERSION)
|
|
|
|
AC_SUBST(ISOBURN_MICRO_VERSION)
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl AC_SUBST(ISOBURN_VERSION)
|
2007-09-14 04:32:46 +00:00
|
|
|
|
|
|
|
dnl Libtool versioning
|
2008-02-15 21:19:24 +00:00
|
|
|
dnl Generate libisoburn.so.1.x.y
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl SONAME will become LT_CURRENT - LT_AGE
|
2008-02-15 21:19:24 +00:00
|
|
|
dnl
|
2021-01-30 14:27:55 +00:00
|
|
|
dnl ts C10130
|
2021-01-30 20:16:25 +00:00
|
|
|
dnl ### This is the release version 1.5.4 = libisoburn.so.1.111.0
|
|
|
|
dnl This is the development version after above stable release
|
2021-01-30 14:27:55 +00:00
|
|
|
dnl LT_CURRENT++, LT_AGE++ have not happened yet.
|
|
|
|
dnl ### LT_CURRENT++, LT_AGE++ has happened meanwhile.
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl
|
2021-01-30 14:27:55 +00:00
|
|
|
dnl SONAME = 112 - 111 = 1 . Library name = libisoburn.so.1.111.0
|
2008-01-26 12:06:26 +00:00
|
|
|
LT_RELEASE=$ISOBURN_MAJOR_VERSION.$ISOBURN_MINOR_VERSION
|
2021-01-30 14:27:55 +00:00
|
|
|
LT_CURRENT=112
|
|
|
|
LT_AGE=111
|
2008-03-12 13:19:10 +00:00
|
|
|
LT_REVISION=0
|
2007-09-14 04:32:46 +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)
|
|
|
|
|
|
|
|
AC_PREFIX_DEFAULT([/usr/local])
|
|
|
|
test "$prefix" = "NONE" && prefix=$ac_default_prefix
|
|
|
|
|
2019-04-07 08:28:19 +00:00
|
|
|
dnl ts B90405 : Disabled on advise of Ross Burton
|
|
|
|
dnl AM_MAINTAINER_MODE
|
2007-09-14 04:32:46 +00:00
|
|
|
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
|
|
|
|
dnl Large file support
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
AC_FUNC_FSEEKO
|
|
|
|
AC_CHECK_FUNC([fseeko])
|
|
|
|
if test ! $ac_cv_func_fseeko; then
|
|
|
|
AC_ERROR([Libburn requires largefile support.])
|
|
|
|
fi
|
|
|
|
|
2010-04-10 15:09:18 +00:00
|
|
|
if test x$LIBISOBURN_OLD_ICONV_CONFIGURE = x
|
|
|
|
then
|
|
|
|
|
|
|
|
dnl ts B00410 : To detect the need for -liconv and const argument of iconv()
|
2010-04-13 15:43:58 +00:00
|
|
|
LIBBURNIA_CHECK_ICONV
|
2010-04-10 15:09:18 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
dnl Outdated: produces double -liconv and warnings about parameter mismatch
|
2009-02-04 20:06:56 +00:00
|
|
|
dnl If iconv(3) is in an extra lib, then it gets added to variable LIBS.
|
|
|
|
dnl If not, then no -liconv will be added.
|
2010-04-13 15:43:58 +00:00
|
|
|
AC_CHECK_LIB(iconv, iconv, , )
|
2009-06-30 12:03:09 +00:00
|
|
|
dnl GNU iconv has no function iconv() but libiconv() and a macro iconv()
|
2010-04-13 15:43:58 +00:00
|
|
|
AC_CHECK_LIB(iconv, libiconv, , )
|
2009-02-04 20:06:56 +00:00
|
|
|
|
2010-04-10 15:09:18 +00:00
|
|
|
fi
|
|
|
|
|
2007-09-14 04:32:46 +00:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
2016-08-12 18:39:28 +00:00
|
|
|
# LIBTOOL="$LIBTOOL --silent"
|
2007-09-14 04:32:46 +00:00
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS()
|
|
|
|
|
2013-03-12 19:49:07 +00:00
|
|
|
dnl Check for tm_gmtoff field in struct tm
|
|
|
|
AC_CHECK_MEMBER([struct tm.tm_gmtoff],
|
|
|
|
[AC_DEFINE(HAVE_TM_GMTOFF, 1,
|
|
|
|
[Define this if tm structure includes a tm_gmtoff entry.])],
|
|
|
|
,
|
|
|
|
[#include <time.h>])
|
|
|
|
|
2014-11-26 13:48:43 +00:00
|
|
|
dnl Whether timezone is an integer variable
|
|
|
|
AH_TEMPLATE([Libburnia_timezonE], [Either timezone or 0])
|
|
|
|
LIBBURNIA_TRY_TIMEZONE
|
|
|
|
if test x$LIBBURNIA_TIMEZONE = xtimezone
|
|
|
|
then
|
|
|
|
AC_DEFINE([Libburnia_timezonE], [timezone])
|
|
|
|
else
|
|
|
|
AC_DEFINE([Libburnia_timezonE], [0])
|
|
|
|
fi
|
|
|
|
|
2007-09-14 04:32:46 +00:00
|
|
|
THREAD_LIBS=-lpthread
|
|
|
|
AC_SUBST(THREAD_LIBS)
|
|
|
|
|
|
|
|
TARGET_SHIZZLE
|
|
|
|
AC_SUBST(ARCH)
|
2009-03-18 10:39:35 +00:00
|
|
|
AC_SUBST(LIBBURNIA_PKGCONFDIR)
|
2007-09-14 04:32:46 +00:00
|
|
|
AC_SUBST(LIBBURN_ARCH_LIBS)
|
|
|
|
|
2015-12-10 19:33:16 +00:00
|
|
|
# Do not link libcam or libvolmgt if not available.
|
|
|
|
# (They are indirect dependency on FreeBSD or Solaris.)
|
|
|
|
LIBBURNIA_CHECK_ARCH_LIBS(optional)
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2009-07-07 19:39:35 +00:00
|
|
|
dnl Determine target directory for libisoburn-*.pc
|
|
|
|
dnl Important: Must be performed _after_ TARGET_SHIZZLE
|
|
|
|
dnl
|
|
|
|
LIBBURNIA_SET_PKGCONFIG
|
|
|
|
|
2019-12-08 14:18:11 +00:00
|
|
|
dnl xorriso-dd-target is addicted to the Linux kernel and util-linux lsblk
|
|
|
|
if uname -s | grep '^Linux' >/dev/null
|
|
|
|
then
|
|
|
|
XORRISO_DD_TARGET=xorriso-dd-target/xorriso-dd-target
|
|
|
|
XORRISO_DD_TARGET_MAN=xorriso-dd-target/xorriso-dd-target.1
|
|
|
|
XORRISO_DD_TARGET_TEXI=xorriso-dd-target/xorriso-dd-target.texi
|
|
|
|
echo "enabled installation of xorriso-dd-target/xorriso-dd-target"
|
|
|
|
else
|
|
|
|
XORRISO_DD_TARGET=
|
|
|
|
XORRISO_DD_TARGET_MAN=
|
|
|
|
XORRISO_DD_TARGET_TEXI=
|
|
|
|
echo "disabled installation of xorriso-dd-target/xorriso-dd-target"
|
|
|
|
fi
|
|
|
|
AC_SUBST(XORRISO_DD_TARGET)
|
|
|
|
AC_SUBST(XORRISO_DD_TARGET_MAN)
|
|
|
|
AC_SUBST(XORRISO_DD_TARGET_TEXI)
|
|
|
|
|
2008-10-09 15:00:11 +00:00
|
|
|
AC_ARG_ENABLE(libreadline,
|
|
|
|
[ --enable-libreadline Enable use of libreadline by xorriso, default=yes],
|
|
|
|
, enable_libreadline=yes)
|
|
|
|
if test x$enable_libreadline = xyes; then
|
2008-02-01 19:59:12 +00:00
|
|
|
dnl Check whether there is readline-devel and readline-runtime.
|
|
|
|
dnl If not, erase this macro which would enable use of readline(),add_history()
|
2008-10-09 15:00:11 +00:00
|
|
|
READLINE_DEF="-DXorriso_with_readlinE"
|
2010-04-13 15:43:58 +00:00
|
|
|
|
|
|
|
if test x$XORRISO_OLD_READLINE_CONFIGURE = x
|
|
|
|
then
|
|
|
|
|
|
|
|
dnl ts B00411 : To disable readline if not all needed functions are present
|
|
|
|
LIBBURNIA_ASSERT_READLINE
|
|
|
|
|
|
|
|
else
|
2008-02-01 19:59:12 +00:00
|
|
|
dnl The empty yes case obviously causes -lreadline to be linked
|
2010-04-13 15:43:58 +00:00
|
|
|
AC_CHECK_HEADER(readline/readline.h, AC_CHECK_LIB(readline, readline, , READLINE_DEF= ), READLINE_DEF= )
|
2008-02-01 19:59:12 +00:00
|
|
|
dnl The X= in the yes case prevents that -lreadline gets linked twice
|
2010-04-13 15:43:58 +00:00
|
|
|
AC_CHECK_HEADER(readline/history.h, AC_CHECK_LIB(readline, add_history, X= , READLINE_DEF= ), READLINE_DEF= )
|
|
|
|
fi
|
2008-10-09 15:00:11 +00:00
|
|
|
else
|
|
|
|
READLINE_DEF=
|
2014-06-15 12:56:43 +00:00
|
|
|
echo "disabled libreadline"
|
2008-10-09 15:00:11 +00:00
|
|
|
fi
|
2014-06-14 19:22:41 +00:00
|
|
|
if test x$READLINE_DEF = x; then
|
2014-06-15 12:56:43 +00:00
|
|
|
if test x$enable_libreadline = xyes; then
|
|
|
|
libedit_deflt=yes
|
|
|
|
else
|
|
|
|
libedit_deflt=no
|
|
|
|
fi
|
2014-06-14 19:22:41 +00:00
|
|
|
AC_ARG_ENABLE(libedit,
|
2014-06-15 12:56:43 +00:00
|
|
|
[ --enable-libedit Enable use of libedit by xorriso if not libreadline,
|
|
|
|
default= setting of --enable-libreadline],
|
|
|
|
, enable_libedit=$libedit_deflt)
|
2014-06-14 19:22:41 +00:00
|
|
|
if test x$enable_libedit = xyes; then
|
|
|
|
READLINE_DEF="-DXorriso_with_editlinE"
|
|
|
|
|
|
|
|
LIBBURNIA_ASSERT_EDITLINE
|
|
|
|
|
|
|
|
else
|
|
|
|
READLINE_DEF=
|
2014-06-15 12:56:43 +00:00
|
|
|
echo "disabled libedit"
|
2014-06-14 19:22:41 +00:00
|
|
|
fi
|
|
|
|
fi
|
2008-02-01 19:59:12 +00:00
|
|
|
AC_SUBST(READLINE_DEF)
|
|
|
|
|
2014-06-14 19:22:41 +00:00
|
|
|
|
2009-03-29 16:43:25 +00:00
|
|
|
dnl ts A90329
|
|
|
|
dnl ACL and xattr do not need to be enabled in libisoburn or xorriso source
|
|
|
|
dnl but without AC_CHECK_LIB() xorriso will not be linked with -lacl .
|
|
|
|
dnl On my Linux this does work with an ACL enabled libisofs but in general
|
|
|
|
dnl it seems not be right.
|
|
|
|
dnl So for now it seems to be best to do the same configuration for libisoburn
|
|
|
|
dnl and xorriso as for libisofs.
|
|
|
|
AC_ARG_ENABLE(libacl,
|
2009-07-07 17:57:26 +00:00
|
|
|
[ --enable-libacl Enable use of libacl by libisofs, default=yes],
|
2009-03-29 16:43:25 +00:00
|
|
|
, enable_libacl=yes)
|
2015-12-15 10:10:55 +00:00
|
|
|
LIBACL_DEF=
|
|
|
|
if test x$LIBBURNIA_SUPP_ACL = xlibacl
|
|
|
|
then
|
|
|
|
if test x$enable_libacl = xyes; then
|
2009-03-29 16:43:25 +00:00
|
|
|
dnl Check whether there is libacl-devel and libacl-runtime.
|
|
|
|
dnl If not, erase this macro which would enable use of acl_to_text and others
|
2015-12-15 10:10:55 +00:00
|
|
|
LIBACL_DEF="-DLibisofs_with_aaip_acL"
|
2009-03-29 16:43:25 +00:00
|
|
|
dnl The empty yes case obviously causes -lacl to be linked
|
2015-12-15 10:10:55 +00:00
|
|
|
has_acl_h_but_no_func=0
|
|
|
|
AC_CHECK_HEADER(sys/acl.h, AC_CHECK_LIB(acl, acl_to_text, , has_acl_h_but_no_libacl=1 ), LIBACL_DEF= )
|
|
|
|
if test "$has_acl_h_but_no_libacl" = 1
|
|
|
|
then
|
|
|
|
AC_CHECK_LIB(c, acl_to_text, X= , LIBACL_DEF= )
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x$LIBACL_DEF = x-DLibisofs_with_aaip_acL
|
|
|
|
then
|
|
|
|
if test x$has_acl_h_but_no_libacl = x1
|
|
|
|
then
|
|
|
|
echo "enabled local processing of ACL"
|
|
|
|
else
|
|
|
|
echo "enabled libacl, local processing of ACL"
|
|
|
|
fi
|
2009-03-29 16:43:25 +00:00
|
|
|
else
|
2015-12-15 10:10:55 +00:00
|
|
|
echo "disabled local processing of ACL"
|
2009-03-29 16:43:25 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBACL_DEF)
|
2009-01-23 17:27:04 +00:00
|
|
|
|
|
|
|
|
2009-03-29 16:43:25 +00:00
|
|
|
AC_ARG_ENABLE(xattr,
|
2015-12-15 10:10:55 +00:00
|
|
|
[ --enable-xattr Enable use of extended file attributes by libisofs, default=yes],
|
|
|
|
, enable_xattr=yes)
|
|
|
|
XATTR_DEF=
|
|
|
|
if test x"$LIBBURNIA_SUPP_FATTR" = xxattr
|
|
|
|
then
|
|
|
|
if test "x$enable_xattr" = xyes; then
|
|
|
|
dnl Check whether there is the header for Linux xattr.
|
2009-03-29 16:43:25 +00:00
|
|
|
dnl If not, erase this macro which would enable use of listxattr and others
|
2015-12-15 10:10:55 +00:00
|
|
|
XATTR_DEF="-DLibisofs_with_aaip_xattR"
|
|
|
|
AC_CHECK_HEADER(attr/xattr.h, AC_CHECK_LIB(c, listxattr, X= ,
|
|
|
|
XATTR_DEF= ), XATTR_DEF= )
|
|
|
|
fi
|
|
|
|
elif test x"$LIBBURNIA_SUPP_FATTR" = xextattr
|
|
|
|
then
|
|
|
|
if test "x$enable_xattr" = xyes; then
|
|
|
|
XATTR_DEF="-DLibisofs_with_freebsd_extattR"
|
|
|
|
AC_CHECK_HEADER(sys/extattr.h, AC_CHECK_LIB(c, extattr_list_file, X=,
|
|
|
|
XATTR_DEF= ), XATTR_DEF= )
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x$XATTR_DEF = x-DLibisofs_with_aaip_xattR
|
|
|
|
then
|
|
|
|
echo "enabled xattr, local processing of extended file attributes Linux style"
|
|
|
|
elif test x$XATTR_DEF = x-DLibisofs_with_freebsd_extattR
|
|
|
|
then
|
|
|
|
echo "enabled extattr, local processing of extended file attributes FreeBSD style"
|
2009-03-29 16:43:25 +00:00
|
|
|
else
|
2015-12-15 10:10:55 +00:00
|
|
|
echo "disabled local processing of extended file attributes"
|
2009-03-29 16:43:25 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(XATTR_DEF)
|
|
|
|
|
2009-04-04 14:42:41 +00:00
|
|
|
|
2009-04-10 10:25:58 +00:00
|
|
|
dnl ts A90409
|
|
|
|
dnl Same situation as with xattr and ACL: libisoburn does not depend directly
|
|
|
|
dnl on zlib. But if it is enabled in libisofs then it seems wise to link it
|
|
|
|
dnl with libisoburn apps.
|
|
|
|
AC_ARG_ENABLE(zlib,
|
2009-07-07 17:57:26 +00:00
|
|
|
[ --enable-zlib Enable use of zlib by libisofs, default=yes],
|
2009-04-10 10:25:58 +00:00
|
|
|
, enable_zlib=yes)
|
|
|
|
if test x$enable_zlib = xyes; then
|
|
|
|
dnl Check whether there is the header for zlib.
|
|
|
|
dnl If not, erase this macro which would enable use of compress2() and others.
|
2010-01-07 09:03:46 +00:00
|
|
|
dnl Linking fails on SuSE 9.0 because zlib has compress2() but lacks
|
|
|
|
dnl compressBound(). So compressBound is the more modern thing to test.
|
|
|
|
dnl The empty parameter after "compressBound" causes -lz.
|
2009-04-10 10:25:58 +00:00
|
|
|
ZLIB_DEF="-DLibisofs_with_zliB"
|
2010-01-07 09:03:46 +00:00
|
|
|
AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, compressBound, , ZLIB_DEF= ), ZLIB_DEF= )
|
2009-04-10 10:25:58 +00:00
|
|
|
else
|
|
|
|
ZLIB_DEF=
|
|
|
|
fi
|
|
|
|
AC_SUBST(ZLIB_DEF)
|
|
|
|
|
2010-09-29 09:24:20 +00:00
|
|
|
dnl ts B00928
|
|
|
|
AC_ARG_ENABLE(libjte,
|
2019-11-24 12:34:30 +00:00
|
|
|
[ --enable-libjte Enable use of libjte >= 2.0 by xorriso, default=yes],
|
2010-09-29 09:24:20 +00:00
|
|
|
, enable_libjte=yes)
|
|
|
|
if test "x$enable_libjte" = xyes; then
|
|
|
|
LIBJTE_DEF="-DXorriso_with_libjtE"
|
2019-11-24 12:34:30 +00:00
|
|
|
AC_CHECK_HEADER(libjte/libjte.h, AC_CHECK_LIB(jte, libjte_set_checksum_algorithm, , LIBJTE_DEF= ), LIBJTE_DEF= )
|
2010-09-29 09:24:20 +00:00
|
|
|
else
|
|
|
|
LIBJTE_DEF=
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBJTE_DEF)
|
2009-04-10 10:25:58 +00:00
|
|
|
|
2010-01-07 09:03:46 +00:00
|
|
|
dnl ts B00107
|
|
|
|
dnl Just for the case that it is necessary to give link option -lcdio not only
|
|
|
|
dnl with libburn but also with libburn apps like xorriso.
|
|
|
|
dnl On SuSE 10.2 this is not needed. libburn finds libcdio on its own.
|
2012-10-02 13:47:05 +00:00
|
|
|
case $host_os in
|
|
|
|
cygwin*|mingw*)
|
|
|
|
default_libcdio=yes
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
default_libcdio=no
|
|
|
|
;;
|
|
|
|
esac
|
2010-01-07 09:03:46 +00:00
|
|
|
AC_ARG_ENABLE(libcdio,
|
2012-10-02 13:47:05 +00:00
|
|
|
[ --enable-libcdio Enable use of libcdio as system adapter, default=no (except on MSWindows)],
|
|
|
|
, enable_libcdio=$default_libcdio)
|
2010-01-07 09:03:46 +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"
|
|
|
|
dnl The empty yes case obviously causes -lcdio to be linked
|
|
|
|
AC_CHECK_HEADER(cdio/cdio.h, AC_CHECK_LIB(cdio, mmc_last_cmd_sense, , LIBCDIO_DEF= ), LIBCDIO_DEF= )
|
|
|
|
else
|
|
|
|
LIBCDIO_DEF=
|
|
|
|
fi
|
2011-09-03 19:48:50 +00:00
|
|
|
if test x$LIBCDIO_DEF = x
|
|
|
|
then
|
|
|
|
if test x$enable_libcdio = xyes
|
|
|
|
then
|
|
|
|
echo "WARNING: could not enable use of libcdio as system adapter"
|
|
|
|
fi
|
|
|
|
else
|
2012-10-02 13:47:05 +00:00
|
|
|
echo "enabled use of libcdio as system adapter"
|
2011-09-03 19:48:50 +00:00
|
|
|
fi
|
2010-01-07 09:03:46 +00:00
|
|
|
AC_SUBST(LIBCDIO_DEF)
|
|
|
|
|
|
|
|
|
2009-04-04 14:42:41 +00:00
|
|
|
AC_ARG_ENABLE(external-filters,
|
2011-09-02 11:03:13 +00:00
|
|
|
[ --enable-external-filters Enable use of external filter programs by xorriso, default=yes],
|
2009-04-04 14:42:41 +00:00
|
|
|
, enable_external_filters=yes)
|
|
|
|
if test x"$enable_external_filters" = xyes; then
|
|
|
|
EXTF_DEF="-DXorriso_allow_external_filterS"
|
|
|
|
echo "enabled xorriso external filter programs"
|
|
|
|
else
|
|
|
|
EXTF_DEF=
|
|
|
|
echo "disabled xorriso external filter programs"
|
|
|
|
fi
|
|
|
|
AC_SUBST(EXTF_DEF)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(external-filters-setuid,
|
2009-07-07 17:57:26 +00:00
|
|
|
[ --enable-external-filters-setuid Enable xorriso external filter programs under setuid, default=no],
|
2009-04-04 14:42:41 +00:00
|
|
|
, enable_external_filters_setuid=no)
|
|
|
|
if test x$enable_external_filters_setuid = xyes; then
|
|
|
|
EXTF_SUID_DEF="-DXorriso_allow_extf_suiD"
|
|
|
|
echo "enabled xorriso external filter programs under setuid"
|
|
|
|
else
|
|
|
|
EXTF_SUID_DEF=
|
|
|
|
echo "disabled xorriso external filter programs under setuid"
|
|
|
|
fi
|
|
|
|
AC_SUBST(EXTF_SUID_DEF)
|
|
|
|
|
2012-12-20 20:22:58 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(launch-frontend,
|
|
|
|
[ --enable-launch-frontend Enable start of piped frontend program by xorriso, default=yes],
|
|
|
|
, enable_launch_frontend=yes)
|
|
|
|
if test x"$enable_launch_frontend" = xyes; then
|
|
|
|
LFRONT_DEF="-DXorriso_allow_launch_frontenD"
|
|
|
|
echo "enabled xorriso command -launch_frontend"
|
|
|
|
else
|
|
|
|
LFRONT_DEF=
|
|
|
|
echo "disabled xorriso command -launch_frontend"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LFRONT_DEF)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(launch-frontend-setuid,
|
|
|
|
[ --enable-launch-frontend-setuid Enable start of piped frontend program under setuid, default=no],
|
|
|
|
, enable_launch_frontend_setuid=no)
|
|
|
|
if test x$enable_launch_frontend_setuid = xyes; then
|
|
|
|
LFRONT_SUID_DEF="-DXorriso_allow_extf_suiD"
|
|
|
|
echo "enabled xorriso command -launch_frontend under setuid"
|
|
|
|
else
|
|
|
|
LFRONT_SUID_DEF=
|
|
|
|
echo "disabled xorriso command -launch_frontend under setuid"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LFRONT_SUID_DEF)
|
|
|
|
|
|
|
|
|
2009-11-17 14:23:28 +00:00
|
|
|
AC_ARG_ENABLE(dvd-obs-64k,
|
2013-08-04 10:13:53 +00:00
|
|
|
[ --enable-dvd-obs-64k 64 KB default size for xorriso DVD writing, default=no],
|
2010-09-21 14:25:46 +00:00
|
|
|
, enable_dvd_obs_64=no)
|
2009-11-17 14:23:28 +00:00
|
|
|
if test x$enable_dvd_obs_64k = xyes; then
|
|
|
|
XORRISO_DVD_OBS_64K="-DXorriso_dvd_obs_default_64K"
|
2013-08-04 10:13:53 +00:00
|
|
|
echo "enabled xorriso write size default 64 KB on DVD"
|
2009-11-17 14:23:28 +00:00
|
|
|
else
|
|
|
|
XORRISO_DVD_OBS_64K=
|
2013-08-04 10:13:53 +00:00
|
|
|
echo "disabled xorriso write size default 64 KB on DVD"
|
2009-11-17 14:23:28 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(XORRISO_DVD_OBS_64K)
|
|
|
|
|
2010-07-05 12:29:50 +00:00
|
|
|
# Library versioning normally serves a complex purpose.
|
|
|
|
# Since libisoburn 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,
|
2011-09-02 11:03:13 +00:00
|
|
|
[ --enable-versioned-libs Enable strict symbol encapsulation , default=yes],
|
2010-07-05 12:29:50 +00:00
|
|
|
, enable_versioned_libs=yes)
|
|
|
|
if test x$enable_versioned_libs = xyes; then
|
2010-07-06 11:41:46 +00:00
|
|
|
vers_libs_test=no
|
|
|
|
LIBISOBURN_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-05 12:29:50 +00:00
|
|
|
else
|
|
|
|
echo "disabled strict symbol encapsulation"
|
|
|
|
fi
|
2009-04-04 14:42:41 +00:00
|
|
|
|
2010-09-21 14:25:46 +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
|
2010-09-21 15:03:56 +00:00
|
|
|
LIBBURNIA_LDCONFIG_CMD="echo 'NOTE: ldconfig is disabled. If needed, configure manually for:'"
|
2010-09-21 14:25:46 +00:00
|
|
|
echo "disabled run of ldconfig during installation on GNU/Linux"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBBURNIA_LDCONFIG_CMD)
|
|
|
|
|
|
|
|
|
2013-03-17 11:06:36 +00:00
|
|
|
AC_CHECK_HEADER(libburn/libburn.h, LIBBURNIA_HAVE_LIBBURN=1, LIBBURNIA_HAVE_LIBBURN=0)
|
|
|
|
AC_CHECK_HEADER(libisofs/libisofs.h, LIBBURNIA_HAVE_LIBISOFS=1, LIBBURNIA_HAVE_LIBISOFS=0)
|
|
|
|
if test x$LIBBURNIA_HAVE_LIBBURN = x0; then
|
|
|
|
echo "FATAL: Lacking libburn development header file <libburn/libburn.h>" 2>&1
|
|
|
|
echo "HINT: You first have to install libburn before you can build libisoburn" 2>&1
|
|
|
|
fi
|
|
|
|
if test x$LIBBURNIA_HAVE_LIBISOFS = x0; then
|
|
|
|
echo "FATAL: Lacking libisofs development header file <libisofs/libisofs.h>" 2>&1
|
|
|
|
echo "HINT: You first have to install libisofs before you can build libisoburn" 2>&1
|
|
|
|
fi
|
|
|
|
if test x$LIBBURNIA_HAVE_LIBBURN = x0 -o x$LIBBURNIA_HAVE_LIBISOFS = x0; then
|
|
|
|
echo "ABORT: Lacking mandatory prerequisites" 2>&1
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-06-14 09:33:43 +00:00
|
|
|
|
|
|
|
# ------- Visible mark in configure : Start of library check
|
|
|
|
|
2011-09-02 11:03:13 +00:00
|
|
|
# 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 libburn and libisofs , default=no],
|
|
|
|
, enable_pkg_check_modules=no)
|
|
|
|
if test x$enable_pkg_check_modules = xyes; then
|
|
|
|
|
2011-09-03 19:48:50 +00:00
|
|
|
dnl If PKG_CHECK_MODULES is to be used after this if-block,
|
2011-09-02 11:03:13 +00:00
|
|
|
dnl then it might be necessary to perform PKG_PROG_PKG_CONFIG before the block.
|
|
|
|
|
2021-01-30 14:27:55 +00:00
|
|
|
LIBBURN_REQUIRED=1.5.4
|
|
|
|
LIBISOFS_REQUIRED=1.5.4
|
2011-09-02 11:03:13 +00:00
|
|
|
PKG_CHECK_MODULES(LIBBURN, libburn-1 >= $LIBBURN_REQUIRED)
|
|
|
|
PKG_CHECK_MODULES(LIBISOFS, libisofs-1 >= $LIBISOFS_REQUIRED)
|
2011-09-03 19:48:50 +00:00
|
|
|
if test x$LIBCDIO_DEF = x; then
|
|
|
|
dummy=dummy
|
|
|
|
else
|
|
|
|
LIBCDIO_REQUIRED=0.83
|
|
|
|
PKG_CHECK_MODULES(LIBCDIO, libcdio >= $LIBCDIO_REQUIRED)
|
|
|
|
fi
|
2011-09-02 11:03:13 +00:00
|
|
|
else
|
|
|
|
echo "checking for LIBBURN... skipped, no --enable-pkg-check-modules"
|
|
|
|
echo "checking for LIBISOFS... skipped, no --enable-pkg-check-modules"
|
2011-09-03 19:48:50 +00:00
|
|
|
if test x$LIBCDIO_DEF = x; then
|
|
|
|
dummy=dummy
|
|
|
|
else
|
|
|
|
echo "checking for LIBCDIO... skipped, no --enable-pkg-check-modules"
|
|
|
|
fi
|
2011-09-02 11:03:13 +00:00
|
|
|
fi
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2010-06-14 09:33:43 +00:00
|
|
|
# ------- Visible mark in configure : End of library check
|
|
|
|
|
2007-09-14 04:32: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 12:32:33 +00:00
|
|
|
CFLAGS="-O3 $CFLAGS"
|
|
|
|
CFLAGS="-fexpensive-optimizations $CFLAGS"
|
2007-09-14 04:32:46 +00:00
|
|
|
fi
|
2010-12-13 12:32:33 +00:00
|
|
|
CFLAGS="-DNDEBUG $CFLAGS"
|
2007-09-14 04:32:46 +00:00
|
|
|
else
|
|
|
|
if test x$GCC = xyes; then
|
2014-02-05 19:11:50 +00:00
|
|
|
CFLAGS="-g -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-char-subscripts $CFLAGS"
|
2007-09-14 04:32:46 +00:00
|
|
|
fi
|
2010-12-13 12:32:33 +00:00
|
|
|
CFLAGS="-DDEBUG $CFLAGS"
|
2007-09-14 04:32:46 +00:00
|
|
|
fi
|
|
|
|
|
2012-12-20 20:22:58 +00:00
|
|
|
CFLAGS="$READLINE_DEF $LIBACL_DEF $XATTR_DEF $EXTF_DEF $EXTF_SUID_DEF $LFRONT_DEF $LFRONT_SUID_DEF $ZLIB_DEF $LIBJTE_DEF $XORRISO_DVD_OBS_64K $CFLAGS"
|
2010-05-19 16:06:36 +00:00
|
|
|
|
2007-09-14 04:32:46 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
doc/doxygen.conf
|
|
|
|
version.h
|
2008-02-01 19:59:12 +00:00
|
|
|
libisoburn-1.pc
|
2007-09-14 04:32:46 +00:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|