Blame configure.ac

Packit a38265
# Process this file with autoconf to produce a configure script.
Packit a38265
AC_INIT
Packit a38265
AC_CONFIG_SRCDIR([src/liboggz/oggz.c])
Packit a38265
Packit a38265
AC_PREREQ(2.53)
Packit a38265
Packit a38265
AC_CANONICAL_TARGET
Packit a38265
Packit a38265
AM_INIT_AUTOMAKE(liboggz, 1.1.1)
Packit a38265
AM_CONFIG_HEADER(config.h)
Packit a38265
Packit a38265
################################################################################
Packit a38265
# Set the shared versioning info, according to section 6.3 of the libtool info #
Packit a38265
# pages. CURRENT:REVISION:AGE must be updated immediately before each release: #
Packit a38265
#                                                                              #
Packit a38265
#   * If the library source code has changed at all since the last             #
Packit a38265
#     update, then increment REVISION (`C:R:A' becomes `C:r+1:A').             #
Packit a38265
#                                                                              #
Packit a38265
#   * If any interfaces have been added, removed, or changed since the         #
Packit a38265
#     last update, increment CURRENT, and set REVISION to 0.                   #
Packit a38265
#                                                                              #
Packit a38265
#   * If any interfaces have been added since the last public release,         #
Packit a38265
#     then increment AGE.                                                      #
Packit a38265
#                                                                              #
Packit a38265
#   * If any interfaces have been removed since the last public release,       #
Packit a38265
#     then set AGE to 0.                                                       #
Packit a38265
#                                                                              #
Packit a38265
################################################################################
Packit a38265
SHARED_VERSION_INFO="8:0:6"
Packit a38265
SHLIB_VERSION_ARG=""
Packit a38265
Packit a38265
# Checks for programs.
Packit a38265
AC_PROG_CC
Packit a38265
AC_PROG_CPP
Packit a38265
AC_PROG_INSTALL
Packit a38265
AC_PROG_LN_S
Packit a38265
AC_PROG_MAKE_SET
Packit a38265
AC_PROG_LIBTOOL
Packit a38265
Packit a38265
AC_C_CONST
Packit a38265
AC_C_BIGENDIAN
Packit a38265
Packit a38265
dnl Add parameters for aclocal
Packit a38265
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
Packit a38265
Packit a38265
# Checks for header files.
Packit a38265
AC_HEADER_STDC
Packit a38265
AC_CHECK_HEADERS([fcntl.h inttypes.h stdlib.h string.h sys/types.h unistd.h])
Packit a38265
Packit a38265
# Checks for typedefs, structures, and compiler characteristics.
Packit a38265
AC_TYPE_OFF_T
Packit a38265
AC_TYPE_SIZE_T
Packit a38265
Packit a38265
dnl Check whether the compiler allows signed enums.
Packit a38265
dnl Re: http://lists.xiph.org/pipermail/ogg-dev/2008-July/001108.html
Packit a38265
dnl
Packit a38265
dnl "The ISO C standard, in section 6.7.2.2 "enumeration specifiers",
Packit a38265
dnl paragraph 4, says
Packit a38265
dnl
Packit a38265
dnl   Each enumerated type shall be compatible with *char*, a signed
Packit a38265
dnl   integer type, or an unsigned integer type.  The choice of type is
Packit a38265
dnl   implementation-defined, but shall be capable of representing the
Packit a38265
dnl   values of all the members of the declaration."
Packit a38265
dnl
Packit a38265
dnl -- http://gcc.gnu.org/ml/gcc-bugs/2000-09/msg00271.html
Packit a38265
AC_MSG_CHECKING([if $CC allows signed enums])
Packit a38265
Packit a38265
ac_save_CFLAGS="$CFLAGS"
Packit a38265
CFLAGS="$CFLAGS -Wall -Wextra -Werror"
Packit a38265
AC_TRY_COMPILE([], [
Packit a38265
               void t (void)
Packit a38265
               {
Packit a38265
                 enum {A, B} a=A;
Packit a38265
                 if (a < 0) {}
Packit a38265
               } ],
Packit a38265
               [ AC_DEFINE([ALLOW_SIGNED_ENUMS], [],
Packit a38265
                           [Define if the compiler implements enums as signed values.])
Packit a38265
                 AC_MSG_RESULT(yes) ],
Packit a38265
               [ AC_MSG_RESULT(no) ])
