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

📄 aclocal.m4

📁 最新的libusb库
💻 M4
📖 第 1 页 / 共 5 页
字号:
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocaldnl pulling things in needlessly.AC_PROVIDE_IFELSE([AC_PROG_GCJ],  [LT_LANG(GCJ)],  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],    [LT_LANG(GCJ)],    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],      [LT_LANG(GCJ)],      [m4_ifdef([AC_PROG_GCJ],	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])       m4_ifdef([A][M_PROG_GCJ],	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])       m4_ifdef([LT_PROG_GCJ],	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])AC_PROVIDE_IFELSE([LT_PROG_RC],  [LT_LANG(RC)],  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])])# _LT_LANG_DEFAULT_CONFIG# Obsolete macros:AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LIBTOOL_CXX], [])dnl AC_DEFUN([AC_LIBTOOL_F77], [])dnl AC_DEFUN([AC_LIBTOOL_FC], [])dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])# _LT_TAG_COMPILER# ----------------m4_defun([_LT_TAG_COMPILER],[AC_REQUIRE([AC_PROG_CC])dnl_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl# If no C compiler was specified, use CC.LTCC=${LTCC-"$CC"}# If no C compiler flags were specified, use CFLAGS.LTCFLAGS=${LTCFLAGS-"$CFLAGS"}# Allow CC to be a program name with arguments.compiler=$CC])# _LT_TAG_COMPILER# _LT_COMPILER_BOILERPLATE# ------------------------# Check for compiler boilerplate output or warnings with# the simple compiler test code.m4_defun([_LT_COMPILER_BOILERPLATE],[m4_require([_LT_DECL_SED])dnlac_outfile=conftest.$ac_objextecho "$lt_simple_compile_test_code" >conftest.$ac_exteval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err_lt_compiler_boilerplate=`cat conftest.err`$RM conftest*])# _LT_COMPILER_BOILERPLATE# _LT_LINKER_BOILERPLATE# ----------------------# Check for linker boilerplate output or warnings with# the simple link test code.m4_defun([_LT_LINKER_BOILERPLATE],[m4_require([_LT_DECL_SED])dnlac_outfile=conftest.$ac_objextecho "$lt_simple_link_test_code" >conftest.$ac_exteval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err_lt_linker_boilerplate=`cat conftest.err`$RM -r conftest*])# _LT_LINKER_BOILERPLATE# _LT_REQUIRED_DARWIN_CHECKS# -------------------------m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[  case $host_os in    rhapsody* | darwin*)    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])    AC_CHECK_TOOL([LIPO], [lipo], [:])    AC_CHECK_TOOL([OTOOL], [otool], [:])    AC_CHECK_TOOL([OTOOL64], [otool64], [:])    _LT_DECL([], [DSYMUTIL], [1],      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])    _LT_DECL([], [NMEDIT], [1],      [Tool to change global to local symbols on Mac OS X])    _LT_DECL([], [LIPO], [1],      [Tool to manipulate fat objects and archives on Mac OS X])    _LT_DECL([], [OTOOL], [1],      [ldd/readelf like tool for Mach-O binaries on Mac OS X])    _LT_DECL([], [OTOOL64], [1],      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],      [lt_cv_apple_cc_single_mod=no      if test -z "${LT_MULTI_MODULE}"; then	# By default we will add the -single_module flag. You can override	# by either setting the environment variable LT_MULTI_MODULE	# non-empty at configure time, or by adding -multi_module to the	# link flags.	rm -rf libconftest.dylib*	echo "int foo(void){return 1;}" > conftest.c	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err        _lt_result=$?	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then	  lt_cv_apple_cc_single_mod=yes	else	  cat conftest.err >&AS_MESSAGE_LOG_FD	fi	rm -rf libconftest.dylib*	rm -f conftest.*      fi])    AC_CACHE_CHECK([for -exported_symbols_list linker flag],      [lt_cv_ld_exported_symbols_list],      [lt_cv_ld_exported_symbols_list=no      save_LDFLAGS=$LDFLAGS      echo "_main" > conftest.sym      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],	[lt_cv_ld_exported_symbols_list=yes],	[lt_cv_ld_exported_symbols_list=no])	LDFLAGS="$save_LDFLAGS"    ])    case $host_os in    rhapsody* | darwin1.[[012]])      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;    darwin1.*)      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;    darwin*) # darwin 5.x on       # if running on 10.5 or later, the deployment target defaults      # to the OS version, if on x86, and 10.4, the deployment      # target defaults to 10.4. Don't you love it?       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;	10.[[012]]*)	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;	10.*)	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;      esac    ;;  esac    if test "$lt_cv_apple_cc_single_mod" = "yes"; then      _lt_dar_single_mod='$single_module'    fi    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'    else      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'    fi    if test "$DSYMUTIL" != ":"; then      _lt_dsymutil='~$DSYMUTIL $lib || :'    else      _lt_dsymutil=    fi    ;;  esac])# _LT_DARWIN_LINKER_FEATURES# --------------------------# Checks for linker and compiler features on darwinm4_defun([_LT_DARWIN_LINKER_FEATURES],[  m4_require([_LT_REQUIRED_DARWIN_CHECKS])  _LT_TAGVAR(archive_cmds_need_lc, $1)=no  _LT_TAGVAR(hardcode_direct, $1)=no  _LT_TAGVAR(hardcode_automatic, $1)=yes  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported  _LT_TAGVAR(whole_archive_flag_spec, $1)=''  _LT_TAGVAR(link_all_deplibs, $1)=yes  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"  if test "$GCC" = "yes"; then    output_verbose_link_cmd=echo    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"    m4_if([$1], [CXX],[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"    fi],[])  else  _LT_TAGVAR(ld_shlibs, $1)=no  fi])# _LT_SYS_MODULE_PATH_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.m4_defun([_LT_SYS_MODULE_PATH_AIX],[m4_require([_LT_DECL_SED])dnlAC_LINK_IFELSE(AC_LANG_PROGRAM,[lt_aix_libpath_sed='    /Import File Strings/,/^$/ {	/^0/ {	    s/^0  *\(.*\)$/\1/	    p	}    }'aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`# Check for a 64-bit object if we didn't find anything.if test -z "$aix_libpath"; then  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`fi],[])if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi])# _LT_SYS_MODULE_PATH_AIX# _LT_SHELL_INIT(ARG)# -------------------m4_define([_LT_SHELL_INIT],[ifdef([AC_DIVERSION_NOTICE],	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],	 [AC_DIVERT_PUSH(NOTICE)])$1AC_DIVERT_POP])# _LT_SHELL_INIT# _LT_PROG_ECHO_BACKSLASH# -----------------------# Add some code to the start of the generated configure script which# will find an echo command which doesn't interpret backslashes.m4_defun([_LT_PROG_ECHO_BACKSLASH],[_LT_SHELL_INIT([# Check that we are running under the correct shell.SHELL=${CONFIG_SHELL-/bin/sh}case X$lt_ECHO inX*--fallback-echo)  # Remove one level of quotation (which was required for Make).  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`  ;;esacECHO=${lt_ECHO-echo}if test "X[$]1" = X--no-reexec; then  # Discard the --no-reexec flag, and continue.  shiftelif test "X[$]1" = X--fallback-echo; then  # Avoid inline document here, it may be left over  :elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then  # Yippee, $ECHO works!  :else  # Restart under the correct shell.  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}fiif test "X[$]1" = X--fallback-echo; then  # used as fallback echo  shift  cat <<_LT_EOF[$]*_LT_EOF  exit 0fi# The HP-UX ksh and POSIX shell print the target directory to stdout# if CDPATH is set.(unset CDPATH) >/dev/null 2>&1 && unset CDPATHif test -z "$lt_ECHO"; then  if test "X${echo_test_string+set}" != Xset; then    # find a string as large as possible, as long as the shell can cope with it    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null      then        break      fi    done  fi  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&     test "X$echo_testing_string" = "X$echo_test_string"; then    :  else    # The Solaris, AIX, and Digital Unix default echo programs unquote    # backslashes.  This makes it impossible to quote backslashes using    #   echo "$something" | sed 's/\\/\\\\/g'    #    # So, first we look for a working echo in the user's PATH.    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    for dir in $PATH /usr/ucb; do      IFS="$lt_save_ifs"      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&         test "X$echo_testing_string" = "X$echo_test_string"; then        ECHO="$dir/echo"        break      fi    done    IFS="$lt_save_ifs"    if test "X$ECHO" = Xecho; then      # We didn't find a better echo, so look for alternatives.      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&         test "X$echo_testing_string" = "X$echo_test_string"; then        # This shell has a builtin print -r that does the trick.        ECHO='print -r'      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&	   test "X$CONFIG_SHELL" != X/bin/ksh; then        # If we have ksh, try running configure again with it.        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}        export ORIGINAL_CONFIG_SHELL        CONFIG_SHELL=/bin/ksh        export CONFIG_SHELL        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}      else        # Try using printf.        ECHO='printf %s\n'        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&	   test "X$echo_testing_string" = "X$echo_test_string"; then	  # Cool, printf works	  :        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&	     test "X$echo_testing_string" = 'X\t' &&	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&	     test "X$echo_testing_string" = "X$echo_test_string"; then	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL	  export CONFIG_SHELL	  SHELL="$CONFIG_SHELL"	  export SHELL	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&	     test "X$echo_testing_string" = 'X\t' &&	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&	     test "X$echo_testing_string" = "X$echo_test_string"; then	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"        else	  # maybe with a smaller string...	  prev=:	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null	    then	      break	    fi	    prev="$cmd"	  done	  if test "$prev" != 'sed 50q "[$]0"'; then	    echo_test_string=`eval $prev`	    export echo_test_string	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}	  else	    # Oops.  We lost completely, so just stick with echo.	    ECHO=echo	  fi        fi      fi    fi  fifi# Copy echo and quote the copy suitably for passing to libtool from# the Makefile, instead of quoting the original, which is used later.lt_ECHO=$ECHOif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"fiAC_SUBST(lt_ECHO)])_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])_LT_DECL([], [ECHO], [1],    [An echo program that does not interpret backslashes])])# _LT_PROG_ECHO_BACKSLASH# _LT_ENABLE_LOCK# ---------------m4_defun([_LT_ENABLE_LOCK],[AC_ARG_ENABLE([libtool-lock],  [AS_HELP_STRING([--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 inia64-*-hpux*)

⌨️ 快捷键说明

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