Index: h323plus-1.24.0~dfsg/configure.ac
===================================================================
--- h323plus-1.24.0~dfsg.orig/configure.ac	2012-02-25 18:28:32.000000000 +1100
+++ h323plus-1.24.0~dfsg/configure.ac	2012-02-25 18:28:32.000000000 +1100
@@ -69,6 +69,7 @@
   AC_CHECK_HEADER(${PTLIBDIR}/version.h, HAS_PTLIB=1) 	 
 fi
 
+set -x
 if test "${HAS_PTLIB:-unset}" = "unset" ; then
   AC_CHECK_HEADER(${OPENH323DIR}/../ptlib/version.h, HAS_PTLIB=1) 	 
   if test "${HAS_PTLIB:-unset}" != "unset" ; then
@@ -79,19 +80,13 @@
       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
+        AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, ,
+		     $PATH:/usr/share/ptlib/make)
       fi
     fi
   fi
 fi
+set +x
 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
   PTLIBDIR=`$PTLIB_CONFIG --prefix`
   HAS_PTLIB=1