Packit a38265
CFLAGS="$ac_save_CFLAGS"
Packit a38265
Packit a38265
# Checks for library functions.
Packit a38265
AC_CHECK_FUNCS([memmove])
Packit a38265
Packit a38265
# Check for pkg-config
Packit a38265
AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
Packit a38265
Packit a38265
# Check for doxygen
Packit a38265
AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
Packit a38265
AM_CONDITIONAL(HAVE_DOXYGEN,$HAVE_DOXYGEN)
Packit a38265
if test $HAVE_DOXYGEN = "false"; then
Packit a38265
             AC_MSG_WARN([*** doxygen not found, docs will not be built])
Packit a38265
fi
Packit a38265
Packit a38265
# Check for man2html
Packit a38265
AC_CHECK_PROG(HAVE_MAN2HTML, man2html, true, false)
Packit a38265
AM_CONDITIONAL(HAVE_MAN2HTML, $HAVE_MAN2HTML)
Packit a38265
Packit a38265
# Check for valgrind
Packit a38265
VALGRIND_ENVIRONMENT=""
Packit a38265
ac_enable_valgrind=no
Packit a38265
AC_ARG_ENABLE(valgrind-testing,
Packit a38265
     AC_HELP_STRING([--enable-valgrind-testing], [enable running of tests inside Valgrind]),
Packit a38265
     [ ac_enable_valgrind=yes ], [ ac_enable_valgrind=no] )
Packit a38265
Packit a38265
if test "x${ac_enable_valgrind}" = xyes ; then
Packit a38265
  if test "x${enable_shared}" = xyes ; then
Packit a38265
    VALGRIND_ENVIRONMENT="libtool --mode=execute "
Packit a38265
  fi
Packit a38265
Packit a38265
  AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
Packit a38265
  if test "x$HAVE_VALGRIND" = xyes ; then
Packit a38265
    VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=50"
Packit a38265
    AC_SUBST(VALGRIND_ENVIRONMENT)
Packit a38265
    TESTS_INFO="Test suite will be run under:
Packit a38265
    ${VALGRIND_ENVIRONMENT}"
Packit a38265
  else
Packit a38265
    TESTS_INFO="(Valgrind not found)"
Packit a38265
  fi
Packit a38265
else
Packit a38265
  TESTS_INFO="(Valgrind testing not enabled)"
Packit a38265
fi
Packit a38265
Packit a38265
dnl Checks for libraries.
Packit a38265
LIBS=""
Packit a38265
Packit a38265
# check for getopt in a separate library
Packit a38265
HAVE_GETOPT=no
Packit a38265
AC_CHECK_LIB(getopt, getopt, HAVE_GETOPT="yes")
Packit a38265
if test "x$HAVE_GETOPT" = xyes ; then
Packit a38265
  GETOPT_LIBS="-lgetopt"
Packit a38265
  AC_SUBST(GETOPT_LIBS)
Packit a38265
fi
Packit a38265
Packit a38265
# check for getopt_long in standard library
Packit a38265
HAVE_GETOPT_LONG=no
Packit a38265
AC_CHECK_FUNC(getopt_long, HAVE_GETOPT_LONG="yes")
Packit a38265
if test "x$HAVE_GETOPT_LONG" = xyes ; then
Packit a38265
  AC_DEFINE(HAVE_GETOPT_LONG, [], [Define to 1 if you have the 'getopt_long' function])
Packit a38265
fi
Packit a38265
Packit a38265
dnl Overall configuration success flag
Packit a38265
oggz_config_ok=yes
Packit a38265
Packit a38265
oggz_read_programs=""
Packit a38265
oggz_rw_programs=""
Packit a38265
Packit a38265
dnl
Packit a38265
dnl  Configuration option for building of experimental code.
Packit a38265
dnl
Packit a38265
Packit a38265
ac_enable_experimental=no
Packit a38265
AC_ARG_ENABLE(experimental,
Packit a38265
     AC_HELP_STRING([--enable-experimental], [enable building of experimental code]),
Packit a38265
     [ ac_enable_experimental=yes ])
