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

📄 configure.ac

📁 一个通用的C语言实现的数据结构
💻 AC
字号:
dnl Process this file with autoconf to produce a configure script.AC_PREREQ([2.59])AC_INIT([gdsl], [1.4], [ndarnis@free.fr])AM_INIT_AUTOMAKEAM_CONFIG_HEADER([config.h])AC_CANONICAL_HOSTdnl Library versioning (current:revision:age)dnl See the libtool manual for an explanation of the numbersdnldnl gdsl-1.0    libgdsl 1:0:0dnl gdsl-1.1    libgdsl 1:0:1dnl gdsl-1.2	libgdsl 1:0:2dnl gdsl-1.3	libgdsl 1:0:3dnl gdsl-1.4	libgdsl 1:0:4GDSL_LT_VERSION="1:4:0"AC_SUBST(GDSL_LT_VERSION)dnl Things required by automakeAC_ARG_PROGRAMdnl Checks for programs.AC_PROG_CCAC_PROG_AWKAC_PROG_CPPAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAC_PROG_RANLIBAC_PROG_LIBTOOLdnl Checks for libraries.dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS([sys/time.h stdlib.h stdio.h unistd.h])dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_SIZE_TAC_HEADER_TIMEdnl Checks for compiler features.AC_TYPE_SIZE_TAC_C_CONSTAC_C_INLINEdnl Checks for library functions.AC_FUNC_ALLOCAAC_CHECK_FUNCS([gettimeofday strdup])dnl Checks for system services.AC_MSG_CHECKING([whether your compiler is gcc])BASE_CC=`basename ${CC}x`if test "`echo ${BASE_CC}|cut -c1-3`" = gcc ;thenCFLAGS="-Wall -Wstrict-prototypes $CFLAGS"	AC_MSG_RESULT([yes... -Wall -Wstrict-prototypes added.])else	AC_MSG_RESULT([no.])fiCPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -pedantic $CPPFLAGS"dnl  Enable debugging feature ?ac_debug="no"AC_ARG_ENABLE([debug],	[  --enable-debug          enable debugging features [default=disabled]],	[ac_debug=$enableval], [ac_debug=no])AC_CACHE_CHECK([whether to enable debuging features], [ac_debug], [ac_debug=no])if test "$ac_debug" = yes; then  AC_DEFINE([HAVE_DEBUG])fidnl  Without gdsl types ?ac_without_gdsl_types="no"AC_ARG_WITH()if test "$ac_without_gdsl_types" = yes; then  CPPFLAGS="-DWITHOUT_GDSL_TYPES $CPPFLAGS"fidnl  Host oscase "$host_os" in	linux*)		AC_DEFINE([HAVE_LINUX])			;;	freebsd*)	AC_DEFINE([HAVE_FREEBSD])			;;	netbsd*)	AC_DEFINE([HAVE_NETBSD])			;;esacdnl For gdsl-config scriptGDSL_CFLAGS="-I$includedir/gdsl"GDSL_LIBS="-L$libdir -lgdsl"AC_SUBST(GDSL_CFLAGS)AC_SUBST(GDSL_LIBS)dnl Output filesAC_OUTPUT([                        \          gdsl.spec                \          gdsl-config              \          src/Makefile             \          src/mainpage.h           \          src/examples/Makefile    \          doc/Makefile             \          doc/Doxyfile             \          doc/man3/Makefile        \          doc/html/Makefile        \          doc/latex/Makefile       \          Makefile		   \	  ])

⌨️ 快捷键说明

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