📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_PREREQ(2.13)AC_INIT(src/mgdemo.c)dnl ========================================================================dnl needed for cross-compilingAC_CANONICAL_SYSTEMdnl ========================================================================dnl Checks for programs.AC_PROG_MAKE_SETAC_PROG_CCAC_PROG_RANLIBAM_INIT_AUTOMAKE(mgdemo,1.6.0,-)dnl ========================================================================dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTdnl ========================================================================dnl Checks for header files.AC_HEADER_STDCAC_HEADER_SYS_WAITAC_HEADER_TIMEAC_CHECK_HEADERS(sys/time.h unistd.h)dnl ========================================================================dnl check for libminiguihave_libminigui="no"AC_CHECK_HEADERS(minigui/common.h, have_libminigui=yes, foo=bar)dnl ========================================================================dnl check for eCosecos="no"dnl AC_CHECK_DECLS(__ECOS__, ecos="yes", foo=bar)dnl check for lite or threads version of MiniGUIlite_version="no"AC_CHECK_DECLS(_LITE_VERSION, lite_version="yes", foo=bar, [#include <minigui/common.h>])dnl ========================================================================dnl check for StandAlone version of MiniGUI-Litestand_alone="no"AC_CHECK_DECLS(_STAND_ALONE, stand_alone="yes", foo=bar, [#include <minigui/common.h>])dnl ========================================================================dnl check for newgal or oldgal interface.use_newgal="yes"AC_CHECK_DECLS(_USE_NEWGAL, use_newgal="yes", foo=bar, [#include <minigui/common.h>])dnl ========================================================================dnl Write Outputif test "$ac_cv_prog_gcc" = "yes"; then CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -pipe"fiif test "x$ecos" = "xyes"; then LIBS="$LIBS -lminigui"else if test "x$lite_version" = "xyes"; then LIBS="$LIBS -lminigui -lc" else CFLAGS="$CFLAGS -D_REENTRANT" LIBS="$LIBS -lminigui -lpng -ljpeg -lpthread -lc" fifiAC_CHECK_DECLS(_HAVE_MATH_LIB, LIBS="$LIBS -lm", foo=bar, [#include <minigui/common.h>])AC_CHECK_DECLS(_PNG_FILE_SUPPORT, LIBS="$LIBS -lpng", foo=bar, [#include <minigui/common.h>])AC_CHECK_DECLS(_JPG_FILE_SUPPORT, LIBS="$LIBS -ljpeg", foo=bar, [#include <minigui/common.h>])AC_CHECK_DECLS(_TYPE1_SUPPORT, LIBS="$LIBS -lt1", foo=bar, [#include <minigui/common.h>])AC_CHECK_DECLS(_TTF_SUPPORT, LIBS="$LIBS -lttf", foo=bar, [#include <minigui/common.h>])AM_CONDITIONAL(LITE_VERSION, test "x$lite_version" = "xyes")AM_CONDITIONAL(STAND_ALONE, test "x$stand_alone" = "xyes")AM_CONDITIONAL(USE_NEWGAL, test "x$use_newgal" = "xyes")AC_OUTPUT(Makefilebuild/Makefilesrc/Makefilesrc/integrate/Makefilesrc/mgdillo/Makefilesrc/images/Makefilesrc/res/Makefile)if test "x$have_libminigui" != "xyes"; then AC_MSG_WARN([ MiniGUI is not properly installed on the system. You need MiniGUI Ver 1.6.1 or later for building this package. Please configure and install MiniGUI Ver 1.6.1 first. ])fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -