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

📄 aclocal.m4

📁 linux下简单对象应用协议的开发库
💻 M4
📖 第 1 页 / 共 5 页
字号:
	p	n	/\\\\$/ b loop      p    }    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do    # Make sure the directory exists.    test -f "$dirpart/$file" && continue    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1    # echo "creating $dirpart/$file"    echo '# dummy' > "$dirpart/$file"  donedone], [AMDEP_TRUE="$AMDEP_TRUE"ac_aux_dir="$ac_aux_dir"])])# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'doit:	@echo doneEND# 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 | fgrep -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])# serial 3# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.## FIXME: Once using 2.50, use this:# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnlAC_DEFUN([AM_CONDITIONAL],[ifelse([$1], [TRUE],        [errprint(__file__:__line__: [$0: invalid condition: $1])dnlm4exit(1)])dnlifelse([$1], [FALSE],       [errprint(__file__:__line__: [$0: invalid condition: $1])dnlm4exit(1)])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fi])# Like AC_CONFIG_HEADER, but automatically create stamp file.# serial 3# When config.status generates a header, we must update the stamp-h file.# This file resides in the same directory as the config header# that is generated.  We must strip everything past the first ":",# and everything past the last "/".AC_PREREQ([2.12])AC_DEFUN([AM_CONFIG_HEADER],[ifdef([AC_FOREACH],dnl	 [dnl init our file count if it isn't already	 m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))	 dnl prepare to store our destination file list for use in config.status	 AC_FOREACH([_AM_File], [$1],		    [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))		    m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))		    dnl and add it to the list of files AC keeps track of, along		    dnl with our hook		    AC_CONFIG_HEADERS(_AM_File,dnl COMMANDS, [, INIT-CMDS][# update the timestampecho timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS		    m4_popdef([_AM_Dest])])],dnl[AC_CONFIG_HEADER([$1])  AC_OUTPUT_COMMANDS(   ifelse(patsubst([$1], [[^ ]], []),	  [],	  [test -z "$CONFIG_HEADERS" || echo timestamp >dnl	   patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl[am_indx=1for am_file in $1; do  case " \$CONFIG_HEADERS " in  *" \$am_file "*)    am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`    if test -n "\$am_dir"; then      am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`      for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do        am_tmpdir=\$am_tmpdir\$am_subdir/        if test ! -d \$am_tmpdir; then          mkdir \$am_tmpdir        fi      done    fi    echo timestamp > "\$am_dir"stamp-h\$am_indx    ;;  esac  am_indx=\`expr \$am_indx + 1\`done])])]) # AM_CONFIG_HEADER# _AM_DIRNAME(PATH)# -----------------# Like AS_DIRNAME, only do it during macro expansionAC_DEFUN([_AM_DIRNAME],       [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,	      m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,		    m4_if(m4_regexp([$1], [^/.*]), -1,			  [.],			  m4_patsubst([$1], [^\(/\).*], [\1])),		    m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),	      m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl]) # _AM_DIRNAME# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-# serial 46 AC_PROG_LIBTOOLAC_DEFUN([AC_PROG_LIBTOOL],[AC_REQUIRE([AC_LIBTOOL_SETUP])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_DEFUN([AC_LIBTOOL_SETUP],[AC_PREREQ(2.13)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])dnlAC_REQUIRE([AC_OBJEXT])dnlAC_REQUIRE([AC_EXEEXT])dnldnl_LT_AC_PROG_ECHO_BACKSLASH# 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_CHECK_TOOL(RANLIB, ranlib, :)AC_CHECK_TOOL(STRIP, strip, :)ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],enable_win32_dll=yes, enable_win32_dll=no)AC_ARG_ENABLE(libtool-lock,  [  --disable-libtool-lock  avoid locking (might break parallel builds)])test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes# Some flags need to be propagated to the compiler or linker for good# libtool support.case $host in*-*-irix6*)  # Find out which ABI we are using.  echo '[#]line __oline__ "configure"' > conftest.$ac_ext  if AC_TRY_EVAL(ac_compile); then    case `/usr/bin/file conftest.$ac_objext` in    *32-bit*)      LD="${LD-ld} -32"      ;;    *N32*)      LD="${LD-ld} -n32"      ;;    *64-bit*)      LD="${LD-ld} -64"      ;;    esac  fi  rm -rf conftest*  ;;*-*-sco3.2v5*)  # On SCO OpenServer 5, we need -belf to get full-featured binaries.  SAVE_CFLAGS="$CFLAGS"  CFLAGS="$CFLAGS -belf"  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,    [AC_LANG_SAVE     AC_LANG_C     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])     AC_LANG_RESTORE])  if test x"$lt_cv_cc_needs_belf" != x"yes"; then    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf    CFLAGS="$SAVE_CFLAGS"  fi  ;;ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],[*-*-cygwin* | *-*-mingw* | *-*-pw32*)  AC_CHECK_TOOL(DLLTOOL, dlltool, false)  AC_CHECK_TOOL(AS, as, false)  AC_CHECK_TOOL(OBJDUMP, objdump, false)  # recent cygwin and mingw systems supply a stub DllMain which the user  # can override, but on older systems we have to supply one  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,    [AC_TRY_LINK([],      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);      DllMain (0, 0, 0);],      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])  case $host/$CC in  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)    # old mingw systems require "-dll" to link a DLL, while more recent ones    # require "-mdll"    SAVE_CFLAGS="$CFLAGS"    CFLAGS="$CFLAGS -mdll"    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])    CFLAGS="$SAVE_CFLAGS" ;;  *-*-cygwin* | *-*-pw32*)    # cygwin systems need to pass --dll to the linker, and not link    # crt.o which will require a WinMain@16 definition.    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;  esac  ;;  ])esac_LT_AC_LTCONFIG_HACK])# AC_LIBTOOL_HEADER_ASSERT# ------------------------AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],[AC_CACHE_CHECK([whether $CC supports assert without backlinking],    [lt_cv_func_assert_works],    [case $host in    *-*-solaris*)      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then        case `$CC --version 2>/dev/null` in        [[12]].*) lt_cv_func_assert_works=no ;;        *)        lt_cv_func_assert_works=yes ;;        esac      fi      ;;    esac])if test "x$lt_cv_func_assert_works" = xyes; then  AC_CHECK_HEADERS(assert.h)fi])# AC_LIBTOOL_HEADER_ASSERT# _LT_AC_CHECK_DLFCN# --------------------AC_DEFUN([_LT_AC_CHECK_DLFCN],[AC_CHECK_HEADERS(dlfcn.h)])# _LT_AC_CHECK_DLFCN# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE# ---------------------------------AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_PROG_NM])AC_REQUIRE([AC_OBJEXT])# Check for command to grab the raw symbol name followed by C symbol from nm.AC_MSG_CHECKING([command to parse $NM output])AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl# These are sane defaults that work on at least a few old systems.# [They come from Ultrix.  What could be older than Ultrix?!! ;)]# Character class describing NM global symbol codes.symcode='[[BCDEGRST]]'# Regexp to match symbols that can be accessed directly from C.sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'# Transform the above into a raw symbol and a C symbol.symxfrm='\1 \2\3 \3'# Transform an extracted symbol line into a proper C declarationlt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"# Transform an extracted symbol line into symbol name and symbol addresslt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"# Define system-specific variables.case $host_os inaix*)  symcode='[[BCDT]]'  ;;cygwin* | mingw* | pw32*)  symcode='[[ABCDGISTW]]'  ;;hpux*) # Its linker distinguishes data from code symbols  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"  ;;irix*)  symcode='[[BCDEGRST]]'  ;;solaris* | sysv5*)  symcode='[[BDT]]'  ;;sysv4)  symcode='[[DFNSTU]]'  ;;esac# Handle CRLF in mingw tool chainopt_cr=case $host_os inmingw*)  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp  ;;esac# If we're using GNU nm, then use its standard symbol codes.if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then  symcode='[[ABCDGISTW]]'fi# Try without a prefix undercore, then with it.for ac_symprfx in "" "_"; do  # Write the raw and C identifiers.lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"  # Check to see that the pipe works correctly.  pipe_works=no  rm -f conftest*  cat > conftest.$ac_ext <<EOF#ifdef __cplusplusextern "C" {#endifchar nm_test_var;void nm_test_func(){}#ifdef __cplusplus}#endifint main(){nm_test_var='a';nm_test_func();return(0);}EOF  if AC_TRY_EVAL(ac_compile); then    # Now try to grab the symbols.    nlist=conftest.nm    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then      # Try sorting and uniquifying the output.      if sort "$nlist" | uniq > "$nlist"T; then	mv -f "$nlist"T "$nlist"      else	rm -f "$nlist"T      fi      # Make sure that we snagged all the symbols we need.      if egrep ' nm_test_var$' "$nlist" >/dev/null; then

⌨️ 快捷键说明

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