e4a0560db9
includes a private copy of libdvdread.
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
$OpenBSD: patch-configure_ac,v 1.3 2009/07/30 19:07:15 jakemsr Exp $
|
|
--- configure.ac.orig Sat Aug 30 06:02:17 2008
|
|
+++ configure.ac Mon Sep 15 17:54:08 2008
|
|
@@ -143,6 +143,11 @@ case $host in
|
|
THREAD_CFLAGS="-I/usr/local/include -D_THREAD_SAFE"
|
|
CFLAGS="$THREAD_CFLAGS $CFLAGS"
|
|
;;
|
|
+ *-*-openbsd*)
|
|
+ THREAD_LIBS="-pthread"
|
|
+ THREAD_CFLAGS="-pthread"
|
|
+ CFLAGS="$CFLAGS $THREAD_CFLAGS"
|
|
+ ;;
|
|
*mingw32* | *cygwin*)
|
|
;;
|
|
*)
|
|
@@ -178,27 +183,16 @@ esac
|
|
dnl ---------------------------------------------
|
|
dnl libdvdread
|
|
dnl ---------------------------------------------
|
|
-AC_ARG_WITH([dvdread-config],
|
|
- [AS_HELP_STRING([--with-dvdread-config=PROG],
|
|
- [dvdread-config program to use @<:@default=from PATH@:>@])],
|
|
- [DVDREAD_CONFIG="$withval"],
|
|
- [dnl User didn't specify program, search PATH
|
|
- AC_PATH_PROG([DVDREAD_CONFIG], [dvdread-config], [no])
|
|
- test "x$DVDREAD_CONFIG" = xno && \
|
|
- AC_MSG_ERROR([dvdread-config required to link with libdvdread])
|
|
- ])
|
|
-DVDREAD_CFLAGS=`$DVDREAD_CONFIG --cflags` || \
|
|
- AC_MSG_ERROR([Could not get libdvdread CFLAGS from $DVDREAD_CONFIG])
|
|
-DVDREAD_LIBS=`$DVDREAD_CONFIG --libs` || \
|
|
- AC_MSG_ERROR([Could not get libdvdread LIBS from $DVDREAD_CONFIG])
|
|
-AC_SUBST([DVDREAD_CFLAGS])
|
|
-AC_SUBST([DVDREAD_LIBS])
|
|
+DVDREAD_CFLAGS="$DVDREAD_CFLAGS"
|
|
+DVDREAD_LIBS="$DVDREAD_LIBS"
|
|
+AC_SUBST(DVDREAD_CFLAGS)
|
|
+AC_SUBST(DVDREAD_LIBS)
|
|
|
|
dnl ---------------------------------------------
|
|
dnl cflags
|
|
dnl ---------------------------------------------
|
|
dnl Common cflags for all platforms
|
|
-CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
|
|
+CFLAGS="-Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
|
|
DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
|
|
|
|
AC_SUBST(DEBUG_CFLAGS)
|