2008-05-18 08:48:07 +00:00
|
|
|
AC_INIT([xorriso], [0.1.7], [http://libburnia-project.org])
|
2008-01-16 20:13:18 +00:00
|
|
|
AC_PREREQ([2.50])
|
|
|
|
dnl AC_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
|
|
|
|
|
|
|
BURN_MAJOR_VERSION=0
|
2008-01-26 14:01:19 +00:00
|
|
|
BURN_MINOR_VERSION=4
|
2008-05-18 08:48:07 +00:00
|
|
|
BURN_MICRO_VERSION=9
|
2008-01-16 20:13:18 +00:00
|
|
|
AC_SUBST(BURN_MAJOR_VERSION)
|
|
|
|
AC_SUBST(BURN_MINOR_VERSION)
|
|
|
|
AC_SUBST(BURN_MICRO_VERSION)
|
|
|
|
|
2008-01-26 14:01:19 +00:00
|
|
|
LIBISOFS_MAJOR_VERSION=0
|
2008-01-29 18:44:54 +00:00
|
|
|
LIBISOFS_MINOR_VERSION=6
|
2008-06-01 14:50:21 +00:00
|
|
|
LIBISOFS_MICRO_VERSION=6
|
2008-01-26 14:01:19 +00:00
|
|
|
AC_SUBST(LIBISOFS_MAJOR_VERSION)
|
|
|
|
AC_SUBST(LIBISOFS_MINOR_VERSION)
|
|
|
|
AC_SUBST(LIBISOFS_MICRO_VERSION)
|
|
|
|
|
2008-02-15 21:19:24 +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_*
|
2008-01-26 14:01:19 +00:00
|
|
|
|
2008-01-16 20:13:18 +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
|
|
|
|
AC_CHECK_FUNC([fseeko])
|
|
|
|
if test ! $ac_cv_func_fseeko; then
|
|
|
|
AC_ERROR([Libburn requires largefile support.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
LIBTOOL="$LIBTOOL --silent"
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS()
|
|
|
|
|
2008-01-22 11:45:09 +00:00
|
|
|
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>])
|
|
|
|
|
2008-01-29 18:44:54 +00:00
|
|
|
dnl Check if non standard timegm() function is available
|
|
|
|
AC_CHECK_DECL([timegm],
|
|
|
|
[AC_DEFINE(HAVE_TIMEGM, 1, [Define this if timegm function is available])],
|
|
|
|
,
|
|
|
|
[#include <time.h>])
|
|
|
|
|
|
|
|
dnl Check if non standard eaccess() function is available
|
|
|
|
AC_CHECK_DECL([eaccess],
|
|
|
|
[AC_DEFINE(HAVE_EACCESS, 1, [Define this if eaccess function is available])],
|
|
|
|
,
|
|
|
|
[#include <unistd.h>])
|
|
|
|
|
2008-01-16 20:13:18 +00:00
|
|
|
THREAD_LIBS=-lpthread
|
|
|
|
AC_SUBST(THREAD_LIBS)
|
|
|
|
|
|
|
|
TARGET_SHIZZLE
|
|
|
|
AC_SUBST(ARCH)
|
|
|
|
AC_SUBST(LIBBURN_ARCH_LIBS)
|
|
|
|
|
|
|
|
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
|
|
|
|
CFLAGS="$CFLAGS -O3"
|
|
|
|
CFLAGS="$CFLAGS -fexpensive-optimizations"
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -DNDEBUG"
|
|
|
|
else
|
|
|
|
if test x$GCC = xyes; then
|
|
|
|
CFLAGS="$CFLAGS -g -pedantic -Wall"
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -DDEBUG"
|
|
|
|
fi
|
|
|
|
|
2008-01-16 23:36:17 +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()
|
|
|
|
READLINE_DEF="-DXorriso_with_readlinE"
|
|
|
|
dnl The empty yes case obviously causes -lreadline to be linked
|
|
|
|
AC_CHECK_HEADER(readline/readline.h, AC_CHECK_LIB(readline, readline, , READLINE_DEF= ), READLINE_DEF= )
|
|
|
|
dnl The X= in the yes case prevents that -lreadline gets linked twice
|
|
|
|
AC_CHECK_HEADER(readline/history.h, AC_CHECK_LIB(readline, add_history, X= , READLINE_DEF= ), READLINE_DEF= )
|
|
|
|
AC_SUBST(READLINE_DEF)
|
|
|
|
|
|
|
|
|
2008-01-16 20:13:18 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
version.h
|
|
|
|
xorriso.pc
|
|
|
|
])
|
|
|
|
AC_OUTPUT
|