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

📄 configur

📁 GNU 系统开发的基于Iz77语法的压缩 学习lz77压缩算法 
💻
📖 第 1 页 / 共 2 页
字号:
echo checking for fcntl.hcat > conftest.c <<EOF#include <fcntl.h>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  :else  DEFS="$DEFS -DNO_FCNTL_H=1"firm -f conftest*for hdr in unistd.hdotrhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`echo checking for ${hdr}cat > conftest.c <<EOF#include <${hdr}>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  DEFS="$DEFS -D${trhdr}=1"firm -f conftest*doneutime=0echo checking for utime.hcat > conftest.c <<EOF#include <utime.h>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  utime=1 else  DEFS="$DEFS -DNO_UTIME_H=1"firm -f conftest*if test $utime -eq 0; then  for hdr in sys/utime.hdotrhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`echo checking for ${hdr}cat > conftest.c <<EOF#include <${hdr}>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  DEFS="$DEFS -D${trhdr}=1"firm -f conftest*donefiecho checking for directory library headerecho checking for dirent.hcat > conftest.c <<EOF#include <sys/types.h>#include <dirent.h>int main() { return 0; } int t() { DIR *x=0; return x-x; }EOFif eval $compile; then  DEFS="$DEFS -DDIRENT=1" dirheader=dirent.hfirm -f conftest*if test -z "$dirheader"; thenecho checking for sys/ndir.hcat > conftest.c <<EOF#include <sys/ndir.h>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  DEFS="$DEFS -DSYSNDIR=1" dirheader=sys/ndir.hfirm -f conftest*fiif test -z "$dirheader"; thenecho checking for sys/dir.hcat > conftest.c <<EOF#include <sys/dir.h>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  DEFS="$DEFS -DSYSDIR=1" dirheader=sys/dir.hfirm -f conftest*fiif test -z "$dirheader"; thenecho checking for ndir.hcat > conftest.c <<EOF#include <ndir.h>EOFerr=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  DEFS="$DEFS -DNDIR=1" dirheader=ndir.hfirm -f conftest*fiecho checking for closedir return valuecat > conftest.c <<EOF#include <sys/types.h>#include <$dirheader>int closedir(); main() { exit(0); }EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then  :else  DEFS="$DEFS -DVOID_CLOSEDIR=1"firm -f conftest*echo checking for Xenixcat > conftest.c <<EOF#if defined(M_XENIX) && !defined(M_UNIX)  yes#endifEOFeval "$CPP $DEFS conftest.c > conftest.out 2>&1"if egrep "yes" conftest.out >/dev/null 2>&1; then  XENIX=1firm -f conftest*if test -n "$XENIX"; then  DEFS="$DEFS -DVOID_CLOSEDIR=1"  LIBS="$LIBS -lx"  case "$DEFS" in  *SYSNDIR*) ;;  *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.  esacfi# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works# for constant arguments.  Useless!echo checking for working alloca.hcat > conftest.c <<EOF#include <alloca.h>int main() { return 0; } int t() { char *p = alloca(2 * sizeof(int)); }EOFif eval $compile; then  DEFS="$DEFS -DHAVE_ALLOCA_H=1"firm -f conftest*decl="#ifdef __GNUC__#define alloca __builtin_alloca#else#if HAVE_ALLOCA_H#include <alloca.h>#else#ifdef _AIX #pragma alloca#elsechar *alloca ();#endif#endif#endif"echo checking for allocacat > conftest.c <<EOF$declint main() { return 0; } int t() { char *p = (char *) alloca(1); }EOFif eval $compile; then  :else  alloca_missing=1firm -f conftest*if test -n "$alloca_missing"; then  # The SVR3 libPW and SVR4 libucb both contain incompatible functions  # that cause trouble.  Some versions do not even contain alloca or  # contain a buggy version.  If you still want to use their alloca,  # use ar to extract alloca.o from them instead of compiling alloca.c.  ALLOCA=alloca.ofiecho checking for return type of signal handlerscat > conftest.c <<EOF#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endifextern int (*signal ()) ();int main() { return 0; } int t() { int i; }EOFif eval $compile; then  DEFS="$DEFS -DRETSIGTYPE=int"firm -f conftest*echo "checking for #! kernel hack"cat <<'__EOF__' > conftest.csh#!/bin/csh -fsetenv SHELL /bin/csh# Avoid tcsh bug 'Bad Hertz Value':setenv HZ 60# Make sure foo doesn't get exported into the environment# Astoundingly, some versions of csh don't have unsetenv.if (${?foo}) unsetenv foo >& /dev/nullif (${?foo}) unset fooset output="`./conftest.sh`"if ( "$output" == "foo=bar" ) then   exit 0endifexit 1__EOF__cat <<'__EOF__' > conftest.sh#!/bin/sh# If this is really run with sh, then 1st positional arg will be "foo=bar".# If this script was executed by csh, then a shell variable "foo" will have# the value "var".set foo=barecho "$*"__EOF__chmod 777 conftest.csh conftest.sh(csh -f ./conftest.csh) 2> /dev/nullif test $? = 0 ; then   :; SEDCMD="1d"else   :; SEDCMD=""firm -f conftest.csh conftest.shif test -z "$prefix"then  echo checking for gzip to derive installation directory prefix  saveifs="$IFS"; IFS="$IFS:"  for dir in $PATH; do    test -z "$dir" && dir=.    if test $dir != . && test -f $dir/gzip; then      # Not all systems have dirname.      prefix=`echo $dir|sed 's%/[^/][^/]*$%%'`      break    fi  done  IFS="$saveifs"fiif test -n "$prefix"; then  test -z "$exec_prefix" && exec_prefix='${prefix}'  prsub="s%^prefix\\([ 	]*\\)=\\([ 	]*\\).*$%prefix\\1=\\2$prefix%"fiif test -n "$exec_prefix"; then  prsub="$prsubs%^exec_prefix\\([ 	]*\\)=\\([ 	]*\\).*$%\exec_prefix\\1=\\2$exec_prefix%"fitrap 'rm -f config.status; exit 1' 1 3 15echo creating config.statusrm -f config.statuscat > config.status <<EOF#!/bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $*for argdo  case "\$arg" in    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    exec /bin/sh $0 $* ;;    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;  esacdonetrap 'rm -f Makefile; exit 1' 1 3 15CC='$CC'INSTALL='$INSTALL'INSTALL_PROGRAM='$INSTALL_PROGRAM'INSTALL_DATA='$INSTALL_DATA'CPP='$CPP'ALLOCA='$ALLOCA'OBJA='$OBJA'SEDCMD='$SEDCMD'LIBS='$LIBS'srcdir='$srcdir'DEFS='$DEFS'prefix='$prefix'exec_prefix='$exec_prefix'prsub='$prsub'EOFcat >> config.status <<\EOFtop_srcdir=$srcdirfor file in .. Makefile; do if [ "x$file" != "x.." ]; then  srcdir=$top_srcdir  # Remove last slash and all that follows it.  Not all systems have dirname.  dir=`echo $file|sed 's%/[^/][^/]*$%%'`  if test "$dir" != "$file"; then    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir    test ! -d $dir && mkdir $dir  fi  echo creating $file  rm -f $file  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file  sed -e "$prsubs%@CC@%$CC%gs%@INSTALL@%$INSTALL%gs%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%gs%@INSTALL_DATA@%$INSTALL_DATA%gs%@CPP@%$CPP%gs%@ALLOCA@%$ALLOCA%gs%@OBJA@%$OBJA%gs%@SEDCMD@%$SEDCMD%gs%@LIBS@%$LIBS%gs%@srcdir@%$srcdir%gs%@DEFS@%$DEFS%" $top_srcdir/${file}.in >> $filefi; doneEOFchmod +x config.statustest -n "$no_create" || ./config.status

⌨️ 快捷键说明

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