]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more bsd fixes
authorMichael Jerris <mike@jerris.com>
Wed, 19 Feb 2014 20:55:54 +0000 (15:55 -0500)
committerMichael Jerris <mike@jerris.com>
Wed, 19 Feb 2014 20:56:02 +0000 (15:56 -0500)
libs/spandsp/configure.ac

index a21e3ed887e13fc6c06d3fc9cacebb56b9e2d08a..14756279bc70c6dcddfb733e7cae9b4b1a5fd7b3 100644 (file)
@@ -520,6 +520,13 @@ x86_64-* | i386-* | i686-*)
     ;;
 esac
 
+case "$host" in
+    *bsd*)
+        CFLAGS="$CFLAGS -I/usr/local/include"
+        LDFLAGS="$LDFLAGS -L/usr/local/lib"
+    ;;
+esac
+
 if test "$enable_builtin_tiff" = "yes" ; then
     abs_tiffdir="`cd $srcdir/../tiff-4.0.2/ && pwd`"
     save_CFLAGS=$CFLAGS
@@ -533,12 +540,6 @@ if test "$enable_builtin_tiff" = "yes" ; then
     TIFF_LIBS="$abs_tiffdir/libtiff/libtiff.la"
     AC_DEFINE([HAVE_LIBTIFF], [1], [Define to 1 if you have the `tiff' library (-ltiff).])
 else
-    case "$host" in
-        *bsd*)
-            CFLAGS="$CFLAGS -I/usr/local/include"
-            LDFLAGS="$LDFLAGS -L/usr/local/lib"
-        ;;
-    esac
     AC_CHECK_HEADERS([tiffio.h])
     AC_CHECK_LIB([tiff], [TIFFOpen], , AC_MSG_ERROR("Cannot build without libtiff (does your system require a libtiff-devel package?)"), -lm)
 fi