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

📄 aclocal.m4

📁 UNIX/LINUX下面的用户文件系统
💻 M4
📖 第 1 页 / 共 5 页
字号:
      alldirs=      for found_dir in $rpathdirs; do        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"      done      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.      acl_save_libdir="$libdir"      libdir="$alldirs"      eval flag=\"$hardcode_libdir_flag_spec\"      libdir="$acl_save_libdir"      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"    else      dnl The -rpath options are cumulative.      for found_dir in $rpathdirs; do        acl_save_libdir="$libdir"        libdir="$found_dir"        eval flag=\"$hardcode_libdir_flag_spec\"        libdir="$acl_save_libdir"        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"      done    fi  fi  if test "X$ltrpathdirs" != "X"; then    dnl When using libtool, the option that works for both libraries and    dnl executables is -R. The -R options are cumulative.    for found_dir in $ltrpathdirs; do      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"    done  fi])dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,dnl unless already present in VAR.dnl Works only for CPPFLAGS, not for LIB* variables because that sometimesdnl contains two or three consecutive elements that belong together.AC_DEFUN([AC_LIB_APPENDTOVAR],[  for element in [$2]; do    haveit=    for x in $[$1]; do      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])      if test "X$x" = "X$element"; then        haveit=yes        break      fi    done    if test -z "$haveit"; then      [$1]="${[$1]}${[$1]:+ }$element"    fi  done])dnl For those cases where a variable contains several -L and -l optionsdnl referring to unknown libraries and directories, this macro determines thednl necessary additional linker options for the runtime path.dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])dnl sets LDADDVAR to linker options needed together with LIBSVALUE.dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,dnl otherwise linking without libtool is assumed.AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],[  AC_REQUIRE([AC_LIB_RPATH])  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])  $1=  if test "$enable_rpath" != no; then    if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then      dnl Use an explicit option to hardcode directories into the resulting      dnl binary.      rpathdirs=      next=      for opt in $2; do        if test -n "$next"; then          dir="$next"          dnl No need to hardcode the standard /usr/lib.          if test "X$dir" != "X/usr/$acl_libdirstem"; then            rpathdirs="$rpathdirs $dir"          fi          next=        else          case $opt in            -L) next=yes ;;            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`                 dnl No need to hardcode the standard /usr/lib.                 if test "X$dir" != "X/usr/$acl_libdirstem"; then                   rpathdirs="$rpathdirs $dir"                 fi                 next= ;;            *) next= ;;          esac        fi      done      if test "X$rpathdirs" != "X"; then        if test -n ""$3""; then          dnl libtool is used for linking. Use -R options.          for dir in $rpathdirs; do            $1="${$1}${$1:+ }-R$dir"          done        else          dnl The linker is used for linking directly.          if test -n "$hardcode_libdir_separator"; then            dnl Weird platform: only the last -rpath option counts, the user            dnl must pass all path elements in one option.            alldirs=            for dir in $rpathdirs; do              alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"            done            acl_save_libdir="$libdir"            libdir="$alldirs"            eval flag=\"$hardcode_libdir_flag_spec\"            libdir="$acl_save_libdir"            $1="$flag"          else            dnl The -rpath options are cumulative.            for dir in $rpathdirs; do              acl_save_libdir="$libdir"              libdir="$dir"              eval flag=\"$hardcode_libdir_flag_spec\"              libdir="$acl_save_libdir"              $1="${$1}${$1:+ }$flag"            done          fi        fi      fi    fi  fi  AC_SUBST([$1])])# lib-prefix.m4 serial 5 (gettext-0.15)dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, anddnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn'tdnl require excessive bracketing.ifdef([AC_HELP_STRING],[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are neededdnl to access previously installed libraries. The basic assumption is thatdnl a user will want packages to use other packages he previously installeddnl with the same --prefix option.dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locatednl libraries, but is otherwise very convenient.AC_DEFUN([AC_LIB_PREFIX],[  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])  AC_REQUIRE([AC_PROG_CC])  AC_REQUIRE([AC_CANONICAL_HOST])  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  dnl By default, look in $includedir and $libdir.  use_additional=yes  AC_LIB_WITH_FINAL_PREFIX([    eval additional_includedir=\"$includedir\"    eval additional_libdir=\"$libdir\"  ])  AC_LIB_ARG_WITH([lib-prefix],[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib  --without-lib-prefix    don't search for libraries in includedir and libdir],[    if test "X$withval" = "Xno"; then      use_additional=no    else      if test "X$withval" = "X"; then        AC_LIB_WITH_FINAL_PREFIX([          eval additional_includedir=\"$includedir\"          eval additional_libdir=\"$libdir\"        ])      else        additional_includedir="$withval/include"        additional_libdir="$withval/$acl_libdirstem"      fi    fi])  if test $use_additional = yes; then    dnl Potentially add $additional_includedir to $CPPFLAGS.    dnl But don't add it    dnl   1. if it's the standard /usr/include,    dnl   2. if it's already present in $CPPFLAGS,    dnl   3. if it's /usr/local/include and we are using GCC on Linux,    dnl   4. if it doesn't exist as a directory.    if test "X$additional_includedir" != "X/usr/include"; then      haveit=      for x in $CPPFLAGS; do        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])        if test "X$x" = "X-I$additional_includedir"; then          haveit=yes          break        fi      done      if test -z "$haveit"; then        if test "X$additional_includedir" = "X/usr/local/include"; then          if test -n "$GCC"; then            case $host_os in              linux* | gnu* | k*bsd*-gnu) haveit=yes;;            esac          fi        fi        if test -z "$haveit"; then          if test -d "$additional_includedir"; then            dnl Really add $additional_includedir to $CPPFLAGS.            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"          fi        fi      fi    fi    dnl Potentially add $additional_libdir to $LDFLAGS.    dnl But don't add it    dnl   1. if it's the standard /usr/lib,    dnl   2. if it's already present in $LDFLAGS,    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,    dnl   4. if it doesn't exist as a directory.    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then      haveit=      for x in $LDFLAGS; do        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])        if test "X$x" = "X-L$additional_libdir"; then          haveit=yes          break        fi      done      if test -z "$haveit"; then        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then          if test -n "$GCC"; then            case $host_os in              linux*) haveit=yes;;            esac          fi        fi        if test -z "$haveit"; then          if test -d "$additional_libdir"; then            dnl Really add $additional_libdir to $LDFLAGS.            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"          fi        fi      fi    fi  fi])dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,dnl acl_final_exec_prefix, containing the values to which $prefix anddnl $exec_prefix will expand at the end of the configure script.AC_DEFUN([AC_LIB_PREPARE_PREFIX],[  dnl Unfortunately, prefix and exec_prefix get only finally determined  dnl at the end of configure.  if test "X$prefix" = "XNONE"; then    acl_final_prefix="$ac_default_prefix"  else    acl_final_prefix="$prefix"  fi  if test "X$exec_prefix" = "XNONE"; then    acl_final_exec_prefix='${prefix}'  else    acl_final_exec_prefix="$exec_prefix"  fi  acl_save_prefix="$prefix"  prefix="$acl_final_prefix"  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"  prefix="$acl_save_prefix"])dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with thednl variables prefix and exec_prefix bound to the values they will havednl at the end of the configure script.AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],[  acl_save_prefix="$prefix"  prefix="$acl_final_prefix"  acl_save_exec_prefix="$exec_prefix"  exec_prefix="$acl_final_exec_prefix"  $1  exec_prefix="$acl_save_exec_prefix"  prefix="$acl_save_prefix"])dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containingdnl the basename of the libdir, either "lib" or "lib64".AC_DEFUN([AC_LIB_PREPARE_MULTILIB],[  dnl There is no formal standard regarding lib and lib64. The current  dnl practice is that on a system supporting 32-bit and 64-bit instruction  dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit  dnl libraries go under $prefix/lib. We determine the compiler's default  dnl mode by looking at the compiler's library search path. If at least  dnl of its elements ends in /lib64 or points to a directory whose absolute  dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the  dnl default, namely "lib".  acl_libdirstem=lib  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`  if test -n "$searchpath"; then    acl_save_IFS="${IFS= 	}"; IFS=":"    for searchdir in $searchpath; do      if test -d "$searchdir"; then        case "$searchdir" in          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;          *) searchdir=`cd "$searchdir" && pwd`             case "$searchdir" in               */lib64 ) acl_libdirstem=lib64 ;;             esac ;;        esac      fi    done    IFS="$acl_save_IFS"  fi])# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-## Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005# Free Software Foundation, Inc.## This file is part of GNU Libtool:# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996## This file is free software; the Free Software Foundation gives# unlimited permission to copy and/or distribute it, with or without# modifications, as long as this notice is preserved.m4_define([_LT_COPYING], [dnl# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005# Free Software Foundation, Inc.## This file is part of GNU Libtool:# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996## 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 of the License, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.## As a special exception to the GNU General Public License, if you# distribute this file as part of a program that contains a# configuration script generated by Autoconf, you may include it under# the same distribution terms that you use for the rest of that program.])# serial 51 LT_INIT# LT_PREREQ(VERSION)# ------------------# Complain and exit if this libtool version is less that VERSION.m4_defun([LT_PREREQ],[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,       [m4_default([$3],		   [m4_fatal([Libtool version $1 or higher is required],		             63)])],       [$2])])# LT_INIT([OPTIONS])# ------------------AC_DEFUN([LT_INIT],[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULTAC_BEFORE([$0], [LT_LANG])dnlAC_BEFORE([$0], [LT_OUTPUT])dnl

⌨️ 快捷键说明

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