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

📄 configure.in

📁 嵌入式浏览器Dillo源码
💻 IN
字号:
dnl Process this file with aclocal, autoconf and automake.AC_INIT(src/dillo.c)AM_INIT_AUTOMAKE(dillo, 0.6.6)AM_CONFIG_HEADER(config.h)CPPFLAGS="$CPPFLAGS -I/usr/local/include"LDFLAGS="$LDFLAGS -L/usr/local/lib"dnl OptionsAC_ARG_WITH(jpeg-lib, [  --with-jpeg-lib=DIR     Specify where to find libjpeg], LIBJPEG_LIBDIR=$withval)AC_ARG_WITH(jpeg-inc, [  --with-jpeg-inc=DIR     Specify where to find libjpeg's headers], LIBJPEG_INCDIR=$withval)AC_ARG_ENABLE(efence, [  --enable-efence         Try to compile and run with Electric Fence],                    , enable_fence=no)AC_ARG_ENABLE(gprof,  [  --enable-gprof          Try to compile and run with profiling enabled],                    , enable_gprof=no)AC_ARG_ENABLE(insure, [  --enable-insure         Try to compile and run with Insure++],                    , enable_insure=no)AC_ARG_ENABLE(ansi,   [  --enable-ansi           Try to compile and run with ANSI flags],                    , enable_ansi=no)AC_ARG_ENABLE(cookies,[  --enable-cookies        Build with support for cookies], , )AC_PROG_CCAM_PROG_CC_STDCAC_PROG_RANLIBdnl Check for Gtk+ (it checks glib too)if test -z "$GTK_CONFIG"; then  GTK_CONFIG=`which gtk-config || which gtk12-config`fiAM_PATH_GTK(1.2.0, [LIBS="$LIBS $GTK_LIBS" CFLAGS="$GTK_CFLAGS $CFLAGS"],AC_MSG_WARN(Unable to find Gtk+ with a version >= 1.2.0))dnl Check for compiler optionsif eval "test x$GCC = xyes"; then  if test "`echo $CFLAGS | grep '\-Wall' 2> /dev/null`" = ""; then    CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE -Wall -Waggregate-return"  fi  if eval "test x$enable_ansi = xyes"; then    if test "`echo $CFLAGS | grep '\-ansi' 2> /dev/null`" = ""; then      CFLAGS="$CFLAGS -ansi"    fi    if test "`echo $CFLAGS | grep '\-pedantic' 2> /dev/null`" = ""; then      CFLAGS="$CFLAGS -pedantic"    fi  fifi dnl Test for libjpegif test -n "$LIBJPEG_LIBDIR"; then  LIBS="$LIBS -L$LIBJPEG_LIBDIR"fi  AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, jpeg_ok=yes, jpeg_ok=no)if test "x$jpeg_ok" = "xyes"; then  if test -n "$LIBJPEG_INCDIR"; then    CPPFLAGS="$CPPFLAGS -I$LIBJPEG_INCDIR"  fi  AC_CHECK_HEADERS(jpeglib.h jconfig.h jerror.h jmorecfg.h,    jpeg_ok=yes, jpeg_ok=no)  if test "x$jpeg_ok" = "xyes"; then    JPEG='jpeg'; LIBJPEG_LIB='-ljpeg'  fifiif test "x$jpeg_ok" = "xno"; then  AC_MSG_WARN(*** JPEG support will not be included ***)fidnl Test for POSIX threadssystem=`uname -s`case $system in  Linux|SunOS)    AC_CHECK_LIB(pthread, pthread_create)    ;;  OSF1)    AC_MSG_CHECKING(whether pthreads work)    LDFLAGS="$LDFLAGS -lpthread -lexc -ldb"    AC_MSG_WARN(*** _Untested pthreads_ try setting LDFLAGS manually if it doesn't work ***)    ;;  *)    AC_MSG_CHECKING(whether threads work with -pthread)    LDSAVEFLAGS=$LDFLAGS    LDFLAGS="$LDFLAGS -pthread"    AC_TRY_LINK_FUNC(pthread_create, pthread_ok=yes, pthread_ok=no)    if test "x$pthread_ok" = "xyes"; then      AC_MSG_RESULT(yes)    else      AC_MSG_RESULT(no. Now we will try some libraries.)      LDFLAGS=$LDSAVEFLAGS      AC_SEARCH_LIBS(pthread_create, pthread c_r, thread_ok="yes", thread_ok="no")      if test "x$thread_ok" = "xno"; then        AC_MSG_WARN(*** No pthreads found. ***)        AC_MSG_ERROR(*** Try setting LIBS or LDFLAGS manually to point to your pthreads library. ***)        exit 1      else        AC_MSG_WARN(found a way to link threads, but it may not work...)      fi    fi    ;;esacAC_CHECK_LIB(z, zlibVersion)AC_CHECK_LIB(png, png_check_sig)if test "x$enable_cookies" = "xno" ; then  CFLAGS="$CFLAGS -DDISABLE_COOKIES"fi#dnl Testif test "x$enable_efence" = "xyes" ; then  LIBS="-lefence $LIBS"fiif test "x$enable_gprof" = "xyes" ; then  CFLAGS="$CFLAGS -pg"fidnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h unistd.h sys/uio.h)AC_CHECK_FUNCS(socket)if test "x$enable_insure" = "xyes" ; then  CC="insure -Zoi \"compiler $CC\""  LIBS="$LIBS -lstdc++-2-libc6.1-1-2.9.0"fiAC_SUBST(LIBJPEG_LIB)AC_SUBST(datadir)AC_SUBST(src doc bin util lib)AC_OUTPUT(Makefile doc/Makefile src/Makefile src/IO/Makefile)

⌨️ 快捷键说明

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