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

📄 configure.ac

📁 This program is a RADIUS RFC-compliant daemon, which is derived from original Livingston Enterprise
💻 AC
📖 第 1 页 / 共 2 页
字号:
dnldnl $Id: configure.ac,v 1.1.2.2 2004/08/19 16:18:59 flovergine Exp $dnldnl Copyright (C) 1999-2004 Francesco P. Lovergine. All rights reserved.dnl dnl Process this file with autoconf (>=2.59) to produce a configure script.dnl Use bootstrap script or autoreconf to prepare the build system.dnl That is not needed for final users and generally package maitainers.dnl dnl * IMPORTANT * * IMPORTANT * * IMPORTANT * * IMPORTANT * * IMPORTANT *dnldnl If you need to regenerate autools scripts use autoconf (>=2.59) and dnl automake (>=1.7) which are versions I used.dnl Note that maintainer mode is disable by default to avoid trashingdnl the autoconf stuff with wrong versions.dnlAC_INIT([Yard Radius],1.1,[francesco@yardradius.org],[yardradius])AC_PREREQ(2.59)AC_CONFIG_SRCDIR(src/radiusd.c)AC_CONFIG_AUX_DIR(autotools)AC_CONFIG_MACRO_DIR(autotools)AC_CANONICAL_TARGETAM_INIT_AUTOMAKEAC_PREFIX_DEFAULT(/usr/local/yardradius)dnldnl This directive is deprecated by someone, but I prefer to avoiddnl running autotools if not required explicitly. The reason is dnl the need to be in sync with autoconf/automake.dnlAM_MAINTAINER_MODEdnldnl Automake 1.7 does not export PACKAGE and VERSION, which are neededdnl in the 'dist' target. This hack forces the definition of both.dnl Moreover, PACKAGE_VERSION can be only a literate. That sucks.dnl Currently I'm not using PACKAGE_* defines, so here we go...dnlPACKAGE="yardradius"VERSION=`cat VERSION`AC_SUBST(PACKAGE)AC_SUBST(VERSION)INSTALL="$srcdir/scripts/shtool install -c"ECHO="$srcdir/scripts/shtool echo -e"MKDIR="$srcdir/scripts/shtool mkdir -p"AC_SUBST(INSTALL)AC_SUBST(ECHO)AC_SUBST(MKDIR)dnldnl These definitions were in acconfig.h with old autoconf 2.13.dnl Now that file is obsolete.dnlAH_TEMPLATE([SHADOW_PASSWORD],[define if shadowing password support should be enclosed])AH_TEMPLATE([SHADOW_EXPIRATION],[define if shadowing password expiration should be enclosed])AH_TEMPLATE([ACTIVCARD],[define if ActiveCard support should be enclosed])AH_TEMPLATE([SECUREID],[define if SecureID support should be enclosed])AH_TEMPLATE([IPASS],[define if IPass support should be enclosed])AH_TEMPLATE([VPORTS],[define if VPORTS support should be enclosed])AH_TEMPLATE([USE_PORTABLE_SNPRINTF],[define to do not use local (v)snprintf])AH_TEMPLATE([OLD_PAM],[define if pam_strerror() has just one arg])AH_TEMPLATE([PAM],[define if you want to activate PAM support and your system support PAM])AH_TEMPLATE([ASCEND_BINARY],[define if you want to activate Ascend Binary Data Filters])AM_CONFIG_HEADER(config.h)dnldnl Checks for make program.dnlAC_PROG_MAKE_SETAM_SANITY_CHECKdnl Check for C support (allow override if needed)dnl Note: actually, setting CC environment variable works just as well.AC_ARG_WITH(CC,    [  --with-CC=compiler      use specific C compiler],    [        case "$withval" in        "" | y | ye | yes | n | no)            AC_MSG_ERROR([*** You must supply an argument to the --with-CC option.])          ;;        esac        CC="$withval"    ])AC_PROG_CCdnl Find CPP, then check traditional.dnl Caution: these macros must be called in this order...AC_PROG_CPPAC_PROG_GCC_TRADITIONALif test "$CC" = "gcc"then        CC_VERSION=`${CC} -dumpversion`else        CC_VERSION=""fiAC_SUBST(CC_VERSION)datadir=$prefixAC_SUBST(datadir)AC_ISC_POSIXAC_PROG_RANLIBAC_PROG_LN_Sdnldnl Checks for libraries.dnlAC_CHECK_LIB(nsl,gethostbyname)AC_CHECK_LIB(socket,connect)AC_CHECK_LIB(crypt,crypt)AC_CHECK_LIB(gen,getspnam)dnldnl Checks for header files.dnlAC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS(fcntl.h limits.h strings.h string.h sys/file.h sys/time.h syslog.h unistd.h shadow.h machine/inline.h machine/endian.h sys/select.h sys/cdefs.h memory.h sys/stat.h sys/param.h sys/types.h) dnldnl Checks for typedefs, structures, and compiler characteristics.dnlAC_C_CONSTAC_TYPE_UID_TAC_TYPE_GETGROUPSAC_TYPE_MODE_TAC_TYPE_OFF_TAC_TYPE_PID_TAC_TYPE_SIZE_TAC_HEADER_TIMEAC_STRUCT_TMAC_STRUCT_TIMEZONEdnldnl Checks for common library functions.dnlAC_FUNC_MEMCMPAC_TYPE_SIGNALAC_FUNC_STRFTIMEAC_FUNC_VPRINTFAC_CHECK_FUNCS(memcpy)AC_CHECK_FUNCS(strchr)AC_CHECK_FUNCS(strerror)AC_CHECK_FUNCS(gethostname gettimeofday mkdir timelocal mktime select socket strtol)AC_CHECK_FUNCS(snprintf __snprintf)AC_CHECK_FUNCS(vsnprintf __vsnprintf)AC_CHECK_FUNCS(getspnam)AC_CHECK_FUNCS(syslog)AC_CHECK_FUNCS(vsyslog)AC_CHECK_FUNCS(getopt_long)dnl dnl Optional features enabling.dnl AC_ARG_ENABLE(        pam,	[  --enable-pam               to support PAM],	[	AC_CHECK_HEADERS(security/pam_appl.h security/pam_misc.h) dnldnl In order to compile a PAM version libpam.a is required.dnl This is checked here along with other libsdnl  	AC_CHECK_LIB(pam,pam_start)dnldnl  Some systems also have a PAM tool libdnl	if test "$ac_cv_lib_pam_pam_start" = "yes"; then		AC_CHECK_LIB(pam_misc,pam_misc_copy_env)dnldnl Controls if pam_strerror() has one or two args.dnl Old version of PAM has only one arg.dnl		AC_CHECK_FUNC(pam_strerror,			[			AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <security/pam_appl.h>]], [[				char *val=pam_strerror(1);				]])],[AC_DEFINE(OLD_PAM)],[])			]		)	fi	if test "$ac_cv_lib_pam_pam_start" = "yes"; then		AC_DEFINE(PAM) AC_MSG_RESULT([PAM support enabled])	else                AC_MSG_ERROR([		PAM development library libpam.a is missing.         You need to install it in order to build a PAM version 	of these programs. Verify your configuration, if you are	sure that this system supports PAM. Well-known PAM 	supporting platforms are: Solaris, Linux, FreeBSD and 	HP-UX. As well known, some distributions of Linux do not	install PAM development libs/headers as default. So it's 	up to you installing them.			])	fi	],	AC_MSG_RESULT([PAM support disabled]),)dnldnl The following libraries need more investigationdnlAC_ARG_ENABLE(        secureid,	[  --enable-secureid          to support SecurID library],	[	YARD_SID_LIBS=" sdiclient.a"	AC_DEFINE(SECUREID) AC_MSG_RESULT([SecureID enabled])	],	AC_MSG_RESULT([SecureID disabled]),)AC_ARG_ENABLE(        activcard,	[  --enable-activcard         to support ActivCard library],	[	YARD_ACARD_LIBS=" aegcli.a"	AC_DEFINE(ACTIVCARD) AC_MSG_RESULT([ActivCard enabled])	],	AC_MSG_RESULT([ActivCard disabled]),)AC_ARG_ENABLE(        ipass,	[  --enable-ipass             to support IPass library],	[	AC_DEFINE(IPASS) 	AC_MSG_RESULT([IPass enabled])	AC_CHECK_LIB(crypto,crypt)	YARD_IPASS_LIBS=" -lip -lssl -lcrypto" 	],	AC_MSG_RESULT([IPass disabled]),)AC_ARG_ENABLE(        shadow,	[  --enable-shadow            to support shadow passwords],	AC_DEFINE(SHADOW_PASSWORD) AC_MSG_RESULT([shadow passwd enabled]),	AC_MSG_RESULT([shadow passwd disabled]),)AC_ARG_ENABLE(        shadowexp,	[  --enable-shadowexp         to support shadow expirations],	AC_DEFINE(SHADOW_EXPIRATION) AC_DEFINE(SHADOW_PASSWORD) AC_MSG_RESULT([shadow passwd expiration enabled]),	AC_MSG_RESULT([shadow passwd expiration disabled]),)AC_ARG_ENABLE(        psnprintf,	[  --enable-psnprintf         to force a portable snprintf],	AC_DEFINE(USE_PORTABLE_SNPRINTF) AC_MSG_RESULT([portable (v)snprintf() forced]),	AC_MSG_RESULT([portable (v)snprintf() not forced]),)AC_ARG_ENABLE(        vports,	[  --disable-vports           to disable vports],	[	if test "$enable_val" = "yes"; then		AC_DEFINE(VPORTS) 		AC_MSG_RESULT([Vports enabled])	else		AC_MSG_RESULT([Vports disabled])	fi	], 	AC_DEFINE(VPORTS) AC_MSG_RESULT([Vports enabled]))AC_ARG_ENABLE(        abinary,	[  --disable-abinary          to disable abinary],	[	if test "$enable_val" = "yes"; then		AC_DEFINE(ASCEND_BINARY) 		AC_MSG_RESULT([abinary enabled])	else		AC_MSG_RESULT([abinary disabled])	fi	], 	AC_DEFINE(ASCEND_BINARY) AC_MSG_RESULT([abinary enabled]))dnldnl This option enable specific settings for Debian GNU/LinuxdnlAC_ARG_ENABLE(	debian,	[  --enable-debian            to force Debian GNU/Linux settings],	[ 	DEBIAN=yes	AC_MSG_RESULT([Debianization enabled])	if test -f "/etc/shadow"; then 		AC_DEFINE(SHADOW_EXPIRATION) 		AC_DEFINE(SHADOW_PASSWORD) 		AC_MSG_RESULT([ - shadow passwd enabled])		AC_MSG_RESULT([ - shadow passwd expiration enabled])	fi	],	[	DEBIAN=no	AC_MSG_RESULT([Debianization disabled])	])if test "$DEBIAN" = "yes"; then

⌨️ 快捷键说明

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