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

📄 configure.in

📁 zlib压缩原码
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(open.c)AC_CONFIG_HEADER(config.h)dnl checks for programsdnl ===================AC_PROG_CCAC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_PROG_LN_SAC_PATH_PROG(INSTALL_INFO, install-info, "")AC_PATH_PROGS(XGZIP, gzip compress compact, gzip, $PATH:/usr/bin:/usr/local/bin:/usr/local/gnu/bin:/usr/gnu/bin)dnl check for gzip extensiondnl ========================dnl check for systemsdnl =================AC_AIXAC_ISC_POSIXAC_MINIXAC_CANONICAL_SYSTEMdnl checks for librariesdnl ====================dnl AC_IRIX_SUNAC_CHECK_LIB(sun, getpwnam)AC_CHECK_LIB(dl, dlsym)dnl checks for header filesdnl =======================AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h unistd.h errno.h sys/stat.h \sys/param.h string.h strings.h syscall.h sys/syscall.h fcntl.h sys/wait.h \time.h sys/time.h utime.h pwd.h gnu-stabs.h ansidecl.h dlfcn.h features.h)AC_HEADER_TIMEdnl checks for typedefsdnl ===================AC_TYPE_SIZE_TAC_TYPE_OFF_Tdnl checks for structuresdnl =====================AC_STRUCT_TMdnl checks for compiler characteristicsdnl ===================================AC_C_CONSTAC_C_INLINEdnl checks for library functionsdnl ============================AC_CHECK_FUNCS(strsep strpbrk memset)dnl recommended by the autoconf doc, for HEADER_STDCAC_CHECK_FUNCS(strchr memcpy fchdir)dnl We first check for "weak" symbols.dnl AC_CHECK_FUNCS(__open _open, [break])dnl We check for double underbar symbols.  Apparently, it's these thatdnl are called from other library routines, so we better override theseAC_CHECK_FUNCS(__access __chmod __chown __lstat __open __readlink \__unlink __link __symlink stat64 __xstat __xstat64 readdir64 __libc_open)dnl system call, which may not be available everywherednl if they are absent, no need to provide them either...AC_CHECK_FUNCS(utime utimes)dnl checks for system servicesdnl ==========================dnl Check for configuration optionsdnl Enable OS/2 extended density format disksundefine([runtime-conf])dnlAC_ARG_ENABLE(runtime-conf,[  --enable-runtime-conf  enable runtime configuration (default on)],[if test x$enableval = xyes; then  AC_DEFINE(RUNTIME_CONF)fi],AC_DEFINE(RUNTIME_CONF))dnl Enable configuration with environmental variablesundefine([env-conf])dnlAC_ARG_ENABLE(env-conf,[  --enable-env-conf      configuration with environmental variable (default on)],[if test x$enableval = xyes; then  AC_DEFINE(ENV_CONF)fi],AC_DEFINE(ENV_CONF))dnl Do we have a proc filesystem?[define_have_proc=""]undefine([have-proc])dnlAC_ARG_ENABLE(have-proc,[  --enable-have-proc     have a proc filesystem],[if test x$enableval = xyes; then  define_have_proc="#define HAVE_PROC"fi],[test -d /proc/self &&  define_have_proc="#define HAVE_PROC"])dnl compressor extensionundefine([compr-ext])dnlAC_ARG_WITH(compr-ext,[  --with-compr-ext=ext   set the extension used by the compression program],,[LD_ZLIB_DISABLE=1 rm -f testfile*echo zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz >testfile$XGZIP -f testfilewith_ext=`LD_ZLIB_DISABLE=1 sh -c 'echo testfile.*' | sed 's/testfile//g'`LD_ZLIB_DISABLE=1 rm -f testfile.*])dnl temporary directoryundefine([tmpdir])dnlAC_ARG_WITH(tmpdir,[  --with-tmpdir=dir      set the directory for temporary files],,[with_tmpdir="/tmp"])dnl maximal length of extensionundefine([extlen])dnlAC_ARG_WITH(extlen,[  --with-extlen=len      set the maximal acceptable length for the extension                         identifying compressed files],,[with_extlen=5])dnl uncompressor command lineundefine([uncompressor])dnlAC_ARG_WITH(uncompressor,[  --with-uncompressor=cmdline   set the command line for                                 uncompressing files],[uncompressor=`echo $with_var |	sed -e 's/^ *//g' -e 's/ *$//g' -e 's/  */","/g'`],[uncompressor=$XGZIP'","-dc'])dnl compressor command lineundefine([compressor])dnlAC_ARG_WITH(compressor,[  --with-compressor=cmdline   set the command line for                               compressing files (experimenatal)],[compressor=`echo $with_var |	sed -e 's/^ *//g' -e 's/ *$//g' -e 's/  */","/g'`],[compressor=$XGZIP'","-c'])[host_os0=`echo $host_os | sed 's/-/_/g'`host_os1=`echo $host_os0 | sed 's/\./_/g'`host_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'`host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'`host_cpu1=`echo $host_cpu | sed 's/\./_/g'`host_vendor1=`echo $host_vendor | sed 's/\./_/g'`HOST_ID="-D$host_cpu1 -D$host_vendor1 -D$host_os1"if [ $host_os1 != $host_os2 ] ; then	HOST_ID="$HOST_ID -D$host_os2"fiif [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then	HOST_ID="$HOST_ID -D$host_os3"fimy_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u`objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' `if [ "X$GCC" = "Xyes" ] ; then    CFLAGS="$CFLAGS -O4"    if [ "$host_cpu" = i486 ] ; then	    CFLAGS="$CFLAGS -m486"    fi    Wall=-Wall    if [ "$host_os3" = sunos ] ; then	    Wall=""    fi    if [ "$host_os3" = ultrix ] ; then	    Wall=""    fi    if [ "$host_os3" = linux ] ; then	    CFLAGS="$CFLAGS -fno-strength-reduce"    fi    CFLAGS="$CFLAGS $Wall"fiif [ $host_vendor = linux ] ; then    CFLAGS="$CFLAGS -DUSE_XDF"fiif [ $host_vendor = att ] ; then    CFLAGS="$CFLAGS -Datt"fiif [ $host_os3 = xenix ] ; then    CFLAGS="$CFLAGS -M2e"    LDFLAGS="$LDFLAGS -M2e -i -f 5000"fiif [ $host_os3 = hpux ] ; then    LDFLAGS="$LDFLAGS -z"fiif [ $host_os2 = sysv4 ] ; then    SHLIB="-lc -L/usr/ucblib -lucb"else    SHLIB=""fiif [ $host_os3 = isc ] ; then    CFLAGS="$CFLAGS -D_SYSV3"    SHLIB="-lc_s"fi]AC_SUBST(uncompressor)AC_SUBST(compressor)AC_SUBST(with_homeconf)AC_SUBST(with_systemconf)AC_SUBST(with_ext)AC_SUBST(with_extlen)AC_SUBST(with_tmpdir)AC_SUBST(define_have_proc)AC_SUBST(XGZIP)AC_SUBST(SHLIB)AC_SUBST(host_cpu)AC_SUBST(HOST_ID)AC_OUTPUT(Makefile params.h)

⌨️ 快捷键说明

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