Packit a38265
Packit a38265
if test "x${ac_enable_experimental}" = xyes ; then
Packit a38265
    AC_DEFINE(OGGZ_CONFIG_EXPERIMENTAL, [], [Define to build experimental code])
Packit a38265
fi
Packit a38265
Packit a38265
dnl
Packit a38265
dnl  Configuration option for building of reading support.
Packit a38265
dnl
Packit a38265
Packit a38265
ac_enable_read=yes
Packit a38265
AC_ARG_ENABLE(read,
Packit a38265
     AC_HELP_STRING([--disable-read], [disable building of reading support]),
Packit a38265
     [ ac_enable_read=no ], [ ac_enable_read=yes] )
Packit a38265
Packit a38265
if test "x${ac_enable_read}" = xyes ; then
Packit a38265
    AC_DEFINE(OGGZ_CONFIG_READ, [1], [Build reading support])
Packit a38265
    oggz_read_programs="oggz-dump oggz-info oggz-scan oggz-codecs"
Packit a38265
else
Packit a38265
    AC_DEFINE(OGGZ_CONFIG_READ, [0], [Do not build reading support]) 
Packit a38265
fi
Packit a38265
AM_CONDITIONAL(OGGZ_CONFIG_READ, test "x${ac_enable_read}" = xyes)
Packit a38265
Packit a38265
dnl
Packit a38265
dnl  Configuration option for building of writing support.
Packit a38265
dnl
Packit a38265
  
Packit a38265
ac_enable_write=yes
Packit a38265
AC_ARG_ENABLE(write,
Packit a38265
     AC_HELP_STRING([--disable-write], [disable building of writing support]),
Packit a38265
     [ ac_enable_write=no ], [ ac_enable_write=yes] )
Packit a38265
Packit a38265
if test "x${ac_enable_write}" = xyes ; then
Packit a38265
    AC_DEFINE(OGGZ_CONFIG_WRITE, [1], [Build writing support])
Packit a38265
    if test "x${ac_enable_read}" = xyes ; then
Packit a38265
      oggz_rw_programs="oggz-rip oggz-merge oggz-chop oggz-comment oggz-sort oggz-validate"
Packit a38265
    fi
Packit a38265
else
Packit a38265
    AC_DEFINE(OGGZ_CONFIG_WRITE, [0], [Do not build writing support])
Packit a38265
fi
Packit a38265
AM_CONDITIONAL(OGGZ_CONFIG_WRITE, test "x${ac_enable_write}" = xyes)
Packit a38265
Packit a38265
dnl
Packit a38265
dnl  Check read/write option sanity
Packit a38265
dnl
Packit a38265
if test "x${ac_enable_read}" = xno && test "x${ac_enable_write}" = xno ; then
Packit a38265
  AC_MSG_ERROR([
Packit a38265
***
Packit a38265
*** You have attempted to explicitly disable both writing and reading.
Packit a38265
***
Packit a38265
])
Packit a38265
fi
Packit a38265
Packit a38265
dnl
Packit a38265
dnl Detect Ogg
Packit a38265
dnl
Packit a38265
Packit a38265
HAVE_OGG=no
Packit a38265
if test "x$HAVE_PKG_CONFIG" = "xyes" ; then
Packit a38265
  PKG_CHECK_MODULES(OGG, ogg >= 1.0, HAVE_OGG=yes, HAVE_OGG=no)
Packit a38265
fi
Packit a38265
Packit a38265
if test "x$HAVE_OGG" = "xno" ; then
Packit a38265
  XIPH_PATH_OGG(HAVE_OGG="yes", HAVE_OGG="no")
Packit a38265
  if test "x$HAVE_OGG" = xno ; then
Packit a38265
    oggz_config_ok="no"
Packit a38265
    AC_CHECK_LIB(ogg, ogg_stream_init, HAVE_OGG="maybe")
