📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(COPYING,2.2.0)AM_INIT_AUTOMAKE(magicd , 2.2.0)AC_PATH_PROG([LOGIN], [login], [/bin/login], [$PATH:/usr/libexec:/usr/sbin:/usr/etc:etc]) dnl Checks for programs.AC_PROG_AWKAC_PROG_CCCFLAGS=AC_PROG_INSTALLAC_PROG_MAKE_SETAC_PREFIX_DEFAULTif test "x$prefix" = "xNONE" ; then prefix=`pwd`/..fiecho "#ifndef INFO_H">src/info.hecho "#define INFO_H">>src/info.hcat .info>>src/info.hecho " \"$prefix/magicd-$PACKAGE_VERSION\";">>src/info.hecho "#define LOGIN \"$LOGIN\"" >> src/info.hecho "#endif">>src/info.hdnl AC_FUNC_GETLOADAVGdnl Checks for libraries.dnl Replace `main' with a function in -lcrypt:AC_CHECK_LIB(crypt, crypt)AC_CHECK_LIB(socket , accept)AC_CHECK_LIB(nsl , gethostbyaddr)AC_CHECK_LIB(socket , accept , [AC_CHECK_HEADER(sconetbios.h,,[AC_DEFINE(SOLARIS) ] ])dnl if machine have sconetbios.h means it is sco , so set solaris = 0 )AC_FUNC_SETPGRPdnl I think pgrp_void mean it is freebsd like system :)if test $ac_cv_func_setpgrp_void = no; thencat >>confdefs.h <<\_ACEOF#define FREEBSD 1_ACEOFfidnl PGAC_UNION_SEMUNdnl ----------------dnl Check if `union semun' exists. Define HAVE_UNION_SEMUN if so.dnl If it doesn't then one could define it asdnl union semun { int val; struct semid_ds *buf; unsigned short *array; }AC_DEFUN([PGAC_UNION_SEMUN],[AC_CACHE_CHECK([whether the union semun exists], pgac_cv_union_semun,[AC_TRY_COMPILE([#include <sys/types.h>#include <sys/ipc.h>#include <sys/sem.h>], [union semun semun;], [pgac_cv_union_semun=yes], [pgac_cv_union_semun=no])])if test x"$pgac_cv_union_semun" = xno ; then AC_DEFINE(_SEM_SEMUN_UNDEFINED, 1 , [Set to 1 if you have `union semun'])fi])PGAC_UNION_SEMUNdnl Checks for header files.AC_CHECK_HEADERS( termio.h arpa/telnet.h shadow.h utmp.h utmpx.h sys/ioctl_compat.h )dnl Checks for typedefs, structures, and compiler characteristics.dnl Checks for library functions.AC_CHECK_FUNCS( select )AC_OUTPUT(Makefile src/Makefile etc/Makefile doc/Makefile)dnl delete the old install: sectionsed '/install: install-am/d' src/Makefile > src/Makefile2cat src/Makefile2 > src/Makefilerm -f src/Makefile2sed '/install: install-am/d' src/Makefile.in > src/Makefile2.incat src/Makefile2.in > src/Makefile.inrm -f src/Makefile2.insed '/install: install-am/d' etc/Makefile > etc/Makefile2cat etc/Makefile2 > etc/Makefilerm -f etc/Makefile2sed '/install: install-am/d' etc/Makefile.in > etc/Makefile2.incat etc/Makefile2.in > etc/Makefile.inrm -f etc/Makefile2.insed '/install: install-am/d' doc/Makefile > doc/Makefile2cat doc/Makefile2 > doc/Makefilerm -f doc/Makefile2sed '/install: install-am/d' doc/Makefile.in > doc/Makefile2.incat doc/Makefile2.in > doc/Makefile.inrm -f doc/Makefile2.in
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -