"Fossies" - the Fresh Open Source Software Archive

Member "bayonne-1.2.16/m4/ost_h323.m4" (24 Jul 2003, 3694 Bytes) of package /linux/misc/old/bayonne-1.2.16.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 dnl Copyright (C) 1999-2001 Open Source Telecom Corporation.
    2 dnl  
    3 dnl This program is free software; you can redistribute it and/or modify
    4 dnl it under the terms of the GNU General Public License as published by
    5 dnl the Free Software Foundation; either version 2 of the License, or
    6 dnl (at your option) any later version.
    7 dnl 
    8 dnl This program is distributed in the hope that it will be useful,
    9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
   10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11 dnl GNU General Public License for more details.
   12 dnl 
   13 dnl You should have received a copy of the GNU General Public License
   14 dnl along with this program; if not, write to the Free Software 
   15 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   16 dnl 
   17 dnl As a special exception to the GNU General Public License, if you 
   18 dnl distribute this file as part of a program that contains a configuration 
   19 dnl script generated by Autoconf, you may include it under the same 
   20 dnl distribution terms that you use for the rest of that program.
   21 
   22 AC_DEFUN(OST_OPENH323,[
   23 	OPENH323_FLAGS=
   24 	OPENH323_LIBS=
   25 	AC_PATH_PROG(PTCONFIG, ptlib-config, no)
   26 	ost_cv_openh323=false
   27 	AC_MSG_CHECKING([for openh323 libraries])
   28 	if test -z "$OPENH323DIR" ; then
   29 		if test -d /usr/openh323 ; then
   30 			export OPENH323DIR=/usr/openh323
   31 		elif test -d /usr/share/openh323 ; then
   32 			export OPENH323DIR=/usr/share/openh323
   33 		elif test -d /usr/include/openh323 ; then
   34 			export OPENH323DIR=/usr/include/openh323
   35 		else
   36 			export OPENH323DIR=~/openh323
   37 		fi
   38 	fi
   39 	if test "$PTCONFIG" != "no" ; then
   40 		OPENH323_FLAGS=`$PTCONFIG --ccflags`" -I/usr/include/pwlib/ptlib/unix -I/usr/include/pwlib -I/usr/include/openh323"
   41 		OPENH323_LIBS="-L"`$PTCONFIG --libdir`" -lh323_"`$PTCONFIG --ostype`"_"`$PTCONFIG --machtype`"_r -lpt_"`$PTCONFIG --ostype`"_"`$PTCONFIG --machtype`"_r "`$PTCONFIG --libs`
   42 		ost_cv_openh323=true
   43 	elif test -z "$PWLIBDIR" ; then
   44 		if test -d /usr/share/pwlib ; then
   45 			export PWLIBDIR=/usr/share/pwlib
   46 		else
   47 			export PWLIBDIR=~/pwlib
   48 		fi
   49 		if test -d $PWLIBDIR/include ; then
   50 			OPENH323_FLAGS="-I$PWLIBDIR/include/unix -I$PWLIBDIR/include"
   51 		elif test -d /usr/include/ptlib ; then
   52 			OPENH323_FLAGS="-I/usr/include/ptlib/unix -I/usr/include/ptlib"
   53 		fi
   54 	elif test -d $PWLIBDIR/include ; then
   55 			OPENH323_FLAGS="-I$PWLIB/include/unix -I$PWLIBDIR/include"
   56 	fi
   57 	if test $ost_cv_openh323 = false ; then
   58 	if test -d "$OPENH323DIR" ; then
   59 		ost_cv_openh323=true
   60 		if test -d /usr/include/openh323 ; then
   61  			OPENH323_FLAGS="$OPENH323_FLAGS -I/usr/include/openh323"
   62 		else
   63 			OPENH323_FLAGS="$OPENH323_FLAGS -I$OPENH323DIR/include"
   64 		fi
   65 		OPENH323_FLAGS="$OPENH323_FLAGS"
   66 		if test -d $OPENH323DIR/lib ; then
   67 			OPENH323_LIBS="$OPENH323_LIBS -L$OPENH323DIR/lib"
   68 			libh323="-lh323_"`ls $OPENH323_LIBS/lib/libh* | sed -e "s/.*libh323_//" -e "s/[.]so.*$//" -e"s/_s.a*$//"   | uniq`
   69 		else
   70 			if test -f /usr/lib/libopenh323.so ; then
   71 				libh323="-lopenh323"
   72 			else
   73 				libh323="-lh323_"`ls /usr/lib/libh323_* | sed -e "s/.*libh323_//" -e "s/[.]so.*$//" | uniq` 
   74 			fi
   75 		fi
   76 		if test "$PTCONFIG" != "no" ; then
   77 			OPENH323_LIBS="-lopenh323 -lpt "`$PTCONFIG --libs`
   78 		else
   79 			if test -d $PWLIBDIR/lib/obj* ; then
   80 				OPENH323_LIBS="$OPENH323_LIBS -L"`echo $PWLIBDIR/lib/obj*`
   81 			fi
   82 			if test -d $PWLIBDIR/lib ; then
   83 				libpt="-lpt" `ls $PWLIBDIR/lib/libpt* | sed -e "s/.*libpt//" -e "s/.so.*$//" -e"s/_s.a*$//" | uniq`
   84 			else
   85 				libpt="-lpt"
   86 			fi
   87 			OPENH323_LIBS="$OPENH323_LIBS $libh323 $libpt"
   88 		fi
   89 	fi
   90 	fi
   91 	if test $ost_cv_openh323 = true ; then
   92 		AC_MSG_RESULT(found)
   93 	else
   94 		AC_MSG_RESULT(missing)
   95 	fi
   96 	AC_SUBST(OPENH323_FLAGS)
   97 	AC_SUBST(OPENH323_LIBS)
   98 ])
   99 
  100