[22700b]: configure.in Maximize Restore History

Download this file

configure.in    81 lines (67 with data), 1.3 kB

AC_INIT(src/main.c)

AM_CONFIG_HEADER(include/config.h)
AM_INIT_AUTOMAKE(gnome-xine, 0.2)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(m4)

AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC
dnl AC_ARG_PROGRAM
AM_PROG_LIBTOOL

GNOME_INIT
AM_PATH_GTK(1.2.7)
GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS

ALL_LINGUAS="fr de cs"
AM_GNOME_GETTEXT

dnl
dnl Checks for typedefs, structures, and compiler characteristics.
dnl
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AM_TYPE_PTRDIFF_T
AC_C_BIGENDIAN

dnl
dnl threads
dnl

case $host in
  *-*-freebsd*)
    THREAD_LIBS="-pthread"
    CFLAGS="$CFLAGS -I/usr/local/include -L/usr/local/lib -D_THREAD_SAFE"
    CPPFLAGS="$CPPFLAGS -I/usr/local/include -L/usr/local/lib"
    ;;
  *)
    AC_CHECK_LIB(pthread, pthread_create,
             THREAD_LIBS="-lpthread",
             AC_MSG_ERROR(pthread needed))
    ;;
esac
AC_SUBST(THREAD_LIBS)

dnl
dnl Check for xine-lib
dnl
AM_PATH_XINE(0.9.9,, AC_MSG_ERROR(*** You should install xine-lib first ***))

CFLAGS="$CFLAGS -Wall -g"
	
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

dnl
dnl It seems automake 1.5 don't take care about this script
dnl
if test ! -z $am_depcomp; then
	DEPCOMP="depcomp"
fi
AC_SUBST(DEPCOMP)

AC_OUTPUT([
Makefile
src/Makefile
intl/Makefile
po/Makefile.in
m4/Makefile
pixmaps/Makefile
doc/Makefile
doc/C/Makefile
include/Makefile
])