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

📄 configure.in

📁 Gambas is a graphical development environment based on a Basic interpreter, like Visual Basic. It us
💻 IN
字号:
dnl ---------------------------------dnldnl   configure.in for Gambasdnl   (c) Beno顃 Minisini 2000-2003dnldnl ---------------------------------dnl ---- InitializationAC_INIT(src/share/gambas.h)AM_MAINTAINER_MODEAC_CONFIG_SUBDIRS(libltdl)AM_CONFIG_HEADER(config.h)AM_INIT_AUTOMAKE(gambas, 0.82)AC_PREFIX_DEFAULT(/opt/gambas)AC_DISABLE_STATICAC_CANONICAL_HOSTdnl ---- Checks for programsAC_PROG_CCAC_PROG_CPPAC_PROG_CXXAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETdnl ---- Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h)dnl ---- Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_PID_TAC_TYPE_SIZE_TAC_HEADER_TIMEAC_STRUCT_TMdnl ---- Checks for library functions.AC_FUNC_ALLOCAAC_PROG_GCC_TRADITIONALAC_TYPE_SIGNALAC_FUNC_STRCOLLAC_FUNC_STRFTIMEAC_FUNC_VPRINTFAC_FUNC_WAIT3AC_CHECK_FUNCS(getcwd gettimeofday mkdir rmdir select socket strdup strerror strtod strtol)AC_REPLACE_FUNCS(setenv unsetenv)dnl ---- Support for libltdlAC_LIBTOOL_DLOPENAC_LIBLTDL_CONVENIENCEAC_PROG_LIBTOOLAC_SUBST(INCLTDL)AC_SUBST(LIBLTDL)LD_FLAGS=-no-undefinedAC_SUBST(LD_FLAGS)dnl ---- Checks for librariesAC_CHECK_LIB(m, main, echo -n)AC_CHECK_LIB(z, main, echo -n)C_LIB=-lcAC_SUBST(C_LIB)AC_CHECK_LIB(gcc_s, main, CXX_LIB="$CXX_LIB -lgcc_s")AC_CHECK_LIB(stdc++, main, CXX_LIB="$CXX_LIB -lstdc++")AC_SUBST(CXX_LIB)dnl ---- Check for shared library extensionGB_SHARED_LIBRARY_EXT()dnl ---- Check for threadingGB_THREAD()dnl ---- Check for internationalization libraryGB_COMPONENT(  intl,  INTL,  [internationalization library (if not present in C library)],  [GB_FIND(libintl.h, /usr /usr/local, include)],  [GB_FIND(libintl.$SHLIBEXT, /usr /usr/local, lib)],  [-lintl])dnl ---- Check for charset conversion libraryGB_COMPONENT(  conv,  CONV,  [charset conversion library (if not present in C library)],  [GB_FIND(iconv.h, /usr /usr/local, include)],  [GB_FIND(libiconv.$SHLIBEXT, /usr /usr/local, lib)],  [-liconv])dnl ---- Checks for componentsGB_COMPONENT(  qt,  QT,  [QT component],  [GB_FIND(qptrlist.h, /usr /usr/lib /usr/local /usr/X11 /usr/X11R6, include qt*/include qt/*/include)],  [GB_FIND(libqt-mt.$SHLIBEXT, /usr /usr/local /usr/qt /usr/qt/* /usr/X11 /usr/X11R6, lib, libqt-mt.so.3)],  [$CXX_LIB $THREAD_LIB $X_LIBS -lqt-mt],  [$THREAD_INC])if test "$have_qt"="yes"; then  AC_PATH_X  AC_PATH_XTRA  AC_CHECK_LIB(X11, XOpenDisplay, echo -n,    AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]),    $X_LIBS)  AC_CHECK_LIB(Xext, XShmAttach, echo -n,    AC_MSG_ERROR([*** libXext not found. Check 'config.log' for more details.]),    $X_LIBS)  dnl AC_MSG_CHECKING(for QT meta-object compiler)  AC_PATH_QT_MOC($QT_PATH)  GB_COMPONENT(    kde,    KDE,    [KDE 3.x component],    [GB_FIND(kapplication.h, `kde-config --prefix 2> /dev/null`, include)],    [GB_FIND(libkdecore.$SHLIBEXT, `kde-config --prefix 2> /dev/null`, lib)],    [-lkdecore -lkdeui -lDCOP -lkio])fidnl ---- Networking componentGB_COMPONENT(  net,  NET,  [Networking component],  [],  [],  [$C_LIB $THREAD_LIB],  [$THREAD_INC])dnl ---- Advanced Network componentGB_COMPONENT(  advanced_net,  ADVANCED_NET,  [Advanced Network component],  [GB_FIND(curl.h, `curl-config --prefix 2> /dev/null`, include)],  [GB_FIND(libcurl.$SHLIBEXT, `curl-config --prefix 2> /dev/null`, lib)],  [$C_LIB `curl-config --libs 2> /dev/null`],  [$C_LIB])dnl ---- Database componentsGB_COMPONENT(  postgresql,  PGSQL,  [PostgreSQL driver],  [GB_FIND(libpq-fe.h postgres.h pg_type.h, /usr /usr/lib /usr/local /opt, include/pgsql* pgsql*/include include)],  [GB_FIND(libpq.$SHLIBEXT, /usr /usr/local /opt, lib pgsql*/lib)],  [$C_LIB -lpq])GB_COMPONENT(  mysql,  MYSQL,  [MySQL driver],  [GB_FIND(mysql.h my_config.h, /usr /usr/lib /usr/local /opt, include mysql*/include)],  [GB_FIND(libmysqlclient.$SHLIBEXT, /usr /usr/local /opt, lib mysql*/lib)],  [$C_LIB -lmysqlclient -lz])dnl ---- SDL component needs: libvorbisfile.la libsmpeg.la libogg.laGB_COMPONENT(  sdl,  SDL,  [SDL component],  [GB_FIND(SDL.h SDL_mixer.h, /usr, include SDL*/include)],  [GB_FIND(libSDL.$SHLIBEXT libSDL_mixer.$SHLIBEXT, /usr, lib SDL*/lib)],  [$C_LIB $THREAD_LIB -lSDL -lSDL_mixer],  [$THREAD_INC])dnl ---- VB componentGB_COMPONENT(  vb,  VB,  [Visual Basic compatibility component],  [],  [],  [$C_LIB $THREAD_LIB],  [$THREAD_INC])dnl ---- Other optionsAC_ARG_ENABLE(  debug,  [  --enable-debug                 compile for debugging (default: yes)],  gambas_debug=$enableval,  gambas_debug=yes)AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes)AC_ARG_ENABLE(  optimization,  [  --enable-optimization          compile with optimizations (default: no)],  gambas_optimization=$enableval,  gambas_optimization=no)AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes)AC_ARG_ENABLE(  profiling,  [  --enable-profiling             compile with profiling (default: no)],  gambas_prof=$enableval,  gambas_prof=no)AC_ARG_ENABLE(  preloading,  [  --enable-preloading            enable preloading (default: yes)],  gambas_preloading=$enableval,  gambas_preloading=yes)if test "$gambas_preloading" = "yes"; then  AC_DEFINE(DO_PRELOADING, 1, allows shared library preloading )fiCFLAGS="$CFLAGS -pipe -Wall"CXXFLAGS="$CXXFLAGS -pipe -Wall -fno-exceptions"if test "$gambas_prof" = "yes"; then  CFLAGS="$CFLAGS -pg"  CXXFLAGS="$CXXFLAGS -pg"#  if test "$gambas_optimization" = "yes"; then#    echo -e "\n**** Warning: --enable-profiling implies --disable-optimization\n"#    gambas_optimization="no";#  fifiif test "$gambas_debug" = "yes"; then  CFLAGS="$CFLAGS -g"  CXXFLAGS="$CXXFLAGS -g"fi# gambas_flag="-O2 -fstrength-reduce -frerun-loop-opt -fexpensive-optimizations -fschedule-insns2 -funroll-loops"# gambas_flags="$gambas_flags -fno-strict-aliasing -falign-loops=2 -falign-jumps=2"# gambas_flags="$gambas_flags -falign-functions=2 -ffast-math"if test "$gambas_prof" = "no"; then  gambas_flags="$gambas_flags -fomit-frame-pointer"fiif test "x$gambas_optimization" = "xyes"; then  CFLAGS="$CFLAGS -Os"  CXXFLAGS="$CXXFLAGS -Os"else  CFLAGS="$CFLAGS -O0"  CXXFLAGS="$CXXFLAGS -O0"fidnl ---- Create makefilesAC_OUTPUT( \Makefile \src/Makefile \src/share/Makefile \src/comp/Makefile \src/exec/Makefile \src/lib/Makefile \src/lib/eval/Makefile \src/lib/example/Makefile \src/lib/qt/Makefile \src/lib/qt/editor/Makefile \src/lib/qt/ext/Makefile \src/lib/qt/kde/Makefile \src/lib/db/Makefile \src/lib/db/mysql/Makefile \src/lib/db/postgresql/Makefile \src/lib/sdl/Makefile \src/lib/net/Makefile \src/lib/net/advanced/Makefile \src/lib/vb/Makefile \)

⌨️ 快捷键说明

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