📄 ost_portable.m4
字号:
dnl Copyright (C) 1999-2005 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_WIN32],[ AC_CACHE_CHECK(for Win32 gnu environment, ost_cv_gnuwin32, [ AC_TRY_COMPILE([ #ifdef __WIN32__ #ifdef __MINGW32__ #define __RETURN_WIN32__ __MINGW32__ #endif #ifdef __CYGWIN32__ #define __RETURN_WIN32__ __CYGWIN32__ #endif #endif ],[return __RETURN_WIN32__;], [ost_cv_gnuwin32=yes],[ ost_cv_gnuwin32=no]) rm -f conftest* ]) if test "$ost_cv_gnuwin32" = "no" ; then AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(fcntl.h) AC_CHECK_HEADERS(strings.h) fi])AC_DEFUN([OST_LIB_VERSION],[ LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`" AC_SUBST(LT_RELEASE) AC_SUBST(LT_MAJOR) ])AC_DEFUN([AC_SUBST_DIR], [ ifelse($2,,,$1="[$]$2") result="***" prior="A" while test "$prior" != "$result" ; do prior=`(echo "[$]$1")` $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""[$]$1"\" )` result=`(echo "[$]$1")` done AC_SUBST($1)]) dnl ACCONFIG TEMPLATEdnl #undef HAVE_UNISTD_Hdnl #undef HAVE_FCNTL_Hdnl #undef HAVE_STRINGS_Hdnl END ACCONFIGdnl ACCONFIG BOTTOMdnl dnl #ifdef HAVE_UNISTD_Hdnl #include <unistd.h>dnl #ifndef __UNIX__dnl #define __UNIX__dnl #endifdnl #endifdnl dnl #ifdef HAVE_STRINGS_Hdnl #include <strings.h>dnl #endifdnl dnl #ifdef HAVE_FCNTL_Hdnl #include <fcntl.h>dnl #endifdnl dnl #if defined(__sun) || defined(__SUN__)dnl #define __EXTENSIONS__dnl #endifdnl dnl #if defined(__WIN32__) || defined(__MINGW32__) || defined(__CYGWIN32__)dnl #ifndef __WIN32__dnl #define __WIN32__dnl #endifdnl #include <windows.h>dnl #if defined(__MINGW32__) || defined(__CYGWIN32__)dnl #define __EXPORTdnl #elsednl #define __EXPORT __declspec(dllexport)dnl #endifdnl #elsednl #define __EXPORTdnl #endifdnl dnl END ACCONFIG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -