]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add default values for CPPFLAGS and LDFLAGS on FreeBSD
authorLuigi Rizzo <rizzo@icir.org>
Tue, 9 May 2006 11:45:26 +0000 (11:45 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 9 May 2006 11:45:26 +0000 (11:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26020 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure.ac

index e7e8821a7e70ba32de7fe7ec9c262c6afa497197..ba97551106d885feecdccfdabd9f9a84549b0bfc 100644 (file)
@@ -75,6 +75,14 @@ case "${host}" in
     AC_DEFINE(FreeBSD, 1,
               [Define according to your operating system type.])
     PBX_OSTYPE="FreeBSD"
+    # XXX temporary hack to let FreeBSD use the default paths
+    # for local stuff. We need a better solution.
+    if test x"${CPPFLAGS}" = x; then
+        CPPFLAGS="-I /usr/local/include"
+    fi
+    if test x"${LDFLAGS}" = x; then
+        LDFLAGS="-L /usr/local/lib"
+    fi
     ;;
   *openbsd*)
     AC_DEFINE(OpenBSD, 1,