⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aclocal.m4

📁 multi-line Adjunct Communication Server
💻 M4
📖 第 1 页 / 共 4 页
字号:
dnl #endifdnl dnl END ACCONFIGdnl Copyright (C) 1999-2000 Open Source Telecom Corporation.dnl  dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_SYS_POSIX,[ AC_REQUIRE([OST_PROG_CC_POSIX]) AC_CACHE_CHECK(whether system meets Posix.1,	ost_cv_sys_posix1,	AC_TRY_COMPILE(,[		#include <sys/types.h>		#include <unistd.h>		#ifndef	_POSIX_VERSION		fatal		#endif		],		             ost_cv_sys_posix1=yes,	     ost_cv_sys_posix1=no        )  )  if test $ost_cv_sys_posix1 = no ; then	AC_CHECK_HEADERS(unistd.h)  else	AC_DEFINE(HAVE_UNISTD_H)  fi])dnl ACCONFIG BOTTOMdnl  dnl #ifdef HAVE_UNISTD_Hdnl #include <sys/types.h>dnl #include <unistd.h>dnl #endifdnl dnl END ACCONFIGdnl Copyright (C) 1999-2000 Open Source Telecom Corporation.dnl  dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_CC_STRING,[	AC_REQUIRE([OST_SYS_POSIX])	AC_CHECK_FUNCS(strcasecmp strdup)])dnl ACCONFIG TEMPLATEdnl #undef HAVE_STRCASECMPdnl #undef HAVE_STRDUPdnl END ACCONFIGdnl ACCONFIG BOTTOMdnl  dnl #include <string.h>dnl dnl #ifdef HAVE_STRCASECMPdnl #ifndef stricmpdnl #define stricmp(x,y) strcasecmp(x,y)dnl #endifdnl #ifndef strnicmpdnl #define strnicmp(x,y,n) strncasecmp(x,y,n)dnl #endifdnl #endifdnl dnl #ifndef HAVE_STRDUPdnl #define strdup(s) (char *)malloc(strlen(s))dnl #endifdnl dnl END ACCONFIGdnl Copyright (C) 1999-2000 Open Source Telecom Corporation.dnl  dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_PIKA,[	AC_MSG_CHECKING([for pika development libraries])	if test -d ${prefix}/pika ; then		PIKA_DIR=${prefix}/pika	fi	if test -d /usr/pika ; then		PIKA_DIR=/usr/pika	fi	if test -z "$PIKA_DIR" ; then		PIKA_FLAGS=		PIKA_LIBS=		AC_MSG_RESULT(missing)	else		if test -d $PIKA_DIR/include ; then			PIKA_FLAGS="-I$PIKA_DIR/include"			PIKA_LIBS="-L$PIKA_DIR/lib -lmonty"		elif test -f ${prefix}/include/MonteCarlo.h ; then			PIKA_FLAGS=			PIKA_LIBS="-lmonty -lpk_cti -lpk_dsp"		elif test -f /usr/include/MonteCarlo.h ; then			PIKA_FLAGS=			PIKA_LIBS="-lmonty -lpk_cti -lpk_dsp"		else			PIKA_FLAGS="-I$PIKA_DIR/api"			PIKA_LIBS="-L$PIKA_DIR/Release -lmonty"		fi		AC_MSG_RESULT(found)	fi	AC_SUBST(PIKA_FLAGS)	AC_SUBST(PIKA_LIBS)])dnl Copyright (C) 1999-2000 Open Source Telecom Corporation.dnl  dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_VPB,[	AC_MSG_CHECKING([for Voicetronix api])	VPB_LIBS=""	if test -f ${prefix}/lib/libvpb.a ; then VPB_LIBS=-lvpb ; fi	if test -f /usr/lib/libvpb.a ; then VPB_LIBS=-lvpb ; fi	if test -f /usr/local/lib/libvpb.a ; then VPB_LIBS=-lvpb ; fi	if test -z "$VPB_LIBS" ; then		AC_MSG_RESULT(missing)	else		AC_MSG_RESULT(found)			fi	AC_SUBST(VPB_LIBS)])dnl Copyright (C) 1999 Open Source Telecom Corporation.dnl  dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_LINUX_PHONE,[	AC_MSG_CHECKING([for Linux Telephony])	PHONE_FLAGS=""	if test -f /usr/include/linux/telephony.h ; then		msg="found "		if test -f /usr/include/linux/ixjuser.h ; then			PHONE_FLAGS="-DIXJ_DRIVER"			msg="$msg ixj"		fi		AC_MSG_RESULT($msg)	else		AC_MSG_RESULT(missing)			fi	AC_SUBST(PHONE_FLAGS)])dnl Copyright (C) 1999-2000 Open Source Telecom Corporation.dnl  dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_LIB_PTHREAD,[  AC_REQUIRE([OST_SYS_POSIX])  AC_REQUIRE([OST_HEADER_SYSTIME])  THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"  THREAD_LIBS=  AC_CHECK_HEADERS(pthread.h,	ost_cv_posix_threads=yes,	ost_cv_posix_threads=no)  if test $ost_cv_posix_threads = yes ; then	AC_CACHE_CHECK(whether ${CC-cc} accepts -pthread,		ost_cv_prog_cc_pthread,		[echo 'void f(){}' >conftest.c		if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then			ost_cv_prog_cc_pthread=yes		else			ost_cv_prog_cc_pthread=no		fi		rm -f conftest*		])	ost_cv_thread_library=none	AC_CHECK_LIB(pthread, pthread_self,		ost_cv_thread_library=pthread,		AC_CHECK_LIB(pthreads, pthread_self,			ost_cv_thread_library=pthreads))	if test $ost_cv_thread_library = none ; then		AC_CHECK_LIB(gthreads, pthread_self,[			AC_CHECK_LIB(malloc, malloc)			ost_cv_thread_library=gthreads])	fi		if test $ost_cv_thread_library = none ; then			AC_CHECK_LIB(cma, pthread_self,			ost_cv_thread_library=cma)	fi	if test $ost_cv_thread_library = none ; then		AC_CHECK_LIB(c_r, pthread_self,			ost_cv_thread_library=c_r)	fi	if test $ost_cv_thread_library = none ; then		AC_CHECK_LIB(c, pthread_self,			ost_cv_thread_library=c)	fi	if test $ost_cv_thread_library = none ; then		AC_MSG_ERROR(no library for posix threads found!)	fi	AC_CHECK_LIB($ost_cv_thread_library, nanosleep,		AC_DEFINE(HAVE_PTHREAD_NANOSLEEP),[		AC_CHECK_LIB(posix4, nanosleep,[			AC_DEFINE(HAVE_PTHREAD_NANOSLEEP)			THREAD_LIBS="$THREAD_LIBS -lposix4"			])		])	if test $ost_cv_thread_library = c_r ; then		if test $ost_cv_prog_cc_pthread = yes ; then			ost_cv_thread_library=c		fi	fi	if test $ost_cv_thread_library != c ; then		THREAD_LIBS="$THREAD_LIBS -l$ost_cv_thread_library"	fi	if test $ost_cv_prog_cc_pthread = yes ; then		THREAD_FLAGS="$THREAD_FLAGS -pthread"	fi	AC_SUBST(THREAD_FLAGS)	AC_SUBST(THREAD_LIBS)	AC_CHECK_HEADERS(pthread_np.h)	AC_CHECK_HEADERS(semaphore.h)	AC_CHECK_HEADERS(sched.h)	AC_CHECK_HEADERS(sys/sched.h)	AC_CACHE_CHECK("for recursive mutex type support", ost_cv_mutex_recursive,	[	ost_cv_mutex_recursive="none"	AC_TRY_COMPILE(		[#include <pthread.h>],		[return PTHREAD_MUTEXTYPE_RECURSIVE;],		ost_cv_mutex_recursive="portable",		[			AC_EGREP_HEADER(PTHREAD_MUTEXTYPE_RECURSIVE_NP,pthread.h,			ost_cv_mutex_recursive=non-portable)		AC_EGREP_HEADER(PTHREAD_MUTEX_RECURSIVE_NP,pthread.h,			ost_cv_mutex_recursive=linux) 		AC_EGREP_HEADER(MUTEX_TYPE_COUNTING_FAST,pthread.h,			ost_cv_mutex_recursive=counting)			])	rm -f conftest*	])	if test $ost_cv_mutex_recursive = "none" ; then		AC_TRY_COMPILE(			[#include <pthread.h>],		 	[return MUTEX_TYPE_COUNTING_FAST;],			ost_cv_mutex_recursive=counting)	fi	case $ost_cv_mutex_recursive in	non-portable)		AC_DEFINE(PTHREAD_MUTEXTYPE_RECURSIVE,			PTHREAD_MUTEXTYPE_RECURSIVE_NP)		;;	linux)		AC_DEFINE(PTHREAD_MUTEXTYPE_RECURSIVE,			PTHREAD_MUTEX_RECURSIVE_NP)		;;	counting)		AC_DEFINE(PTHREAD_MUTEXTYPE_RECURSIVE,			MUTEX_TYPE_COUNTING_FAST)		;;	esac	AC_CHECK_LIB($ost_cv_thread_library, pthread_mutexattr_settype,		AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETTYPE),		[		AC_CHECK_LIB($ost_cv_thread_library, pthread_mutexattr_settype_np,			AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP))		AC_CHECK_LIB($ost_cv_thread_library, pthread_mutexattr_setkind_np,			AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETKIND_NP))		]	)	AC_CHECK_LIB($ost_cv_thread_library, pthread_attr_setstacksize,		AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACKSIZE))	AC_CHECK_LIB($ost_cv_thread_library, pthread_yield,		AC_DEFINE(HAVE_PTHREAD_YIELD),[		AC_CHECK_LIB($ost_cv_thread_library, sched_yield,			AC_DEFINE(HAVE_PTHREAD_SCHED_YIELD))		])	AC_CHECK_LIB($ost_cv_thread_library, pthread_cancel,[		AC_DEFINE(HAVE_PTHREAD_CANCEL)	  	AC_CHECK_LIB($ost_cv_thread_library,			pthread_setcanceltype,			AC_DEFINE(HAVE_PTHREAD_SETCANCELTYPE),			AC_CHECK_LIB($ost_cv_thread_library, pthread_setcanel,				AC_DEFINE(HAVE_PTHREAD_SETCANCEL)))		])	AC_CHECK_LIB($ost_cv_thread_library, pthread_delay_np,		AC_DEFINE(HAVE_PTHREAD_DELAY_NP))  fi])dnl ACCONFIG TEMPLATEdnl #undef PTHREAD_MUTEXTYPE_RECURSIVEdnl #undef HAVE_PTHREAD_MUTEXATTR_SETTYPEdnl #undef HAVE_PTHREAD_MUTEXATTR_SETTYPE_NPdnl #undef HAVE_PTHREAD_MUTEXATTR_SETKIND_NPdnl #undef HAVE_PTHREAD_ATTR_SETSTACKSIZEdnl #undef HAVE_PTHREAD_DELAY_NPdnl #undef HAVE_PTHREAD_SCHED_YIELDdnl #undef HAVE_PTHREAD_YIELDdnl #undef HAVE_PTHREAD_NANOSLEEPdnl #undef HAVE_PTHREAD_CANCELdnl #undef HAVE_PTHREAD_SETCANCELTYPE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -