autogen.sh

来自「lrc 歌词解析和实时显示源码, 是开发 mp3, 播放器的很好的模块」· Shell 代码 · 共 97 行

SH
97
字号
#!/bin/sh# Run this to generate all the initial makefiles, etc.srcdir=`dirname $0`PKG_NAME="the package."DIE=0#check autoconf(autoconf --version) < /dev/null > /dev/null 2>&1 || {  echo  echo "**Error**: You must have \`autoconf' installed to."  echo "Download the appropriate package for your distribution,"  echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"  DIE=1}#check libtool(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {  (libtool --version) < /dev/null > /dev/null 2>&1 || {    echo    echo "**Error**: You must have \`libtool' installed."    echo "Get ftp://ftp.gnu.org/pub/gnu/"    echo "(or a newer version if it is available)"    DIE=1  }}#check automake(automake --version) < /dev/null > /dev/null 2>&1 || {  echo  echo "**Error**: You must have \`automake' installed."  echo "Get ftp://ftp.gnu.org/pub/gnu/"  echo "(or a newer version if it is available)"  DIE=1  NO_AUTOMAKE=yes}# if no automake, don't bother testing for aclocaltest -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {  echo  echo "**Error**: Missing \`aclocal'.  The version of \`automake'"  echo "installed doesn't appear recent enough."  echo "Get ftp://ftp.gnu.org/pub/gnu/"  echo "(or a newer version if it is available)"  DIE=1}if test "$DIE" -eq 1; then  exit 1ficase $CC inxlc )  am_opt=--include-deps;;esac#check the configure.in in srcdirfor coin in `find $srcdir -name configure.in -print`do   dr=`dirname $coin`  if test -f $dr/NO-AUTO-GEN; then    echo skipping $dr -- flagged as no auto-gen  else    echo processing $dr    macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`    ( cd $dr      aclocalinclude="$ACLOCAL_FLAGS"      for k in $macrodirs; do	  	if test -d $k; then       	   aclocalinclude="$aclocalinclude -I $k"   	  	fi	  done      if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then		if grep "sed.*POTFILES" configure.in >/dev/null; then	 	 	:       	else	  		echo "Creating $dr/aclocal.m4 ..."			test -r $dr/aclocal.m4 || touch $dr/aclocal.m4			echo "Making $dr/aclocal.m4 writable ..."	  		test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4        fi      fi      test -d m4 && aclocalinclude="$aclocalinclude -I m4"      echo "Running aclocal $aclocalinclude ..."      aclocal $aclocalinclude      if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then			echo "Running autoheader..."			autoheader      fi      echo "Running automake --gnu $am_opt ..."      automake --add-missing --gnu $am_opt      echo "Running autoconf ..."      autoconf    )  fidone

⌨️ 快捷键说明

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