Packit a38265
  fi
Packit a38265
fi
Packit a38265
Packit a38265
AM_CONDITIONAL(HAVE_OGG, [test "x$HAVE_OGG" = "xyes"])
Packit a38265
Packit a38265
dnl Check for const-correct version of <ogg/ogg.h>
Packit a38265
dnl In libogg changeset:14463, function prototypes like:
Packit a38265
dnl      ogg_page_bos (ogg_page * og);
Packit a38265
dnl were changed to:
Packit a38265
dnl     ogg_page_bos (const ogg_page * og);
Packit a38265
dnl If we are compiling with -Werror, we need to know this.
Packit a38265
if test "x$HAVE_OGG" = "xyes" ; then
Packit a38265
    AC_MSG_CHECKING([if ogg_page_bos() takes a const argument])
Packit a38265
    ac_save_CFLAGS="$CFLAGS"
Packit a38265
    ac_save_LIBS="$LIBS"
Packit a38265
    CFLAGS="$CFLAGS -Wall -Werror $OGG_CFLAGS"
Packit a38265
    LIBS="$LIBS $OGG_LIBS"
Packit a38265
Packit a38265
    AC_TRY_COMPILE([#include <ogg/ogg.h>],
Packit a38265
                   [int f(const ogg_page * cog){return ogg_page_bos(cog);}],
Packit a38265
                   [ AC_DEFINE([OGG_H_CONST_CORRECT], [], [Define if <ogg/ogg.h> is const-correct])
Packit a38265
                     AC_MSG_RESULT(yes) ],
Packit a38265
                   [ AC_MSG_RESULT(no) ])
Packit a38265
Packit a38265
    CFLAGS="$ac_save_CFLAGS"
Packit a38265
    LIBS="$ac_save_LIBS"
Packit a38265
fi
Packit a38265
Packit a38265
dnl Large file support
Packit a38265
dnl Adapted from: libsndfile by Erik de Castro Lopo
Packit a38265
dnl
Packit a38265
dnl Find an appropriate type for oggz_off_t
Packit a38265
dnl On systems supporting files larger than 2 Gig, oggz_off_t must be a
Packit a38265
dnl 64 bit value. Unfortunately there is more than one way of ensuring
Packit a38265
dnl this so need to do some pretty rigourous testing here.
Packit a38265
Packit a38265
unset ac_cv_sizeof_off_t
Packit a38265
Packit a38265
AC_CHECK_SIZEOF(off_t, 1)
Packit a38265
Packit a38265
case "$host_os" in
Packit a38265
    mingw*)
Packit a38265
        TYPEOF_OGGZ_OFF_T="__int64"
Packit a38265
        OGGZ_OFF_MAX="0x7FFFFFFFFFFFFFFFLL"
Packit a38265
        SIZEOF_OGGZ_OFF_T=8
Packit a38265
        ;;
Packit a38265
    *)
Packit a38265
        if test "x$ac_cv_sizeof_off_t" = "x8" ; then
Packit a38265
            # If sizeof (off_t) is 8, no further checking is needed.
Packit a38265
            TYPEOF_OGGZ_OFF_T="off_t"
Packit a38265
            OGGZ_OFF_MAX="0x7FFFFFFFFFFFFFFFLL"
Packit a38265
            SIZEOF_OGGZ_OFF_T=8
Packit a38265
        else
Packit a38265
            # Check for common 64 bit file offset types.
Packit a38265
            AC_CHECK_SIZEOF(loff_t,1)       # Fake default value.
Packit a38265
            AC_CHECK_SIZEOF(off64_t,1)      # Fake default value.
Packit a38265
Packit a38265
            TYPEOF_OGGZ_OFF_T="unknown"
Packit a38265
            if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
Packit a38265
                TYPEOF_OGGZ_OFF_T="loff_t"
Packit a38265
                SIZEOF_OGGZ_OFF_T=8
Packit a38265
            elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
Packit a38265
                TYPEOF_OGGZ_OFF_T="off64_t"
Packit a38265
                SIZEOF_OGGZ_OFF_T=8
Packit a38265
            fi
