📄 aclocal.m4
字号:
dnl aclocal.m4 generated automatically by aclocal 1.4dnl Copyright (C) 1994, 1995-8, 1999 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 This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; withoutdnl even the implied warranty of MERCHANTABILITY or FITNESS FOR Adnl PARTICULAR PURPOSE.dnldnl Some automake macros for use by libfbx (libtimer and libkbd)dnldnl $Id: aclocal.m4,v 1.14 2001/03/03 02:29:19 nitroglycerine Exp $dnldnl Test for LIBTIMER, and define LIBTIMER_CFLAGS and LIBTIMER_LIBSdnl to be used as follows:dnl AM_PATH_LIBTIMER([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnlAC_DEFUN(AM_PATH_LIBTIMER,[dnl dnl Get the cflags and libraries from the libtimer-config scriptdnlAC_ARG_WITH(LIBTIMER-prefix,[ --with-libtimer-prefix=PREFIX Prefix where libtimer is installed (optional)], libtimer_config_prefix="$withval", libtimer_config_prefix="")AC_ARG_WITH(libtimer-exec-prefix,[ --with-libtimer-exec-prefix=PREFIX Exec prefix where libtimer is installed (optional)], libtimer_config_exec_prefix="$withval", libtimer_config_exec_prefix="")AC_ARG_ENABLE(libtimertest, [ --disable-libtimertest Do not try to compile and run a test libtimer program], , enable_libtimertest=yes) if test x$libtimer_config_exec_prefix != x ; then libtimer_config_args="$libtimer_config_args --exec-prefix=$libtimer_config_exec_prefix" if test x${LIBTIMER_CONFIG+set} != xset ; then LIBTIMER_CONFIG=$libtimer_config_exec_prefix/bin/libtimer-config fi fi if test x$libtimer_config_prefix != x ; then libtimer_config_args="$libtimer_config_args --prefix=$libtimer_config_prefix" if test x${LIBTIMER_CONFIG+set} != xset ; then LIBTIMER_CONFIG=$libtimer_config_prefix/bin/libtimer-config fi fi AC_PATH_PROG(LIBTIMER_CONFIG, libtimer-config, no) min_libtimer_version=ifelse([$1], ,0.1.1,$1) AC_MSG_CHECKING(for libtimer - version >= $min_libtimer_version) no_libtimer="" if test "$LIBTIMER_CONFIG" = "no" ; then no_libtimer=yes AC_MSG_RESULT(no) else AC_LANG_SAVE AC_LANG_CPLUSPLUS LIBTIMER_CFLAGS=`$LIBTIMER_CONFIG $libtimer_config_args --cflags` LIBTIMER_LIBS=`$LIBTIMER_CONFIG $libtimer_config_args --libs` libtimer_config_major_version=`$LIBTIMER_CONFIG $libtimer_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` libtimer_config_minor_version=`$LIBTIMER_CONFIG $libtimer_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` libtimer_config_micro_version=`$LIBTIMER_CONFIG $libtimer_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` AC_MSG_RESULT(yes) fi AC_SUBST(LIBTIMER_CFLAGS) AC_SUBST(LIBTIMER_LIBS)])dnl Test for LIBKBD, and define LIBKBD_CFLAGS and LIBKBD_LIBSdnl to be used as follows:dnl AM_PATH_LIBKBD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnlAC_DEFUN(AM_PATH_LIBKBD,[dnl dnl Get the cflags and libraries from the libkbd-config scriptdnlAC_ARG_WITH(LIBKBD-prefix,[ --with-libkbd-prefix=PREFIX Prefix where libkbd is installed (optional)], libkbd_config_prefix="$withval", libkbd_config_prefix="")AC_ARG_WITH(libkbd-exec-prefix,[ --with-libkbd-exec-prefix=PREFIX Exec prefix where libkbd is installed (optional)], libkbd_config_exec_prefix="$withval", libkbd_config_exec_prefix="")AC_ARG_ENABLE(libkbdtest, [ --disable-libkbdtest Do not try to compile and run a test libkbd program], , enable_libkbdtest=yes) if test x$libkbd_config_exec_prefix != x ; then libkbd_config_args="$libkbd_config_args --exec-prefix=$libkbd_config_exec_prefix" if test x${LIBKBD_CONFIG+set} != xset ; then LIBKBD_CONFIG=$libkbd_config_exec_prefix/bin/libkbd-config fi fi if test x$libkbd_config_prefix != x ; then libkbd_config_args="$libkbd_config_args --prefix=$libkbd_config_prefix" if test x${LIBKBD_CONFIG+set} != xset ; then LIBKBD_CONFIG=$libkbd_config_prefix/bin/libkbd-config fi fi AC_PATH_PROG(LIBKBD_CONFIG, libkbd-config, no) min_libkbd_version=ifelse([$1], ,0.1.1,$1) AC_MSG_CHECKING(for libkbd - version >= $min_libkbd_version) no_libkbd="" if test "$LIBKBD_CONFIG" = "no" ; then no_libkbd=yes AC_MSG_RESULT(no) else AC_LANG_SAVE AC_LANG_CPLUSPLUS LIBKBD_CFLAGS=`$LIBKBD_CONFIG $libkbd_config_args --cflags` LIBKBD_LIBS=`$LIBKBD_CONFIG $libkbd_config_args --libs` libkbd_config_major_version=`$LIBKBD_CONFIG $libkbd_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` libkbd_config_minor_version=`$LIBKBD_CONFIG $libkbd_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` libkbd_config_micro_version=`$LIBKBD_CONFIG $libkbd_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` AC_MSG_RESULT(yes) fi AC_SUBST(LIBKBD_CFLAGS) AC_SUBST(LIBKBD_LIBS)])# Like AC_CONFIG_HEADER, but automatically create stamp file.AC_DEFUN(AM_CONFIG_HEADER,[AC_PREREQ([2.12])AC_CONFIG_HEADER([$1])dnl When config.status generates a header, we must update the stamp-h file.dnl This file resides in the same directory as the config headerdnl that is generated. We must strip everything past the first ":",dnl and everything past the last "/".AC_OUTPUT_COMMANDS(changequote(<<,>>)dnlifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,<<am_indx=1for am_file in <<$1>>; do case " <<$>>CONFIG_HEADERS " in *" <<$>>am_file "*<<)>> echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx ;; esac am_indx=`expr "<<$>>am_indx" + 1`done<<>>dnl>>)changequote([,]))])# Do all the work for Automake. This macro actually does too much --# some checks are only needed if your package does certain things.# But this isn't really a big deal.# serial 1dnl Usage:dnl AM_INIT_AUTOMAKE(package,version, [no-define])AC_DEFUN(AM_INIT_AUTOMAKE,[AC_REQUIRE([AC_PROG_INSTALL])PACKAGE=[$1]AC_SUBST(PACKAGE)VERSION=[$2]AC_SUBST(VERSION)dnl test to see if srcdir already configuredif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first])fiifelse([$3],,AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))AC_REQUIRE([AM_SANITY_CHECK])AC_REQUIRE([AC_ARG_PROGRAM])dnl FIXME This is truly gross.missing_dir=`cd $ac_aux_dir && pwd`AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)AC_REQUIRE([AC_PROG_MAKE_SET])])## Check to make sure that the build environment is sane.#AC_DEFUN(AM_SANITY_CHECK,[AC_MSG_CHECKING([whether build environment is sane])# Just in casesleep 1echo timestamp > conftestfile# Do `set' in a subshell so we don't clobber the current shell's# arguments. Must try -L first in case configure is actually a# symlink; some systems play weird games with the mod time of symlinks# (eg FreeBSD returns the mod time of the symlink's containing# directory).if ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "[$]*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "[$]*" != "X $srcdir/configure conftestfile" \ && test "[$]*" != "X conftestfile $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a brokenalias in your environment]) fi test "[$]2" = conftestfile )then # Ok. :else AC_MSG_ERROR([newly created file is older than distributed files!Check your system clock])firm -f conftest*AC_MSG_RESULT(yes)])dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)dnl The program must properly implement --version.AC_DEFUN(AM_MISSING_PROG,[AC_MSG_CHECKING(for working $2)# Run test in a subshell; some versions of sh will print an error if# an executable is not found, even if stderr is redirected.# Redirect stdin to placate older versions of autoconf. Sigh.if ($2 --version) < /dev/null > /dev/null 2>&1; then $1=$2 AC_MSG_RESULT(found)else $1="$3/missing $2" AC_MSG_RESULT(missing)fiAC_SUBST($1)])# serial 40 AC_PROG_LIBTOOLAC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl# Save cache, so that ltconfig can load itAC_CACHE_SAVE# Actually configure libtool. ac_aux_dir is where install-sh is found.CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \|| AC_MSG_ERROR([libtool configure failed])# Reload cache, that may have been modified by ltconfigAC_CACHE_LOAD# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl# Redirect the config.log output again, so that the ltconfig log is not# clobbered by the next message.exec 5>>./config.log])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_RANLIB])dnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_LD])dnlAC_REQUIRE([AC_PROG_NM])dnlAC_REQUIRE([AC_PROG_LN_S])dnldnlcase "$target" inNONE) lt_target="$host" ;;*) lt_target="$target" ;;esac# Check for any special flags to pass to ltconfig.## the following will cause an existing older ltconfig to fail, so# we ignore this at the expense of the cache file... Checking this # will just take longer ... bummer!#libtool_flags="--cache-file=$cache_file"#test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],[libtool_flags="$libtool_flags --enable-dlopen"])ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],[libtool_flags="$libtool_flags --enable-win32-dll"])AC_ARG_ENABLE(libtool-lock, [ --disable-libtool-lock avoid locking (might break parallel builds)])test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"# Some flags need to be propagated to the compiler or linker for good# libtool support.case "$lt_target" 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.o`" in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -