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

📄 aclocal.m4

📁 linux下的蓝牙协议栈
💻 M4
📖 第 1 页 / 共 5 页
字号:
# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 2# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'am__doit:	@echo done.PHONY: am__doitEND# If we don't find an include directive, just comment out the code.AC_MSG_CHECKING([for style of include used by $am_make])am__include="#"am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then   am__include=include   am__quote=   _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then   echo '.include "confinc"' > confmf   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then      am__include=.include      am__quote="\""      _am_result=BSD   fifiAC_SUBST([am__include])AC_SUBST([am__quote])AC_MSG_RESULT([$_am_result])rm -f confinc confmf])# AM_CONDITIONAL                                              -*- Autoconf -*-# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 5AC_PREREQ(2.52)# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fiAC_CONFIG_COMMANDS_PRE([if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  AC_MSG_ERROR([conditional "$1" was never defined.Usually this means the macro was only invoked conditionally.])fi])])# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.AC_PREREQ([2.52])# serial 6# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])# Add --enable-maintainer-mode option to configure.# From Jim Meyering# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 2AC_DEFUN([AM_MAINTAINER_MODE],[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])  dnl maintainer-mode is disabled by default  AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode enable make rules and dependencies not useful                          (and sometimes confusing) to the casual installer],      USE_MAINTAINER_MODE=$enableval,      USE_MAINTAINER_MODE=no)  AC_MSG_RESULT([$USE_MAINTAINER_MODE])  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])  MAINT=$MAINTAINER_MODE_TRUE  AC_SUBST(MAINT)dnl])AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-# serial 47 AC_PROG_LIBTOOL# Debian $Rev: 214 $# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)# -----------------------------------------------------------# If this macro is not defined by Autoconf, define it here.m4_ifdef([AC_PROVIDE_IFELSE],         [],         [m4_define([AC_PROVIDE_IFELSE],	         [m4_ifdef([AC_PROVIDE_$1],		           [$2], [$3])])])# AC_PROG_LIBTOOL# ---------------AC_DEFUN([AC_PROG_LIBTOOL],[AC_REQUIRE([_AC_PROG_LIBTOOL])dnldnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXXdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.  AC_PROVIDE_IFELSE([AC_PROG_CXX],    [AC_LIBTOOL_CXX],    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX  ])])dnl And a similar setup for Fortran 77 support  AC_PROVIDE_IFELSE([AC_PROG_F77],    [AC_LIBTOOL_F77],    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77])])dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, rundnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.  AC_PROVIDE_IFELSE([AC_PROG_GCJ],    [AC_LIBTOOL_GCJ],    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],      [AC_LIBTOOL_GCJ],      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],	[AC_LIBTOOL_GCJ],      [ifdef([AC_PROG_GCJ],	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])       ifdef([A][M_PROG_GCJ],	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])       ifdef([LT_AC_PROG_GCJ],	     [define([LT_AC_PROG_GCJ],		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])])])# AC_PROG_LIBTOOL# _AC_PROG_LIBTOOL# ----------------AC_DEFUN([_AC_PROG_LIBTOOL],[AC_REQUIRE([AC_LIBTOOL_SETUP])dnlAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnlAC_BEFORE([$0],[AC_LIBTOOL_F77])dnlAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl# Prevent multiple expansiondefine([AC_PROG_LIBTOOL], [])])# _AC_PROG_LIBTOOL# AC_LIBTOOL_SETUP# ----------------AC_DEFUN([AC_LIBTOOL_SETUP],[AC_PREREQ(2.50)dnlAC_REQUIRE([AC_ENABLE_SHARED])dnlAC_REQUIRE([AC_ENABLE_STATIC])dnlAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_LD])dnlAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnlAC_REQUIRE([AC_PROG_NM])dnlAC_REQUIRE([AC_PROG_LN_S])dnlAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!AC_REQUIRE([AC_OBJEXT])dnlAC_REQUIRE([AC_EXEEXT])dnldnlAC_LIBTOOL_SYS_MAX_CMD_LENAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPEAC_LIBTOOL_OBJDIRAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl_LT_AC_PROG_ECHO_BACKSLASHcase $host_os inaix3*)  # AIX sometimes has problems with the GCC collect2 program.  For some  # reason, if we set the COLLECT_NAMES environment variable, the problems  # vanish in a puff of smoke.  if test "X${COLLECT_NAMES+set}" != Xset; then    COLLECT_NAMES=    export COLLECT_NAMES  fi  ;;esac# Sed substitution that helps us do robust quoting.  It backslashifies# metacharacters that are still active within double-quoted strings.Xsed='sed -e s/^X//'[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']# Same as above, but do not quote variable references.[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']# Sed substitution to delay expansion of an escaped shell variable in a# double_quote_subst'ed string.delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'# Sed substitution to avoid accidental globbing in evaled expressionsno_glob_subst='s/\*/\\\*/g'# Constants:rm="rm -f"# Global variables:default_ofile=libtoolcan_build_shared=yes# All known linkers require a `.a' archive for static linking (except M$VC,# which needs '.lib').libext=altmain="$ac_aux_dir/ltmain.sh"ofile="$default_ofile"with_gnu_ld="$lt_cv_prog_gnu_ld"AC_CHECK_TOOL(AR, ar, false)AC_CHECK_TOOL(RANLIB, ranlib, :)AC_CHECK_TOOL(STRIP, strip, :)old_CC="$CC"old_CFLAGS="$CFLAGS"# Set sane defaults for various variablestest -z "$AR" && AR=artest -z "$AR_FLAGS" && AR_FLAGS=crutest -z "$AS" && AS=astest -z "$CC" && CC=cctest -z "$LTCC" && LTCC=$CCtest -z "$DLLTOOL" && DLLTOOL=dlltooltest -z "$LD" && LD=ldtest -z "$LN_S" && LN_S="ln -s"test -z "$MAGIC_CMD" && MAGIC_CMD=filetest -z "$NM" && NM=nmtest -z "$SED" && SED=sedtest -z "$OBJDUMP" && OBJDUMP=objdumptest -z "$RANLIB" && RANLIB=:test -z "$STRIP" && STRIP=:test -z "$ac_objext" && ac_objext=o# Determine commands to create old-style static archives.old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'old_postinstall_cmds='chmod 644 $oldlib'old_postuninstall_cmds=if test -n "$RANLIB"; then  case $host_os in  openbsd*)    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"    ;;  *)    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"    ;;  esac  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"fi# Only perform the check for file, if the check method requires itcase $deplibs_check_method infile_magic*)  if test "$file_magic_cmd" = '$MAGIC_CMD'; then    AC_PATH_MAGIC  fi  ;;esacAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],enable_win32_dll=yes, enable_win32_dll=no)AC_ARG_ENABLE([libtool-lock],    [AC_HELP_STRING([--disable-libtool-lock],	[avoid locking (might break parallel builds)])])test "x$enable_libtool_lock" != xno && enable_libtool_lock=yesAC_ARG_WITH([pic],    [AC_HELP_STRING([--with-pic],	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],    [pic_mode="$withval"],    [pic_mode=default])test -z "$pic_mode" && pic_mode=default# Use C for the default configuration in the libtool scripttagname=AC_LIBTOOL_LANG_C_CONFIG_LT_AC_TAGCONFIG])# AC_LIBTOOL_SETUP# _LT_AC_SYS_COMPILER# -------------------AC_DEFUN([_LT_AC_SYS_COMPILER],[AC_REQUIRE([AC_PROG_CC])dnl# If no C compiler was specified, use CC.LTCC=${LTCC-"$CC"}# Allow CC to be a program name with arguments.compiler=$CC])# _LT_AC_SYS_COMPILER# _LT_AC_SYS_LIBPATH_AIX# ----------------------# Links a minimal program and checks the executable# for the system default hardcoded library path. In most cases,# this is /usr/lib:/lib, but when the MPI compilers are used# the location of the communication and MPI libs are included too.# If we don't find anything, use the default library path according# to the aix ld manual.AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],[AC_LINK_IFELSE(AC_LANG_PROGRAM,[aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }}'`

⌨️ 快捷键说明

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