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

📄 configure

📁 gzip1.2.4源码
💻
📖 第 1 页 / 共 2 页
字号:
#include <fcntl.h>EOFerr=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  :else  {test -n "$verbose" && \echo '	defining' NO_FCNTL_HDEFS="$DEFS -DNO_FCNTL_H=1"}firm -f conftest*echo checking for time.hcat > conftest.c <<EOF#include <time.h>EOFerr=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`if test -z "$err"; then  :else  {test -n "$verbose" && \echo '	defining' NO_TIME_HDEFS="$DEFS -DNO_TIME_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  {test -n "$verbose" && \echo '	defining' ${trhdr}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  {test -n "$verbose" && \echo '	defining' NO_UTIME_HDEFS="$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  {test -n "$verbose" && \echo '	defining' ${trhdr}DEFS="$DEFS -D${trhdr}=1"}firm -f conftest*donefiecho checking for directory library headerdirheader=if test -z "$dirheader"; then  echo checking for dirent.hcat > conftest.c <<EOF#include <sys/types.h>#include <dirent.h>int main() { exit(0); }int t() { DIR *dirp = opendir ("/"); }EOFif eval $compile; then  {test -n "$verbose" && \echo '	defining' DIRENTDEFS="$DEFS -DDIRENT=1"} dirheader=dirent.hfirm -f conftest*fiif test -z "$dirheader"; then  echo checking for sys/ndir.hcat > conftest.c <<EOF#include <sys/types.h>#include <sys/ndir.h>int main() { exit(0); }int t() { DIR *dirp = opendir ("/"); }EOFif eval $compile; then  {test -n "$verbose" && \echo '	defining' SYSNDIRDEFS="$DEFS -DSYSNDIR=1"} dirheader=sys/ndir.hfirm -f conftest*fiif test -z "$dirheader"; then  echo checking for sys/dir.hcat > conftest.c <<EOF#include <sys/types.h>#include <sys/dir.h>int main() { exit(0); }int t() { DIR *dirp = opendir ("/"); }EOFif eval $compile; then  {test -n "$verbose" && \echo '	defining' SYSDIRDEFS="$DEFS -DSYSDIR=1"} dirheader=sys/dir.hfirm -f conftest*fiif test -z "$dirheader"; then  echo checking for ndir.hcat > conftest.c <<EOF#include <sys/types.h>#include <ndir.h>int main() { exit(0); }int t() { DIR *dirp = opendir ("/"); }EOFif eval $compile; then  {test -n "$verbose" && \echo '	defining' NDIRDEFS="$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(closedir(opendir(".")) != 0); }EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then  :else  {test -n "$verbose" && \echo '	defining' VOID_CLOSEDIRDEFS="$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  LIBS="$LIBS -lx"  case "$DEFS" in  *SYSNDIR*) ;;  *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.  esacfiecho checking for return type of signal handlerscat > conftest.c <<EOF#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endifextern void (*signal ()) ();int main() { exit(0); }int t() { int i; }EOFif eval $compile; then  :else  {test -n "$verbose" && \echo '	defining' RETSIGTYPE to be 'int'DEFS="$DEFS -DRETSIGTYPE=int"}firm -f conftest*echo checking for size_t in sys/types.hecho '#include <sys/types.h>' > conftest.ceval "$CPP \$DEFS conftest.c > conftest.out 2>&1"if egrep "size_t" conftest.out >/dev/null 2>&1; then  :else  {test -n "$verbose" && \echo '	defining' size_t to be 'unsigned'DEFS="$DEFS -Dsize_t=unsigned"}firm -f conftest*echo '#include <sys/types.h>' > conftest.ceval "$CPP \$DEFS conftest.c > conftest.out 2>&1"if egrep "off_t" conftest.out >/dev/null 2>&1; then  :else  {test -n "$verbose" && \echo '	defining' NO_OFF_TDEFS="$DEFS -DNO_OFF_T=1"}firm -f conftest*echo "checking if \`#!' works in shell scripts"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/shset 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  IFS="${IFS= 	}"; 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"  echo "	chose installation directory prefix ${prefix}"fiif test -z "$G" -a -n "$prefix" -a -f $prefix/bin/gznew; then  G=gfiif test -z "$ZCAT"; then  if test -n "$prefix" -a -f $prefix/bin/gzcat; then    ZCAT=gzcat  else    ZCAT=${G}zcat  fifiif 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%"ficat >conftest.def <<EOF$DEFSEOFescape_ampersand_and_backslash='s%[&\\]%\\&%g'DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`rm -f conftest.deftrap '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'CPP='$CPP'INSTALL='$INSTALL'INSTALL_PROGRAM='$INSTALL_PROGRAM'INSTALL_DATA='$INSTALL_DATA'ZCAT='$ZCAT'G='$G'CFLAGS='$CFLAGS'ASCPP='$ASCPP'OBJA='$OBJA'SEDCMD='$SEDCMD'LIBS='$LIBS'srcdir='$srcdir'DEFS='$DEFS'prefix='$prefix'exec_prefix='$exec_prefix'prsub='$prsub'EOFcat >> config.status <<\EOFtop_srcdir=$srcdir# Allow make-time overrides of the generated file list.test -n "$gen_files" || gen_files="Makefile"for file in .. $gen_files; 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%@CPP@%$CPP%gs%@INSTALL@%$INSTALL%gs%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%gs%@INSTALL_DATA@%$INSTALL_DATA%gs%@ZCAT@%$ZCAT%gs%@G@%$G%gs%@CFLAGS@%$CFLAGS%gs%@ASCPP@%$ASCPP%gs%@OBJA@%$OBJA%gs%@SEDCMD@%$SEDCMD%gs%@LIBS@%$LIBS%gs%@srcdir@%$srcdir%gs%@DEFS@%$DEFS%" $top_srcdir/${file}.in >> $filefi; doneexit 0EOFchmod +x config.statustest -n "$no_create" || ./config.status

⌨️ 快捷键说明

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