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

📄 acinclude.m4

📁 奇趣公司比较新的qt/emd版本
💻 M4
📖 第 1 页 / 共 2 页
字号:
dnl ---------------------------------------------------------------------------dnl Message outputdnl ---------------------------------------------------------------------------AC_DEFUN([LOC_MSG],[echo "$1"])dnl ---------------------------------------------------------------------------dnl Available from the GNU Autoconf Macro Archive at:dnl http://www.gnu.org/software/ac-archive/vl_prog_cc_warnings.htmldnl ---------------------------------------------------------------------------dnl @synopsis VL_PROG_CC_WARNINGS([ANSI])dnldnl Enables a reasonable set of warnings for the C compiler.dnl Optionally, if the first argument is nonempty, turns on flags whichdnl enforce and/or enable proper ANSI C if such are known with thednl compiler used.dnldnl Currently this macro knows about GCC, Solaris C compiler, Digitaldnl Unix C compiler, C for AIX Compiler, HP-UX C compiler, IRIX Cdnl compiler, NEC SX-5 (Super-UX 10) C compiler, and Cray J90 (Unicosdnl 10.0.0.8) C compiler.dnldnl @category Cdnl @author Ville Laurikari <vl@iki.fi>dnl @version 2002-04-04dnl @license AllPermissiveAC_DEFUN([VL_PROG_CC_WARNINGS], [  ansi=$1  if test -z "$ansi"; then    msg="for C compiler warning flags"  else    msg="for C compiler warning and ANSI conformance flags"  fi  AC_CACHE_CHECK($msg, vl_cv_prog_cc_warnings, [    if test -n "$CC"; then      cat > conftest.c <<EOFint main(int argc, char **argv) { return 0; }EOF      dnl GCC. -W option has been renamed in -wextra in latest gcc versions.      if test "$GCC" = "yes"; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-Wall -W"        else          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"        fi      dnl Most compilers print some kind of a version string with some command      dnl line options (often "-V").  The version string should be checked      dnl before doing a test compilation run with compiler-specific flags.      dnl This is because some compilers (like the Cray compiler) only      dnl produce a warning message for unknown flags instead of returning      dnl an error, resulting in a false positive.  Also, compilers may do      dnl erratic things when invoked with flags meant for a different      dnl compiler.      dnl Solaris C compiler      elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-v"        else          vl_cv_prog_cc_warnings="-v -Xc"        fi      dnl Digital Unix C compiler      elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"        else          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"        fi      dnl C for AIX Compiler      elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"        else          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"        fi      dnl IRIX C compiler      elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-fullwarn"        else          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"        fi      dnl HP-UX C compiler      elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="+w1"        else          vl_cv_prog_cc_warnings="+w1 -Aa"        fi      dnl The NEC SX-5 (Super-UX 10) C compiler      elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&           $CC -c -pvctl[,]fullmsg -Xc conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-pvctl[,]fullmsg"        else          vl_cv_prog_cc_warnings="-pvctl[,]fullmsg -Xc"        fi      dnl The Cray C compiler (Unicos)      elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&           test -f conftest.o; then        if test -z "$ansi"; then          vl_cv_prog_cc_warnings="-h msglevel 2"        else          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"        fi      fi      rm -f conftest.*    fi    if test -n "$vl_cv_prog_cc_warnings"; then      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"    else      vl_cv_prog_cc_warnings="unknown"    fi  ])])dnldnl ---------------------------------------------------------------------------dnl Available from the GNU Autoconf Macro Archive at:dnl http://autoconf-archive.cryp.to/ax_lang_compiler_ms.htmldnl ---------------------------------------------------------------------------dnl @synopsis AX_LANG_COMPILER_MSdnldnl Check whether the compiler for the current language is Microsoft.dnldnl This macro is modeled after _AC_LANG_COMPILER_GNU in the GNUdnl Autoconf implementation.dnldnl @category InstalledPackagesdnl @author Braden McDaniel <braden@endoframe.com>dnl @version 2004-11-15dnl @license AllPermissiveAC_DEFUN([AX_LANG_COMPILER_MS],[AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],                [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER       choke me#endif]])],                   [ax_compiler_ms=yes],                   [ax_compiler_ms=no])ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms])])dnl ---------------------------------------------------------------------------dnl Available from the GNU Autoconf Macro Archive at:dnl http://www.gnu.org/software/ac-archive/ax_check_gl.htmldnl ---------------------------------------------------------------------------dnl @synopsis AX_CHECK_GLdnldnl Check for an OpenGL implementation. If GL is found, the requireddnl compiler and linker flags are included in the output variablesdnl "GL_CFLAGS" and "GL_LIBS", respectively. This macro adds thednl configure option "--with-apple-opengl-framework", which users candnl use to indicate that Apple's OpenGL framework should be used on Macdnl OS X. If Apple's OpenGL framework is used, the symboldnl "HAVE_APPLE_OPENGL_FRAMEWORK" is defined. If no GL implementationdnl is found, "no_gl" is set to "yes".dnldnl @category InstalledPackagesdnl @author Braden McDaniel <braden@endoframe.com>dnl @version 2004-11-15dnl @license AllPermissiveAC_DEFUN([AX_CHECK_GL],[AC_REQUIRE([AC_PATH_X])dnlAC_REQUIRE([ACX_PTHREAD])dnl## There isn't a reliable way to know we should use the Apple OpenGL framework# without a configure option.  A Mac OS X user may have installed an# alternative GL implementation (e.g., Mesa), which may or may not depend on X.#AC_ARG_WITH([apple-opengl-framework],            [AC_HELP_STRING([--with-apple-opengl-framework],                            [use Apple OpenGL framework (Mac OS X only)])])if test "X$with_apple_opengl_framework" = "Xyes"; then  AC_DEFINE([HAVE_APPLE_OPENGL_FRAMEWORK], [1],            [Use the Apple OpenGL framework.])  GL_LIBS="-framework OpenGL"else  AC_LANG_PUSH(C)  AX_LANG_COMPILER_MS  if test X$ax_compiler_ms = Xno; then    GL_CFLAGS="${PTHREAD_CFLAGS}"    GL_LIBS="${PTHREAD_LIBS} -lm"  fi  #  # Use x_includes and x_libraries if they have been set (presumably by  # AC_PATH_X).  #  if test "X$no_x" != "Xyes"; then    if test -n "$x_includes"; then      GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"    fi    if test -n "$x_libraries"; then      GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"    fi  fi  AC_CHECK_HEADERS([windows.h])  AC_CACHE_CHECK([for OpenGL library], [ax_cv_check_gl_libgl],  [ax_cv_check_gl_libgl="no"  ax_save_CPPFLAGS="${CPPFLAGS}"  CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"  ax_save_LIBS="${LIBS}"  LIBS=""  ax_check_libs="-lopengl32 -lGL"  for ax_lib in ${ax_check_libs}; do    if test X$ax_compiler_ms = Xyes; then      ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`    else      ax_try_lib="${ax_lib}"    fi    LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"    AC_LINK_IFELSE(    [AC_LANG_PROGRAM([[# if HAVE_WINDOWS_H && defined(_WIN32)#   include <windows.h># endif# include <GL/gl.h>]],                     [[glBegin(0)]])],    [ax_cv_check_gl_libgl="${ax_try_lib}"; break])  done  LIBS=${ax_save_LIBS}  CPPFLAGS=${ax_save_CPPFLAGS}])  if test "X${ax_cv_check_gl_libgl}" = "Xno"; then    no_gl="yes"    GL_CFLAGS=""    GL_LIBS=""  else    GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"  fi  AC_LANG_POP(C)fiAC_SUBST([GL_CFLAGS])AC_SUBST([GL_LIBS])])dnldnl ---------------------------------------------------------------------------dnl Available from the GNU Autoconf Macro Archive at:dnl http://www.gnu.org/software/ac-archive/ax_check_glu.htmldnl ---------------------------------------------------------------------------dnl @synopsis AX_CHECK_GLUdnldnl Check for GLU. If GLU is found, the required preprocessor anddnl linker flags are included in the output variables "GLU_CFLAGS" anddnl "GLU_LIBS", respectively. This macro adds the configure optiondnl "--with-apple-opengl-framework", which users can use to indicatednl that Apple's OpenGL framework should be used on Mac OS X. Ifdnl Apple's OpenGL framework is used, the symboldnl "HAVE_APPLE_OPENGL_FRAMEWORK" is defined. If no GLU implementationdnl is found, "no_glu" is set to "yes".dnldnl @category InstalledPackagesdnl @author Braden McDaniel <braden@endoframe.com>dnl @version 2004-11-15dnl @license AllPermissiveAC_DEFUN([AX_CHECK_GLU],[AC_REQUIRE([AX_CHECK_GL])dnlAC_REQUIRE([AC_PROG_CXX])dnlGLU_CFLAGS="${GL_CFLAGS}"if test "X${with_apple_opengl_framework}" != "Xyes"; then  AC_CACHE_CHECK([for OpenGL Utility library], [ax_cv_check_glu_libglu],  [ax_cv_check_glu_libglu="no"  ax_save_CPPFLAGS="${CPPFLAGS}"  CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"  ax_save_LIBS="${LIBS}"  LIBS=""  ax_check_libs="-lglu32 -lGLU"  for ax_lib in ${ax_check_libs}; do    if test X$ax_compiler_ms = Xyes; then      ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`    else      ax_try_lib="${ax_lib}"    fi    LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"    #    # libGLU typically links with libstdc++ on POSIX platforms. However,    # setting the language to C++ means that test program source is named    # "conftest.cc"; and Microsoft cl doesn't know what to do with such a    # file.    #    AC_LANG_PUSH([C++])    if test X$ax_compiler_ms = Xyes; then      AC_LANG_PUSH([C])    fi    AC_LINK_IFELSE(    [AC_LANG_PROGRAM([[# if HAVE_WINDOWS_H && defined(_WIN32)#   include <windows.h># endif# include <GL/glu.h>]],                     [[gluBeginCurve(0)]])],    [ax_cv_check_glu_libglu="${ax_try_lib}"; break])    if test X$ax_compiler_ms = Xyes; then      AC_LANG_POP([C])    fi    AC_LANG_POP([C++])  done  LIBS=${ax_save_LIBS}  CPPFLAGS=${ax_save_CPPFLAGS}])  if test "X${ax_cv_check_glu_libglu}" = "Xno"; then    no_glu="yes"

⌨️ 快捷键说明

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