📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.dnl Initialization.AC_INIT(ibrowser.l)AC_PREREQ(2.12.2)AM_CONFIG_HEADER(config.h)AC_CONFIG_AUX_DIR(../../../..)AM_INIT_AUTOMAKE(sn,NG1)AM_MAINTAINER_MODE# The combination of Cygwin, autoconf 2.13. and cl from VC++# needs extra hand holding.case "${host}" in*windows32*) CC="cl" CPP="cl -nologo -E" CFLAGS="-Z7 -Od -MD -nologo" ac_cv_exeext=".exe" ;;esacAC_CANONICAL_HOSTAC_PROG_CCAC_PROG_CPPAC_EXEEXTAC_OBJEXTAC_PROG_AWKAC_PROG_RANLIB# A developer might want to regenerate files with flex and# bison, the flexgen and bisongen targets are used to do this.# We don't want to include these targets in a normal build# since we need to be able to build on systems that do not# have flex and bison installed.LEX="flex"LEXLIB="-lfl"YACC="bison -y"AC_SUBST(LEX)AC_SUBST(LEXLIB)AC_SUBST(YACC)CYG_AC_PATH_TCLCONFIGCYG_AC_LOAD_TCLCONFIGdnl Put a plausible default for CC_FOR_BUILD in Makefile. In thednl normal case, this will just set CC_FOR_BUILD to be CC. People whodnl are building with a cross compiler must know what they are doing.if test -z "$CC_FOR_BUILD"; then if test "$cross_compiling" = yes; then CC_FOR_BUILD=gcc else CC_FOR_BUILD='$(CC)' fifiAC_SUBST(CC_FOR_BUILD)AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)AC_SUBST(TCL_BUILD_LIB_SPEC)AC_SUBST(TCL_LIBS)dnl Random other stuffDB_LIBDIR='$(top_builddir)/../../../../db/PORT'AC_SUBST(DB_LIBDIR)DB_INCDIR='$(top_srcdir)/../../../../db/include'AC_SUBST(DB_INCDIR)AC_CHECK_HEADERS([unistd.h])# In the cygwin32 environment, we need some additional flags and# libraries.AC_CACHE_CHECK([for cygwin32], ide_cv_os_cygwin32,[AC_EGREP_CPP(lose, [#ifdef __CYGWIN32__lose#endif],[ide_cv_os_cygwin32=yes],[ide_cv_os_cygwin32=no])])AC_CACHE_CHECK([for Microsoft Visual C++], sn_cv_os_msvc,[AC_EGREP_CPP(coool, [#ifdef _MSC_VERcoool#endif],[sn_cv_os_msvc=yes],[sn_cv_os_msvc=no])])AC_CACHE_CHECK([for Mingw32], sn_cv_os_mingw32,[AC_EGREP_CPP(coool, [#ifdef __MINGW32__coool#endif],[sn_cv_os_mingw32=yes],[sn_cv_os_mingw32=no])])if test x$ide_cv_os_cygwin32 = xyes; then WINFLAGS="-D_WINDOWS=1 -DWIN32" WIN32LIBS="-lcomdlg32 -ladvapi32 -lshell32 -luser32 -lgdi32" WIN32LDAPP="-Wl,--subsystem,windows" SNCONFIGDIR="win" ac_win_build="yes"elif test x$sn_cv_os_msvc = xyes; then WINFLAGS="-D_WINDOWS=1 -DWIN32 -D__MSVC__ -DWINNT" WIN32LIBS="comdlg32.lib advapi32.lib shell32.lib user32.lib gdi32.lib" WIN32LDAPP="-subsystem:windows -entry:WinMainCRTStartup" SNCONFIGDIR="win" ac_win_build="yes"elif test x$sn_cv_os_mingw32 = xyes; then WINFLAGS="-D_WINDOWS=1 -DWIN32 -DWINNT" WIN32LIBS="-lcomdlg32 -ladvapi32 -lshell32 -luser32 -lgdi32" WIN32LDAPP="-Wl,--subsystem,windows" SNCONFIGDIR="win" ac_win_build="yes"else WINFLAGS= WIN32LIBS= WIN32LDAPP= SNCONFIGDIR="unix" ac_win_build="no"fiAC_SUBST(WINFLAGS)AC_SUBST(WIN32LIBS)AC_SUBST(WIN32LDAPP)AM_CONDITIONAL(WINDOWS, test x$ac_win_build = xyes)AM_CONDITIONAL(MSVC, test x$sn_cv_os_msvc = xyes)AC_OUTPUT([Makefile])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -