[packages/h323plus: 3/8] - fix ptlib detection

baggins baggins at pld-linux.org
Sat Nov 17 15:38:44 CET 2012


commit db1d1a690c9c3c1f4f640130f2fe11a4492cf4bf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 17 15:35:45 2012 +0100

    - fix ptlib detection

 h323plus-configure.patch | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
---
diff --git a/h323plus-configure.patch b/h323plus-configure.patch
new file mode 100644
index 0000000..c0b0bab
--- /dev/null
+++ b/h323plus-configure.patch
@@ -0,0 +1,34 @@
+--- h323plus/configure.ac.orig	2012-11-17 12:29:50.353591179 +0100
++++ h323plus/configure.ac	2012-11-17 12:30:55.086922230 +0100
+@@ -70,25 +70,13 @@
+ fi
+ 
+ if test "${HAS_PTLIB:-unset}" = "unset" ; then
+-  AC_CHECK_HEADER(${OPENH323DIR}/../ptlib/version.h, HAS_PTLIB=1) 	 
+-  if test "${HAS_PTLIB:-unset}" != "unset" ; then
+-    PTLIBDIR="${OPENH323DIR}/../ptlib"
++  AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/bin)
++else
++  if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
++    AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/ptlib/make/)
+   else
+-    AC_CHECK_HEADER(${HOME}/ptlib/version.h, HAS_PTLIB=1) 	 
+-    if test "${HAS_PTLIB:-unset}" != "unset" ; then
+-      PTLIBDIR="${HOME}/ptlib"
+-    else
+-      if test "${HAS_PTLIB:-unset}" = "unset" ; then
+-        AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/local/bin)
+-      else
+-        if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
+-          AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/ptlib/make/)
+-        else
+-          if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
+-            AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/ptlib/make/)
+-          fi
+-        fi
+-      fi
++    if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
++      AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/ptlib/make/)
+     fi
+   fi
+ fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/h323plus.git/commitdiff/80a03e028e264835f927118d78091e61e180d860



More information about the pld-cvs-commit mailing list