2000-03-08 18:22:45 +08:00
|
|
|
dnl Autoconf settings for vlc
|
|
|
|
AC_INIT(src/interface/main.c)
|
|
|
|
AC_CONFIG_HEADER(include/defs.h)
|
2000-05-29 15:29:50 +08:00
|
|
|
|
2000-03-08 18:22:45 +08:00
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
|
|
|
VLC_VERSION=0.1.99
|
|
|
|
AC_SUBST(VLC_VERSION)
|
|
|
|
VLC_CODENAME=Onatopp
|
|
|
|
AC_SUBST(VLC_CODENAME)
|
|
|
|
|
|
|
|
dnl Check for tools
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
|
|
|
|
dnl AM_PROG_LIBTOOL
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
dnl Check for compiler environment
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
|
|
dnl Check for system libs needed
|
|
|
|
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol)
|
|
|
|
AC_CHECK_FUNCS(setenv putenv)
|
|
|
|
AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
|
|
|
|
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
|
|
|
|
AC_CHECK_FUNC(nanosleep,,[AC_CHECK_LIB(rt,nanosleep,,[AC_CHECK_LIB(posix4,nanosleep)])])
|
|
|
|
AC_CHECK_FUNCS(usleep)
|
|
|
|
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton)])
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_FUNC_VPRINTF
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_CHECK_LIB(dl, dlopen)
|
|
|
|
AC_CHECK_LIB(gnugetopt, optarg)
|
|
|
|
AC_CHECK_LIB(be, _)
|
|
|
|
AC_CHECK_LIB(game, _)
|
|
|
|
AC_CHECK_LIB(root, _)
|
|
|
|
AC_CHECK_LIB(m, powl)
|
|
|
|
AC_CHECK_LIB(pthread, pthread_create)
|
|
|
|
AC_CHECK_LIB(threads, thread_create)
|
|
|
|
|
|
|
|
dnl check for getopt_long, substitute the distributed versions if not
|
|
|
|
AC_CHECK_FUNC(getopt_long,,[LIBOBJS="$LIBOBJS getopt.o getopt1.o"])
|
|
|
|
AC_SUBST(LIBOBJS)
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
|
|
|
|
AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
|
2000-03-10 08:47:17 +08:00
|
|
|
AC_CHECK_HEADERS(dlfcn.h image.h)
|
|
|
|
AC_CHECK_HEADERS(arpa/inet.h net/if.h netinet/in.h sys/socket.h)
|
2000-03-08 18:22:45 +08:00
|
|
|
|
|
|
|
dnl Check for threads library
|
2000-03-11 08:05:16 +08:00
|
|
|
AC_CHECK_HEADERS(cthreads.h pthread.h kernel/scheduler.h kernel/OS.h)
|
2000-03-08 18:22:45 +08:00
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
|
2000-05-29 15:29:50 +08:00
|
|
|
AC_ARG_ENABLE(dummy,
|
|
|
|
[ --enable-vout-dummy dummy video support (default enabled)])
|
|
|
|
if test x$enable_dummy != xno; then VOUT=${VOUT}"dummy "; fi
|
|
|
|
AC_ARG_ENABLE(x11,
|
|
|
|
[ --enable-vout-x11 X11 video support (default enabled)])
|
|
|
|
if test x$enable_x11 != xno; then VOUT=${VOUT}"x11 "; fi
|
|
|
|
AC_ARG_ENABLE(fb,
|
|
|
|
[ --enable-vout-fb Linux framebuffer video support (default disabled)],
|
|
|
|
[if test x$enable_fb = xyes; then VOUT=${VOUT}"fb "; fi])
|
|
|
|
AC_ARG_ENABLE(gnome,
|
|
|
|
[ --enable-vout-gnome Gnome video support (default disabled)],
|
|
|
|
[if test x$enable_gnome = xyes; then VOUT=${VOUT}"gnome "; fi])
|
|
|
|
AC_ARG_ENABLE(glide,
|
|
|
|
[ --enable-vout-glide Glide (3dfx) video support (default disabled)],
|
|
|
|
[if test x$enable_glide = xyes; then VOUT=${VOUT}"glide "; fi])
|
|
|
|
AC_ARG_ENABLE(ggi,
|
|
|
|
[ --enable-vout-ggi GGI video support (default disabled)],
|
|
|
|
[if test x$enable_ggi = xyes; then VOUT=${VOUT}"ggi "; fi])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(dummy,
|
|
|
|
[ --enable-aout-dummy dummy audio support (default enabled)])
|
|
|
|
if test x$enable_dummy != xno; then AOUT=${AOUT}"dummy "; fi
|
|
|
|
AC_ARG_ENABLE(dsp,
|
|
|
|
[ --enable-aout-dsp Linux /dev/dsp support (default enabled)])
|
|
|
|
if test x$enable_dsp != xno; then AOUT=${AOUT}"dsp "; fi
|
|
|
|
AC_ARG_ENABLE(esd,
|
|
|
|
[ --enable-aout-esd Esound library support (default disabled)],
|
|
|
|
[if test x$enable_gnome = xyes; then AOUT=${AOUT}"esd "; fi])
|
|
|
|
|
|
|
|
ARCH=${host_cpu}
|
|
|
|
AC_ARG_ENABLE(ppro,
|
|
|
|
[ --enable-ppro Enable PentiumPro optimizations (default is no)],
|
|
|
|
[ if test x$enableval = xyes; then ARCH=${ARCH}" pentiumpro"; fi ])
|
|
|
|
AC_ARG_ENABLE(mmx,
|
|
|
|
[ --enable-mmx Enable MMX optimizations (default is no)],
|
|
|
|
[ if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; fi ])
|
|
|
|
|
|
|
|
SYS=${host_os}
|
|
|
|
|
|
|
|
# special cases
|
|
|
|
if test x$host_os = xbeos; then
|
|
|
|
VOUT=beos
|
|
|
|
AOUT=beos
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(SYS)
|
|
|
|
AC_SUBST(ARCH)
|
|
|
|
AC_SUBST(VOUT)
|
|
|
|
AC_SUBST(AOUT)
|
|
|
|
|
2000-03-10 08:47:17 +08:00
|
|
|
AC_OUTPUT([Makefile include/config.h])
|
2000-03-08 18:22:45 +08:00
|
|
|
|
2000-05-29 15:29:50 +08:00
|
|
|
echo "
|
|
|
|
vlc configuration
|
|
|
|
-----------------
|
|
|
|
vlc version : ${VLC_VERSION}
|
|
|
|
system : ${SYS}
|
|
|
|
architecture : ${ARCH}
|
|
|
|
vout : ${VOUT}
|
|
|
|
aout : ${AOUT}
|
|
|
|
"
|