Packit a38265
Packit a38265
            # Save the old sizeof (off_t) value  and then unset it to see if it
Packit a38265
            # changes when Large File Support is enabled.
Packit a38265
Packit a38265
            pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
Packit a38265
            unset ac_cv_sizeof_off_t
Packit a38265
Packit a38265
            AC_SYS_EXTRA_LARGEFILE
Packit a38265
Packit a38265
            if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
Packit a38265
                ac_cv_sys_largefile_CFLAGS=""
Packit a38265
            fi
Packit a38265
            if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
Packit a38265
                ac_cv_sys_largefile_LDFLAGS=""
Packit a38265
            fi
Packit a38265
            if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
Packit a38265
                ac_cv_sys_largefile_LIBS=""
Packit a38265
            fi
Packit a38265
Packit a38265
            AC_CHECK_SIZEOF(off_t,1)        # Fake default value.
Packit a38265
Packit a38265
            if test "x$ac_cv_sizeof_off_t" = "x8" ; then
Packit a38265
                    OGGZ_OFF_MAX="0x7FFFFFFFFFFFFFFFLL"
Packit a38265
            elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
Packit a38265
                AC_MSG_WARN([[This machine does not seem to support 64 bit file offsets.]])
Packit a38265
                TYPEOF_OGGZ_OFF_T="off_t"
Packit a38265
                SIZEOF_OGGZ_OFF_T=$ac_cv_sizeof_off_t
Packit a38265
            elif test "x$TYPEOF_OGGZ_OFF_T" = "xunknown" ; then
Packit a38265
                echo
Packit a38265
                echo "*** The configure process has determined that this system is capable"
Packit a38265
                echo "*** of Large File Support but has not been able to find a type which"
Packit a38265
                echo "*** is an unambiguous 64 bit file offset."
Packit a38265
                echo "*** Please contact the author to help resolve this problem."
Packit a38265
                echo
Packit a38265
                AC_MSG_ERROR([[Bad file offset type.]])
Packit a38265
            fi
Packit a38265
        fi
Packit a38265
    ;;
Packit a38265
    esac
Packit a38265
Packit a38265
if test $SIZEOF_OGGZ_OFF_T = 4 ; then
Packit a38265
    OGGZ_OFF_MAX="0x7FFFFFFF"
Packit a38265
    PRI_OGGZ_OFF_T="l"
Packit a38265
elif test $SIZEOF_OGGZ_OFF_T = 8 ; then
Packit a38265
    PRI_OGGZ_OFF_T="ll"
