📄 aclocal.m4
字号:
# aclocal.m4 generated automatically by aclocal 1.5# Copyright 1996, 1997, 1998, 1999, 2000, 2001# Free Software Foundation, Inc.# 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.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY, to the extent permitted by law; without# even the implied warranty of MERCHANTABILITY or FITNESS FOR A# PARTICULAR PURPOSE.# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-AC_DEFUN(AC_FIND_FILE,[$3=NOfor i in $2;do for j in $1; do if test -r "$i/$j"; then $3=$i break 2 fi donedone])AC_DEFUN(AC_PATH_QT_LIB,[ AC_REQUIRE_CPP() AC_REQUIRE([AC_PATH_X]) AC_MSG_CHECKING(for QT 3.x libraries) ac_qt_libraries="no" AC_ARG_WITH(qt-libraries, [ --with-qt-libraries where the QT libraries are located. ], [ ac_qt_libraries="$withval" ]) AC_CACHE_VAL(ac_cv_lib_qtlib, [ dnl Did the user give --with-qt-libraries? if test "$ac_qt_libraries" = no; then dnl No they didn't, so lets look for them... dnl If you need to add extra directories to check, add them here. qt_library_dirs="\ /usr/lib \ /usr/local/lib \ /usr/X11/lib \ /usr/X11R6/lib" if test "x$QTDIR" != x; then qt_library_dirs="$QTDIR/lib $qt_library_dirs" fi if test "x$QTLIB" != x; then qt_library_dirs="$QTLIB $qt_library_dirs" fi for qt_temp in $qt_library_dirs; do for qt_dir in $qt_temp $qt_temp/*/ $qt_temp/*/*/ $qt_temp/*/*/*/; do if test -r $qt_dir/libqt.so.3 && test -r $qt_dir/libqt.so; then ac_qt_libraries=$qt_dir ac_qt_lib=qt break 2 elif test -r $qt_dir/libqt-mt.so.3 && test -r $qt_dir/libqt-mt.so; then ac_qt_libraries=$qt_dir ac_qt_lib=qt-mt break 2 fi done done else dnl yes they did, so lets look for qt or qt-mt... qt_lib_dir="$ac_qt_libraries" if test -r $qt_lib_dir/libqt.so.3 && test -r $qt_lib_dir/libqt.so; then ac_qt_lib=qt elif test -r $qt_lib_dir/libqt-mt.so.3 && test -r $qt_lib_dir/libqt-mt.so; then ac_qt_lib=qt-mt fi fi ac_cv_lib_qtlib=$ac_qt_libraries ]) dnl Define a shell variable for later checks if test "$ac_cv_lib_qtlib" = no; then have_qt_lib="no" else have_qt_lib="yes" fi AC_MSG_RESULT([$ac_cv_lib_qtlib]) QT_LDFLAGS="-L$ac_cv_lib_qtlib" QT_LIBDIR="$ac_cv_lib_qtlib" QT_LIB="-l$ac_qt_lib" AC_SUBST(QT_LDFLAGS) AC_SUBST(QT_LIBDIR) AC_SUBST(QT_LIB)])AC_DEFUN(AC_PATH_QT_INC,[ AC_REQUIRE_CPP() AC_REQUIRE([AC_PATH_X]) AC_MSG_CHECKING(for QT 3.x includes) ac_qt_includes="no" AC_ARG_WITH(qt-includes, [ --with-qt-includes where the QT headers are located. ], [ ac_qt_includes="$withval" ]) AC_CACHE_VAL(ac_cv_header_qtinc, [ dnl Did the user give --with-qt-includes? if test "$ac_qt_includes" = no; then dnl No they didn't, so lets look for them... dnl If you need to add extra directories to check, add them here. qt_include_dirs="\ /usr \ /usr/lib \ /usr/local/ \ /usr/X11/ \ /usr/X11R6/" if test "x$QTDIR" != x; then qt_include_dirs="$QTDIR/include $qt_include_dirs" fi if test "x$QTINC" != x; then qt_include_dirs="$QTINC $qt_include_dirs" fi for qt_temp in $qt_include_dirs; do for qt_dir in $qt_temp/include/ $qt_temp/qt*/include/ $qt_temp/include/qt*/ $qt_temp/include/*/qt*/; do if test -r "$qt_dir/qnamespace.h" && test -r "$qt_dir/qptrlist.h"; then ac_qt_includes=$qt_dir break 2 fi done done fi ac_cv_header_qtinc=$ac_qt_includes ]) if test "$ac_cv_header_qtinc" = no; then have_qt_inc="no" else have_qt_inc="yes" fi AC_MSG_RESULT([$ac_cv_header_qtinc]) QT_INCLUDES="-I$ac_cv_header_qtinc" QT_INCDIR="$ac_cv_header_qtinc" AC_SUBST(QT_INCLUDES) AC_SUBST(QT_INCDIR) QTDIR="$ac_cv_header_qtinc/.."])AC_DEFUN(AC_PATH_QT_MOC,[ AC_PATH_PROG( MOC, moc, $QTDIR/bin/moc, $QTDIR/bin:/usr/bin:/usr/X11R6/bin:/usr/lib/qt/bin:/usr/local/qt/bin:$PATH) AC_SUBST(MOC)])AC_DEFUN(AC_PATH_OHBCI_DIR,[ AC_REQUIRE_CPP() AC_REQUIRE([AC_PATH_X]) AC_MSG_CHECKING(for OpenHBCI libraries and includes) ac_ohbci_directory="no" AC_ARG_WITH(ohbci-libraries, [ --with-ohbci-libraries where the OHBCI libraries are located. ], [ ac_ohbci_directory="$withval" ]) AC_CACHE_VAL(ac_cv_lib_ohbcilib, [ dnl Did the user give --with-ohbci-libraries? if test "$ac_ohbci_directory" = no; then dnl No they didn't, so lets look for them... dnl If you need to add extra directories to check, add them here. ohbci_library_dirs="/usr/local/openhbci \ /usr/local \ /usr/openhbci \ /usr \ /" if test "x$OHBCIDIR" != x; then ohbci_library_dirs="$OHBCIDIR/lib $ohbci_library_dirs" fi if test "x$OHBCILIB" != x; then ohbci_library_dirs="$OHBCILIB $ohbci_library_dirs" fi for ohbci_dir in $ohbci_library_dirs; do if test -x "$ohbci_dir/bin/openhbci-config"; then ac_ohbci_directory=$ohbci_dir break fi done fi ]) dnl Define a shell variable for later checks if test "$ac_ohbci_directory" = no; then have_ohbci_lib="no" else have_ohbci_lib="yes" all_libraries="$all_libraries `$ac_ohbci_directory/bin/openhbci-config --libraries`" all_includes="$all_includes `$ac_ohbci_directory/bin/openhbci-config --includes`" fi AC_MSG_RESULT([$ac_ohbci_directory]) AC_SUBST(all_includes) AC_SUBST(all_libraries)])AC_DEFUN(AC_PATH_KTOBLZCHECK_LIB,[ AC_REQUIRE_CPP() AC_REQUIRE([AC_PATH_X]) AC_MSG_CHECKING(for ktoblzcheck libraries) ac_ktoblzcheck_libraries="no" AC_ARG_WITH(ktoblzcheck-libraries, [ --with-ktoblzcheck-libraries where the ktoblzcheck libraries are located. ], [ ac_ktoblzcheck_libraries="$withval" ]) AC_CACHE_VAL(ac_cv_lib_ktoblzchecklib, [ dnl Did the user give --with-ktoblzcheck-libraries? if test "$ac_ktoblzcheck_libraries" = no; then dnl No they didn't, so lets look for them... dnl If you need to add extra directories to check, add them here. ktoblzcheck_library_dirs="\ /usr/lib \ /usr/local/lib \ /usr \ /" if test "x$KTOBLZCHECKDIR" != x; then ktoblzcheck_library_dirs="$KTOBLZCHECKDIR/lib $ktoblzcheck_library_dirs" fi if test "x$KTOBLZCHECKLIB" != x; then ktoblzcheck_library_dirs="$KTOBLZCHECKLIB $ktoblzcheck_library_dirs" fi for ktoblzcheck_temp in $ktoblzcheck_library_dirs; do for ktoblzcheck_dir in $ktoblzcheck_temp $ktoblzcheck_temp/*/ $ktoblzcheck_temp/*/*/ $ktoblzcheck_temp/*/*/*/; do if test -r $ktoblzcheck_dir/libktoblzcheck.so; then ac_ktoblzcheck_libraries=$ktoblzcheck_dir ac_ktoblzcheck_lib=ktoblzcheck break 2 fi done done else dnl yes they did ac_ktoblzcheck_lib=ktoblzcheck fi ac_cv_lib_ktoblzchecklib=$ac_ktoblzcheck_libraries ]) dnl Define a shell variable for later checks if test "$ac_cv_lib_ktoblzchecklib" = no; then have_ktoblzcheck_lib="no" else have_ktoblzcheck_lib="yes" fi AC_MSG_RESULT([$ac_cv_lib_ktoblzchecklib]) KTOBLZCHECK_LDFLAGS="-L$ac_cv_lib_ktoblzchecklib" KTOBLZCHECK_LIBDIR="$ac_cv_lib_ktoblzchecklib" KTOBLZCHECK_LIB="-l$ac_ktoblzcheck_lib" AC_SUBST(KTOBLZCHECK_LDFLAGS) AC_SUBST(KTOBLZCHECK_LIBDIR) AC_SUBST(KTOBLZCHECK_LIB)])AC_DEFUN(AC_PATH_KTOBLZCHECK_INC,[ AC_REQUIRE_CPP() AC_REQUIRE([AC_PATH_X]) AC_MSG_CHECKING(for ktoblzcheck includes) ac_ktoblzcheck_includes="no" AC_ARG_WITH(ktoblzcheck-includes, [ --with-ktoblzcheck-includes where the ktoblzcheck headers are located. ], [ ac_ktoblzcheck_includes="$withval" ]) AC_CACHE_VAL(ac_cv_header_ktoblzcheckinc, [ dnl Did the user give --with-ktoblzcheck-includes? if test "$ac_ktoblzcheck_includes" = no; then dnl No they didn't, so lets look for them... dnl If you need to add extra directories to check, add them here. ktoblzcheck_include_dirs="\ /usr \ /usr/local \ /usr \ /" if test "x$KTOBLZCHECKDIR" != x; then ktoblzcheck_include_dirs="$KTOBLZCHECKDIR/include $ktoblzcheck_include_dirs" fi if test "x$KTOBLZCHECKINC" != x; then ktoblzcheck_include_dirs="$KTOBLZCHECKINC $ktoblzcheck_include_dirs" fi for ktoblzcheck_temp in $ktoblzcheck_include_dirs; do for ktoblzcheck_dir in $ktoblzcheck_temp/include/ $ktoblzcheck_temp/ktoblzcheck*/include/ $ktoblzcheck_temp/include/ktoblzcheck*/ $ktoblzcheck_temp/include/*/ktoblzcheck*/; do if test -r "$ktoblzcheck_dir/ktoblzcheck.hh"; then ac_ktoblzcheck_includes=$ktoblzcheck_dir break 2 fi done done fi ac_cv_header_ktoblzcheckinc=$ac_ktoblzcheck_includes ]) if test "$ac_cv_header_ktoblzcheckinc" = no; then have_ktoblzcheck_inc="no" else have_ktoblzcheck_inc="yes" fi AC_MSG_RESULT([$ac_cv_header_ktoblzcheckinc]) KTOBLZCHECK_INCLUDES="-I$ac_cv_header_ktoblzcheckinc" KTOBLZCHECK_INCDIR="$ac_cv_header_ktoblzcheckinc" AC_SUBST(KTOBLZCHECK_INCLUDES) AC_SUBST(KTOBLZCHECK_INCDIR) KTOBLZCHECKDIR="$ac_cv_header_ktoblzcheckinc/.."])# 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 5# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be# written in clear, in which case automake, when reading aclocal.m4,# will think it sees a *use*, and therefore will trigger all it's# C support machinery. Also note that it means that autoscan, seeing# CC etc. in the Makefile, will ask for an AC_PROG_CC use...# We require 2.13 because we rely on SHELL being computed by configure.AC_PREREQ([2.13])# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)# -----------------------------------------------------------# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.# The purpose of this macro is to provide the user with a means to# check macros which are provided without letting her know how the# information is coded.# If this macro is not defined by Autoconf, define it here.ifdef([AC_PROVIDE_IFELSE], [], [define([AC_PROVIDE_IFELSE], [ifdef([AC_PROVIDE_$1], [$2], [$3])])])# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])# ----------------------------------------------AC_DEFUN([AM_INIT_AUTOMAKE],[AC_REQUIRE([AC_PROG_INSTALL])dnl# test to see if srcdir already configuredif test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])fi# Define the identity of the package.PACKAGE=$1AC_SUBST(PACKAGE)dnlVERSION=$2AC_SUBST(VERSION)dnlifelse([$3],,[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow# the ones we care about.ifdef([m4_pattern_allow], [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl# Autoconf 2.50 always computes EXEEXT. However we need to be# compatible with 2.13, for now. So we always define EXEEXT, but we# don't compute it.AC_SUBST(EXEEXT)# Similar for OBJEXT -- only we only use OBJEXT if the user actually# requests that it be used. This is a bit dumb.: ${OBJEXT=o}AC_SUBST(OBJEXT)# Some tools Automake needs.AC_REQUIRE([AM_SANITY_CHECK])dnlAC_REQUIRE([AC_ARG_PROGRAM])dnlAM_MISSING_PROG(ACLOCAL, aclocal)AM_MISSING_PROG(AUTOCONF, autoconf)AM_MISSING_PROG(AUTOMAKE, automake)AM_MISSING_PROG(AUTOHEADER, autoheader)AM_MISSING_PROG(MAKEINFO, makeinfo)AM_MISSING_PROG(AMTAR, tar)AM_PROG_INSTALL_SHAM_PROG_INSTALL_STRIP# We need awk for the "check" target. The system "awk" is bad on# some platforms.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -