aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-04-18 00:06:48 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-04-18 00:06:48 +0000
commit9fb42baba94590e4219e62fc4e3ce0e92346d4e6 (patch)
tree5dda905acb7994bbe1c96b055a35fa321ef220b6
parentf9f5be77646dc69989ed840e70e2b4cb452a76e5 (diff)
added checking for Fink and DarwinPorts so PiDiP can find it's deps
svn path=/trunk/externals/pidip/; revision=7575
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6028ec7..606d72b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT
+AC_CANONICAL_HOST
AC_CONFIG_HEADER(include/pidip_config.h)
PDP_PIDIP_VERSION="0.12.20"
@@ -18,6 +19,25 @@ THEORA_LIBS=
enable_ffmpeg=no
enable_mpeg4ip=no
+# Check for DarwinPorts and/or Fink on Mac OS X/Darwin
+case "$host" in
+ *-darwin* | *-macos10*)
+ if test -d /sw ; then
+ # Fink
+ PATH="/sw/bin:/sw/sbin:$PATH"
+ CFLAGS="$CFLAGS -I/sw/include"
+ CPPFLAGS="$CPPFLAGS -I/sw/include"
+ LDFLAGS="$LDFLAGS -L/sw/lib"
+ elif test -d /opt/local ; then
+ # DarwinPorts
+ PATH="/opt/local/bin:/opt/local/sbin:$PATH"
+ CFLAGS="$CFLAGS -I/opt/local/include"
+ CPPFLAGS="$CPPFLAGS -I/opt/local/include"
+ LDFLAGS="$LDFLAGS -L/opt/local/lib"
+ fi
+ ;;
+esac
+
AC_ARG_WITH(pdsources, [ --with-pd=PATH pd source tree])
if ! test -z "${with_pd}"
then