Packit a38265
fi
Packit a38265
Packit a38265
dnl The following configured variables are written into the public header
Packit a38265
dnl <oggz/oggz_off_t_generated.h>:
Packit a38265
dnl   oggz_off_t (typedef)
Packit a38265
dnl   PRI_OGGZ_OFF_T (printf format)
Packit a38265
Packit a38265
AC_SUBST(TYPEOF_OGGZ_OFF_T)
Packit a38265
AC_SUBST(PRI_OGGZ_OFF_T)
Packit a38265
Packit a38265
dnl SIZEOF_OGGZ_OFF_T and OGGZ_OFF_MAX are only used internally by liboggz
Packit a38265
AC_DEFINE_UNQUOTED([SIZEOF_OGGZ_OFF_T],${SIZEOF_OGGZ_OFF_T}, [Set to sizeof (long) if unknown.])
Packit a38265
AC_SUBST(SIZEOF_OGGZ_OFF_T)
Packit a38265
Packit a38265
AC_DEFINE_UNQUOTED([OGGZ_OFF_MAX],${OGGZ_OFF_MAX}, [Set to maximum allowed value of sf_count_t type.])
Packit a38265
AC_SUBST(OGGZ_OFF_MAX)
Packit a38265
Packit a38265
AC_CHECK_TYPES(ssize_t)
Packit a38265
AC_CHECK_SIZEOF(ssize_t,4)
Packit a38265
Packit a38265
# MacOS 10.4 only declares timezone for _XOPEN_SOURCE. Check for this.
Packit a38265
AC_MSG_CHECKING([for timezone])
Packit a38265
AC_COMPILE_IFELSE(
Packit a38265
  AC_LANG_PROGRAM([#include <time.h>], [
Packit a38265
    int seconds = 1234567;
Packit a38265
    seconds -= timezone;
Packit a38265
  ]), AC_MSG_RESULT([ok]),
Packit a38265
  AC_MSG_RESULT([no])
Packit a38265
  AC_MSG_CHECKING([for timezone with _XOPEN_SOURCE])
Packit a38265
  AC_COMPILE_IFELSE(
Packit a38265
    AC_LANG_PROGRAM([
Packit a38265
#define _XOPEN_SOURCE
Packit a38265
#include <time.h>
Packit a38265
    ], [
Packit a38265
      int seconds = 1234567;
Packit a38265
      seconds -= timezone;
Packit a38265
    ]),
Packit a38265
   dnl _XOPEN_SOURCE is required
Packit a38265
    AC_MSG_RESULT([ok])
Packit a38265
    AC_DEFINE([_XOPEN_SOURCE], [1], 
Packit a38265
      [Some systems need _XOPEN_SOURCE for timezone]),
Packit a38265
   dnl it didn't work even with _XOPEN_SOURCE; httpdate will break 
Packit a38265
    AC_MSG_RESULT([no])
Packit a38265
  )
Packit a38265
)
Packit a38265
Packit a38265
# Checks for typedefs, structures, and compiler characteristics.
Packit a38265
Packit a38265
dnl Add some useful warnings if we have gcc.
Packit a38265
dnl changequote(,)dnl
Packit a38265
if test "x$ac_cv_prog_gcc" = xyes ; then
Packit a38265
  CFLAGS="$CFLAGS -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused"
Packit a38265
fi
Packit a38265
dnl changequote([,])dnl
Packit a38265
Packit a38265
dnl
Packit a38265
dnl  Configuration option to add -Werror to all Makefiles
Packit a38265
dnl
Packit a38265
Packit a38265
AC_ARG_ENABLE(gcc-werror,
Packit a38265
     AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]),
Packit a38265
     [ ac_enable_gcc_werror=yes ], [ ac_enable_gcc_werror=no] )
Packit a38265
Packit a38265
if test "x${ac_enable_gcc_werror}" = xyes ; then
Packit a38265
  CFLAGS="-Werror $CFLAGS"
Packit a38265
fi
Packit a38265
Packit a38265
dnl
Packit a38265
dnl Shared library symbol versioning and hiding
Packit a38265
dnl
Packit a38265
Packit a38265
case "$target_os" in
Packit a38265
  linux* | solaris*|k*bsd*-gnu*|gnu*)
Packit a38265
    SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
Packit a38265
    ;;
Packit a38265
  *)
Packit a38265
    ;;
