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

📄 aclocal.m4

📁 3Ds 桌子 可以用软件调用
💻 M4
📖 第 1 页 / 共 2 页
字号:
  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")  ;;*)  AC_CHECK_LIB(m, main, LIBM="-lm")  ;;esac])# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for# the libltdl convenience library and INCLTDL to the include flags for# the libltdl header and adds --enable-ltdl-convenience to the# configure arguments.  Note that LIBLTDL and INCLTDL are not# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed# with '${top_builddir}/' and INCLTDL will be prefixed with# '${top_srcdir}/' (note the single quotes!).  If your package is not# flat and you're not using automake, define top_builddir and# top_srcdir appropriately in the Makefiles.AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  case "$enable_ltdl_convenience" in  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;  "") enable_ltdl_convenience=yes      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;  esac  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])])# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for# the libltdl installable library and INCLTDL to the include flags for# the libltdl header and adds --enable-ltdl-install to the configure# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed# with '${top_srcdir}/' (note the single quotes!).  If your package is# not flat and you're not using automake, define top_builddir and# top_srcdir appropriately in the Makefiles.# In the future, this macro may have to be called after AC_PROG_LIBTOOL.AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  AC_CHECK_LIB(ltdl, main,  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],  [if test x"$enable_ltdl_install" = xno; then     AC_MSG_WARN([libltdl not installed, but installation disabled])   else     enable_ltdl_install=yes   fi  ])  if test x"$enable_ltdl_install" = x"yes"; then    ac_configure_args="$ac_configure_args --enable-ltdl-install"    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])  else    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"    LIBLTDL="-lltdl"    INCLTDL=  fi])dnl old namesAC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnlAC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnlAC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnlAC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnlAC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnlAC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnlAC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnldnl This is just to silence aclocal about the macro not being usedifelse([AC_DISABLE_FAST_INSTALL])dnldnldnl AM_PATH_LIB3DS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnlAC_DEFUN(AM_PATH_LIB3DS,[AC_ARG_WITH(lib3ds-prefix,[  --with-lib3ds-prefix=PFX   Prefix where lib3ds is installed (optional)],            lib3ds_config_prefix="$withval", lib3ds_config_prefix="")AC_ARG_WITH(lib3ds-exec-prefix,[  --with-lib3ds-exec-prefix=PFX  Exec prefix where lib3ds is installed (optional)],            lib3ds_config_exec_prefix="$withval", lib3ds_config_exec_prefix="")  if test x$lib3ds_config_exec_prefix != x ; then     lib3ds_config_args="$lib3ds_config_args --exec-prefix=$lib3ds_config_exec_prefix"     if test x${LIB3DS_CONFIG+set} != xset ; then        LIB3DS_CONFIG=$lib3ds_config_exec_prefix/bin/lib3ds-config     fi  fi  if test x$lib3ds_config_prefix != x ; then     lib3ds_config_args="$lib3ds_config_args --prefix=$lib3ds_config_prefix"     if test x${LIB3DS_CONFIG+set} != xset ; then        LIB3DS_CONFIG=$lib3ds_config_prefix/bin/lib3ds-config     fi  fi  AC_PATH_PROG(LIB3DS_CONFIG, lib3ds-config, no)  lib3ds_version_min=$1  AC_MSG_CHECKING(for Lib3ds - version >= $lib3ds_version_min)  no_lib3ds=""  if test "$LIB3DS_CONFIG" = "no" ; then    no_lib3ds=yes  else    LIB3DS_CFLAGS=`$LIB3DS_CONFIG --cflags`    LIB3DS_LIBS=`$LIB3DS_CONFIG --libs`    lib3ds_version=`$LIB3DS_CONFIG --version`    lib3ds_major_version=`echo $lib3ds_version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`    lib3ds_minor_version=`echo $lib3ds_version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`    lib3ds_micro_version=`echo $lib3ds_version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`    lib3ds_major_min=`echo $lib3ds_version_min | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`    lib3ds_minor_min=`echo $lib3ds_version_min | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`    lib3ds_micro_min=`echo $lib3ds_version_min | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`    lib3ds_version_proper=`expr \        $lib3ds_major_version \> $lib3ds_major_min \| \        $lib3ds_major_version \= $lib3ds_major_min \& \        $lib3ds_minor_version \> $lib3ds_minor_min \| \        $lib3ds_major_version \= $lib3ds_major_min \& \        $lib3ds_minor_version \= $lib3ds_minor_min \& \        $lib3ds_micro_version \>= $lib3ds_micro_min `    if test "$lib3ds_version_proper" = "1" ; then      AC_MSG_RESULT([$lib3ds_major_version.$lib3ds_minor_version.$lib3ds_micro_version])    else      AC_MSG_RESULT(no)      no_lib3ds=yes    fi  fi  if test "x$no_lib3ds" = x ; then     ifelse([$2], , :, [$2])       else     LIB3DS_CFLAGS=""     LIB3DS_LIBS=""     ifelse([$3], , :, [$3])  fi  AC_SUBST(LIB3DS_CFLAGS)  AC_SUBST(LIB3DS_LIBS)])dnldnl CONFIGURE_X11([[ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnl \author J.E. Hoffmann <je-h@gmx.net>dnlAC_DEFUN(CONFIGURE_X11,[  x11_error="no"  X11_CFLAGS=""  X11_LIBS=""  AC_LANG_SAVE  AC_LANG_C  AC_PATH_XTRA  X11_CFLAGS="$X_CFLAGS"  X11_LIBS="$X_LIBS"  if test -n "$X_PRE_LIBS"; then    X11_LIBS="$X_PRE_LIBS $X11_LIBS"  fi  if test -n "$X_EXTRA_LIBS"; then    X11_LIBS="$X_EXTRA_LIBS $X11_LIBS"  fi  X11_LIBS="$X11_LIBS -lXmu -lX11"  AC_MSG_CHECKING(for X)  if test "$no_x" = "yes"; then    AC_MSG_RESULT(failed)    x11_error="yes"  else    AC_MSG_RESULT(ok)  fi  AC_LANG_RESTORE  if test "$x11_error" = "no"; then     ifelse([$1], , :, [$1])       else     ifelse([$2], , :, [$2])  fi  AC_SUBST(X11_CFLAGS)  AC_SUBST(X11_LIBS)])## CONFIGURE_OPENGL([ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]])#AC_DEFUN(CONFIGURE_OPENGL,[  GL_CFLAGS=""  GL_LIBS=""  gl_includes="/usr/X11R6/include"   gl_libraries="/usr/X11R6/lib"   AC_ARG_WITH(gl-prefix,        [  --with-gl-prefix=PFX     Prefix where OpenGL or Mesa is installed],    [      gl_includes="$withval/include"      gl_libraries="$withval/lib"    ])  AC_ARG_WITH(gl-includes,        [  --with-gl-includes=DIR   where the OpenGL or Mesa includes are installed],    [      gl_includes="$withval"    ])  AC_ARG_WITH(gl-libraries,        [  --with-gl-libraries=DIR  where the OpenGL or Mesa libraries are installed],    [      gl_libraries="$withval"    ])  GL_CFLAGS="-I$gl_includes"  GL_LIBS="-L$gl_libraries"  saved_CFLAGS="$CFLAGS"  saved_LIBS="$LIBS"  AC_LANG_SAVE  AC_LANG_C  have_GL=no  # test for standard OpenGL  if test "$have_GL" = no; then    AC_MSG_CHECKING([GL])    CFLAGS="$saved_CFLAGS $GL_CFLAGS $X11_CFLAGS"    LIBS="$saved_LIBS -lGLU -lGL $X11_LIBS"    AC_TRY_LINK(,[ char glBegin(); glBegin(); ], have_GL=yes, have_GL=no)    AC_MSG_RESULT($have_GL)    if test "$have_GL" = yes; then      GL_LIBS="-lGL -lGLU"    fi  fi  # test for Mesa without threads  if test "$have_GL" = no; then    AC_MSG_CHECKING([Mesa])    CFLAGS="$saved_CFLAGS $GL_CFLAGS $X11_CFLAGS"    LIBS="$saved_LIBS -lMesaGLU -lMesaGL $X11_LIBS"    AC_TRY_LINK(,[ char glBegin(); glBegin(); ], have_GL=yes, have_GL=no)    AC_MSG_RESULT($have_GL)    if test "$have_GL" = yes; then      GL_LIBS="-lMesaGLU -lMesaGL"    fi  fi  # test for Mesa with threads  if test "$have_GL" = no; then    AC_MSG_CHECKING([Mesa with pthreads])    CFLAGS="$saved_CFLAGS $GL_CFLAGS $X11_CFLAGS"    LIBS="$saved_LIBS -lMesaGLU -lMesaGL -lpthread $X11_LIBS"    AC_TRY_LINK(,[ char glBegin(); glBegin(); ], have_GL=yes, have_GL=no)    AC_MSG_RESULT($have_GL)    if test "$have_GL" = yes; then      GL_LIBS="-lMesaGLU -lMesaGL -lpthread"    fi  fi  LIBS="$saved_LIBS"  CFLAGS="$saved_CFLAGS"  AC_LANG_RESTORE  if test "$have_GL" = "yes"; then     ifelse([$1], , :, [$1])       else     GL_CFLAGS=""     GL_LIBS=""     ifelse([$2], , :, [$2])  fi  AC_SUBST(GL_CFLAGS)  AC_SUBST(GL_LIBS)])dnldnl CONFIGURE_QT([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnl \author J.E. Hoffmann <je-h@gmx.net>dnlAC_DEFUN(CONFIGURE_QT,[  qt_error="no"  QT_CFLAGS=""  QT_LIBS=""  MOC="moc"  UIC="uic"  qt_includes="/usr/include/qt"   qt_libraries=""   qt_binaries=""  if test "$qt_error" = "no"; then    AC_MSG_CHECKING([for QT environment variable QTDIR])    if test -z "$QTDIR"; then      AC_MSG_RESULT(no)    else      AC_MSG_RESULT(yes)      qt_includes="$QTDIR/include"       qt_libraries="$QTDIR/lib"       qt_binaries="$QTDIR/bin"      MOC="$qt_binaries/moc";      UIC="$qt_binaries/uic";    fi  fi  AC_ARG_WITH(qt-prefix,    [  --with-qt-prefix=PFX    where the root of Qt is installed ],    [        qt_includes="$withval/include"      qt_libraries="$withval/lib"      qt_binaries="$withval/bin"      MOC="$qt_binaries/moc";      UIC="$qt_binaries/uic";    ])  AC_ARG_WITH(qt-includes,    [  --with-qt-includes=DIR  where the Qt includes are installed ],    [      qt_includes="$withval"    ])  AC_ARG_WITH(qt-libraries,    [  --with-qt-libraries=DIR where the Qt libraries are installed.],    [        qt_libraries="$withval"    ])  AC_ARG_WITH(qt-binaries,    [  --with-qt-binaries=DIR  where the Qt binaries are installed.],    [        qt_binaries="$withval"      MOC="$qt_binaries/moc";      UIC="$qt_binaries/uic";    ])  AC_ARG_WITH(qt-moc,    [  --with-qt-moc=PROG      where the Qt meta object compiler is installed.],    [        MOC="$withval"    ])  AC_ARG_WITH(qt-uic,    [  --with-qt-uic=PROG      where the Qt user interface compiler is installed.],    [        UIC="$withval"    ])  if test "$qt_error" = "no"; then    saved_CPPFLAGS="$CPPFLAGS"    saved_LIBS="$LIBS"    CPPFLAGS="$saved_CPPFLAGS -I$qt_includes"    if test -n "$qt_libraries"; then      LIBS="$saved_LIBS -L$qt_libraries -lqt"    else      LIBS="$saved_LIBS -lqt -lm $X11_LIBS"    fi    AC_MSG_CHECKING([for QT includes ($qt_includes)])    AC_CACHE_VAL(qt_includes_found,    [      AC_TRY_CPP([#include <qapplication.h>],qt_includes_found=yes,        qt_includes_found=no)      if test "$qt_includes_found" = "yes"; then        QT_CFLAGS="-I$qt_includes"        AC_MSG_RESULT(yes)      else        qt_error=yes        AC_MSG_RESULT(no)      fi    ])    AC_MSG_CHECKING([for QT libraries ($qt_libraries)])    AC_CACHE_VAL(qt_libraries_found,    [      AC_LANG_SAVE      AC_LANG_CPLUSPLUS      AC_TRY_LINK(dnl        [#include <qapplication.h>], [int i; QApplication myapp(i,0)],        qt_libraries_found=yes,        qt_libraries_found=no)      if test "$qt_libraries_found" = "yes"; then        if test -n "$qt_libraries"; then          QT_LIBS="-L$qt_libraries -lqt -lm $X11_LIBS";        else          QT_LIBS="-lqt -lm $X11_LIBS";        fi        AC_MSG_RESULT(yes)      else        qt_error=yes        AC_MSG_RESULT(no)      fi      AC_LANG_RESTORE    ])dnl        AC_MSG_CHECKING([for QT moc ($MOC)])    output=`eval "$MOC --help 2>&1 | sed -e '1q' | grep Qt"`    if test -z "$output"; then      AC_MSG_RESULT(no)      $qt_error="yes"    else      AC_MSG_RESULT(yes)    fi    AC_MSG_CHECKING([for QT uic ($UIC)])    output=`eval "$UIC --help 2>&1 | sed -e '1q' | grep Qt"`    if test -z "$output"; then      AC_MSG_RESULT(no)      $qt_error="yes"    else      AC_MSG_RESULT(yes)    fi    CPPFLAGS="$saved_CPPFLAGS"    LIBS="$saved_LIBS"  fi  if test "$qt_error" = "no"; then    AC_MSG_CHECKING([for QT version >= $1])    qt_major_version=`echo $1 | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`    qt_minor_version=`echo $1 | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`    qt_micro_version=`echo $1 | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`    qt_version="$qt_major_version$qt_minor_version$qt_micro_version"    AC_LANG_SAVE    AC_LANG_CPLUSPLUS    saved_CXXFLAGS="$CXXFLAGS"    saved_LIBS="$LIBS"    CXXFLAGS="$QT_CFLAGS $LIBS"    LIBS="$QT_LIBS $LIBS"    AC_TRY_RUN([        #include <qglobal.h>        int main()        {          if (QT_VERSION < $qt_version) return(1);          return(0);        }      ],[        AC_MSG_RESULT(yes)      ],[        AC_MSG_RESULT(no)        qt_error="yes"       ],       AC_MSG_ERROR([cross compiling unsupported])    )    LIBS="$saved_LIBS"    CXXFLAGS="$saved_CXXFLAGS"    AC_LANG_RESTORE  fi  AC_SUBST(QT_CFLAGS)  AC_SUBST(QT_LIBS)  AC_SUBST(MOC)  AC_SUBST(UIC)  if test "$qt_error" = "no"; then     ifelse([$2], , :, [$2])       else     ifelse([$3], , :, [$3])  fi])

⌨️ 快捷键说明

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