Packit a38265
esac
Packit a38265
Packit a38265
# Checks for library functions.
Packit a38265
Packit a38265
dnl
Packit a38265
dnl  Configuration tests complete -- provide summary of results.
Packit a38265
dnl
Packit a38265
Packit a38265
if test $oggz_config_ok = no ; then
Packit a38265
Packit a38265
AC_MSG_RESULT([
Packit a38265
**************************************************************
Packit a38265
Packit a38265
*** $PACKAGE $VERSION: Automatic configuration FAILED.
Packit a38265
Packit a38265
*** The file config.log has full details.
Packit a38265
Packit a38265
*** The following required libraries are missing or
Packit a38265
*** misconfigured on your system:
Packit a38265
])
Packit a38265
Packit a38265
if test "x$HAVE_OGG" != xyes ; then
Packit a38265
    AC_MSG_RESULT(
Packit a38265
[*** libogg, available from  http://www.xiph.org/ogg/])
Packit a38265
fi
Packit a38265
if test "x$HAVE_OGG" = xmaybe ; then
Packit a38265
    AC_MSG_RESULT(
Packit a38265
[      Development files missing: The libogg library binary seems to be
Packit a38265
      installed, but building of a test program failed.
Packit a38265
])
Packit a38265
fi
Packit a38265
Packit a38265
AC_MSG_RESULT(
Packit a38265
[*** If you install the required libraries from source, you
Packit a38265
*** need to inform the dynamic linker of their location. If
Packit a38265
*** you install them in a system-wide directory such as
Packit a38265
*** /usr/local (the default), you must ensure that
Packit a38265
*** /usr/local/lib is listed in /etc/ld.so.conf, then run
Packit a38265
*** ldconfig to update the dynamic linking system.
Packit a38265
*** Alternatively, you can set your LD_LIBRARY_PATH environment
Packit a38265
*** variable to include the library installation directory.
Packit a38265
])
Packit a38265
Packit a38265
Packit a38265
AC_MSG_RESULT(
Packit a38265
[**************************************************************
Packit a38265
])
Packit a38265
Packit a38265
Packit a38265
AC_MSG_ERROR([
Packit a38265
***
Packit a38265
*** After fixing the above problems, you must run ./configure again.
Packit a38265
***
Packit a38265
]) 
Packit a38265
Packit a38265
else
Packit a38265
Packit a38265
AS_AC_EXPAND(LIBDIR, ${libdir})
Packit a38265
AS_AC_EXPAND(INCLUDEDIR, ${includedir})
Packit a38265
AS_AC_EXPAND(BINDIR, ${bindir})
Packit a38265
AS_AC_EXPAND(DOCDIR, ${datadir}/doc)
Packit a38265
Packit a38265
AC_SUBST(BINDIR)
Packit a38265
Packit a38265
AC_SUBST(SHLIB_VERSION_ARG)
Packit a38265
AC_SUBST(SHARED_VERSION_INFO)
Packit a38265
Packit a38265
AC_OUTPUT([
Packit a38265
Makefile
Packit a38265
doc/Makefile
Packit a38265
doc/Doxyfile
Packit a38265
include/Makefile
Packit a38265
include/oggz/Makefile
Packit a38265
include/oggz/oggz_off_t_generated.h
Packit a38265
src/Makefile
Packit a38265
src/liboggz/Version_script
Packit a38265
src/liboggz/Makefile
Packit a38265
src/tools/Makefile
Packit a38265
src/tools/oggz-diff
Packit a38265
src/tools/oggz-chop/Makefile
Packit a38265
src/tests/Makefile
Packit a38265
src/examples/Makefile
Packit a38265
apache/oggz-chop.conf
Packit a38265
oggz.pc
Packit a38265
oggz-uninstalled.pc
Packit a38265
])
Packit a38265
Packit a38265
AC_MSG_RESULT([
Packit a38265
------------------------------------------------------------------------
Packit a38265
  $PACKAGE $VERSION:  Automatic configuration OK.
Packit a38265
Packit a38265
  General configuration:
Packit a38265
Packit a38265
    Experimental code: ........... ${ac_enable_experimental}
Packit a38265
    Reading support: ............. ${ac_enable_read}
Packit a38265
    Writing support: ............. ${ac_enable_write}
Packit a38265
Packit a38265
  Tools:
Packit a38265
Packit a38265
    ${oggz_read_programs}
Packit a38265
    ${oggz_rw_programs}
Packit a38265
Packit a38265
  Installation paths:
Packit a38265
Packit a38265
    liboggz: ..................... ${LIBDIR}
Packit a38265
    Tools: ....................... ${BINDIR}
Packit a38265
    C header files: .............. ${INCLUDEDIR}/oggz
Packit a38265
    Documentation: ............... ${DOCDIR}/$PACKAGE
Packit a38265
Packit a38265
  Building:
Packit a38265
Packit a38265
    Type 'make' to compile $PACKAGE.
Packit a38265
Packit a38265
    Type 'make install' to install $PACKAGE.
Packit a38265
Packit a38265
    Type 'make check' to test $PACKAGE using the unit and functional tests
Packit a38265
    contained in the src/tests directory.
Packit a38265
    ${TESTS_INFO}
Packit a38265
Packit a38265
  Example programs will be built but not installed.
Packit a38265
------------------------------------------------------------------------
Packit a38265
])
Packit a38265
Packit a38265
Packit a38265
fi