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

📄 aclocal.m4

📁 站点映像程序
💻 M4
📖 第 1 页 / 共 3 页
字号:
# symlink; some systems play weird games with the mod time of symlinks# (eg FreeBSD returns the mod time of the symlink's containing# directory).if (   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`   if test "[$]*" = "X"; then      # -L didn't work.      set X `ls -t $srcdir/configure conftestfile`   fi   if test "[$]*" != "X $srcdir/configure conftestfile" \      && test "[$]*" != "X conftestfile $srcdir/configure"; then      # If neither matched, then we have a broken ls.  This can happen      # if, for instance, CONFIG_SHELL is bash and it inherits a      # broken ls alias from the environment.  This has actually      # happened.  Such a system could not be considered "sane".      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a brokenalias in your environment])   fi   test "[$]2" = conftestfile   )then   # Ok.   :else   AC_MSG_ERROR([newly created file is older than distributed files!Check your system clock])firm -f conftest*AC_MSG_RESULT(yes)])dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)dnl The program must properly implement --version.AC_DEFUN(AM_MISSING_PROG,[AC_MSG_CHECKING(for working $2)# Run test in a subshell; some versions of sh will print an error if# an executable is not found, even if stderr is redirected.# Redirect stdin to placate older versions of autoconf.  Sigh.if ($2 --version) < /dev/null > /dev/null 2>&1; then   $1=$2   AC_MSG_RESULT(found)else   $1="$3/missing $2"   AC_MSG_RESULT(missing)fiAC_SUBST($1)])# Add --enable-maintainer-mode option to configure.# From Jim Meyering# serial 1AC_DEFUN(AM_MAINTAINER_MODE,[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])  dnl maintainer-mode is disabled by default  AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode enable make rules and dependencies not useful                          (and sometimes confusing) to the casual installer],      USE_MAINTAINER_MODE=$enableval,      USE_MAINTAINER_MODE=no)  AC_MSG_RESULT($USE_MAINTAINER_MODE)  if test $USE_MAINTAINER_MODE = yes; then    MAINT=  else    MAINT='#M#'  fi  AC_SUBST(MAINT)dnl])# aclocal-include.m4# # This macro adds the name macrodir to the set of directories# that `aclocal' searches for macros.  # serial 1dnl AM_ACLOCAL_INCLUDE(macrodir)AC_DEFUN([AM_ACLOCAL_INCLUDE],[for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done])dnldnl GNOME_INIT_HOOK (script-if-gnome-enabled, failflag)dnldnl if failflag is "fail" then GNOME_INIT_HOOK will abort if gnomeConf.shdnl is not found. dnlAC_DEFUN([GNOME_INIT_HOOK],[		AC_SUBST(GNOME_LIBS)	AC_SUBST(GNOMEUI_LIBS)	AC_SUBST(GNOMEGNORBA_LIBS)	AC_SUBST(GTKXMHTML_LIBS)	AC_SUBST(GNOME_LIBDIR)	AC_SUBST(GNOME_INCLUDEDIR)	AC_ARG_WITH(gnome-includes,	[  --with-gnome-includes   Specify location of GNOME headers],[	CFLAGS="$CFLAGS -I$withval"	])		AC_ARG_WITH(gnome-libs,	[  --with-gnome-libs       Specify location of GNOME libs],[	LDFLAGS="$LDFLAGS -L$withval"	gnome_prefix=$withval	])	AC_ARG_WITH(gnome,	[  --with-gnome            Specify prefix for GNOME files],		if test x$withval = xyes; then	    		want_gnome=yes	    		dnl Note that an empty true branch is not			dnl valid sh syntax.	    		ifelse([$1], [], :, [$1])        	else	    		if test "x$withval" = xno; then	        		want_gnome=no	    		else	        		want_gnome=yes	    			LDFLAGS="$LDFLAGS -L$withval/lib"	    			CFLAGS="$CFLAGS -I$withval/include"	    			gnome_prefix=$withval/lib	    		fi  		fi,		want_gnome=yes)	if test "x$want_gnome" = xyes; then	    AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)	    if test "$GNOME_CONFIG" = "no"; then	      no_gnome_config="yes"	    else	      AC_MSG_CHECKING(if $GNOME_CONFIG works)	      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then	        AC_MSG_RESULT(yes)	        GNOME_GNORBA_HOOK([],$2)	        GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"	        GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"	        GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"	        GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"	        GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"	        GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"                $1	      else	        AC_MSG_RESULT(no)	        no_gnome_config="yes"              fi            fi	    if test x$exec_prefix = xNONE; then	        if test x$prefix = xNONE; then		    gnome_prefix=$ac_default_prefix/lib	        else 		    gnome_prefix=$prefix/lib	        fi	    else	        gnome_prefix=`eval echo \`echo $libdir\``	    fi		    if test "$no_gnome_config" = "yes"; then              AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix)	      if test -f $gnome_prefix/gnomeConf.sh; then	        AC_MSG_RESULT(found)	        echo "loading gnome configuration from" \		     "$gnome_prefix/gnomeConf.sh"	        . $gnome_prefix/gnomeConf.sh	        $1	      else	        AC_MSG_RESULT(not found) 	        if test x$2 = xfail; then	          AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install) 	        fi	      fi            fi	fi])AC_DEFUN([GNOME_INIT],[	GNOME_INIT_HOOK([],fail)])dnldnl GNOME_GNORBA_HOOK (script-if-gnorba-found, failflag)dnldnl if failflag is "failure" it aborts if gnorba is not found.dnlAC_DEFUN([GNOME_GNORBA_HOOK],[	GNOME_ORBIT_HOOK([],$2)	AC_CACHE_CHECK([for gnorba libraries],gnome_cv_gnorba_found,[		gnome_cv_gnorba_found=no		if test x$gnome_cv_orbit_found = xyes; then			GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"			GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"			if test -n "$GNORBA_LIBS"; then				gnome_cv_gnorba_found=yes			fi		fi	])	AM_CONDITIONAL(HAVE_GNORBA, test x$gnome_cv_gnorba_found = xyes)	if test x$gnome_cv_orbit_found = xyes; then		$1		GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"		GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"		AC_SUBST(GNORBA_CFLAGS)		AC_SUBST(GNORBA_LIBS)	else	    	if test x$2 = xfailure; then			AC_MSG_ERROR(gnorba library not installed or installation problem)	    	fi	fi])AC_DEFUN([GNOME_GNORBA_CHECK], [	GNOME_GNORBA_HOOK([],failure)])dnldnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflag)dnldnl if failflag is "failure" it aborts if orbit is not found.dnlAC_DEFUN([GNOME_ORBIT_HOOK],[	AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)	AC_PATH_PROG(ORBIT_IDL,orbit-idl,no)	AC_CACHE_CHECK([for working ORBit environment],gnome_cv_orbit_found,[		if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then			gnome_cv_orbit_found=no		else			gnome_cv_orbit_found=yes		fi	])	AM_CONDITIONAL(HAVE_ORBIT, test x$gnome_cv_orbit_found = xyes)	if test x$gnome_cv_orbit_found = xyes; then		$1		ORBIT_CFLAGS=`orbit-config --cflags client server`		ORBIT_LIBS=`orbit-config --use-service=name --libs client server`		AC_SUBST(ORBIT_CFLAGS)		AC_SUBST(ORBIT_LIBS)	else    		if test x$2 = xfailure; then			AC_MSG_ERROR(ORBit not installed or installation problem)    		fi	fi])AC_DEFUN([GNOME_ORBIT_CHECK], [	GNOME_ORBIT_HOOK([],failure)])# Define a conditional.AC_DEFUN(AM_CONDITIONAL,[AC_SUBST($1_TRUE)AC_SUBST($1_FALSE)if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fi])# serial 18 AM_PROG_LIBTOOLAC_DEFUN(AM_PROG_LIBTOOL,[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_PROG_RANLIB])AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_PROG_LD])AC_REQUIRE([AM_PROG_NM])AC_REQUIRE([AC_PROG_LN_S])# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl Allow the --disable-shared flag to stop us from building shared libs.AC_ARG_ENABLE(shared,[  --enable-shared         build shared libraries [default=yes]],[if test "$enableval" = no; then  libtool_enable_shared=noelse  libtool_enable_shared=yesfi])test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"libtool_shared=test "$enable_shared" = no && libtool_shared=" --disable-shared"dnl Allow the --disable-static flag to stop us from building static libs.AC_ARG_ENABLE(static,[  --enable-static         build static libraries [default=yes]],[if test "$enableval" = no; then  libtool_enable_static=noelse  libtool_enable_static=yesfi])test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"libtool_static=test "$enable_static" = no && libtool_static=" --disable-static"libtool_flags="$libtool_shared$libtool_static"test "$silent" = yes && libtool_flags="$libtool_flags --silent"test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"# Some flags need to be propagated to the compiler or linker for good# libtool support.[case "$host" in*-*-irix6*)  ac_save_CFLAGS="$CFLAGS"  flag_passed=no  for f in -32 -64 -n32 ABI -cckr -mips1 -mips2 -mips3 -mips4; do    case "$f" in    ABI)      test -n "$SGI_ABI" && flag_passed=yes      if test "$flag_passed" = no && test "$ac_cv_prog_gcc" = yes; then	# Choose the ABI flag according to GCC's specs.	if $CC -dumpspecs 2>&1 | sed '/^\*link:$/,/^$/!d' | egrep -e '[ 	]-32' >/dev/null; then	  LD="${LD-ld} -32"	else	  LD="${LD-ld} -n32"	fi      fi      ;;    *)      if echo " $CC $CFLAGS " | egrep -e "[ 	]$f[	 ]" > /dev/null; then	flag_passed=yes	LD="${LD-ld} $f"      fi      ;;    esac  done  CFLAGS="$ac_save_CFLAGS"  ;;*-*-sco3.2v5*)  # On SCO OpenServer 5, we need -belf to get full-featured binaries.  CFLAGS="$CFLAGS -belf"  ;;esac]# Actually configure libtool.  ac_aux_dir is where install-sh is found.CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \|| AC_MSG_ERROR([libtool configure failed])])# AM_PROG_LD - find the path to the GNU or non-GNU linkerAC_DEFUN(AM_PROG_LD,[AC_ARG_WITH(gnu-ld,[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)AC_REQUIRE([AC_PROG_CC])ac_prog=ldif test "$ac_cv_prog_gcc" = yes; then  # Check if gcc -print-prog-name=ld gives a path.  AC_MSG_CHECKING([for ld used by GCC])  ac_prog=`($CC -print-prog-name=ld) 2>&5`  case "$ac_prog" in  # Accept absolute paths.  /*)    test -z "$LD" && LD="$ac_prog"    ;;  "")    # If it fails, then pretend we aren't using GCC.    ac_prog=ld    ;;  *)    # If it is relative, then search for the first ld in PATH.    with_gnu_ld=unknown    ;;  esacelif test "$with_gnu_ld" = yes; then  AC_MSG_CHECKING([for GNU ld])else  AC_MSG_CHECKING([for non-GNU ld])fiAC_CACHE_VAL(ac_cv_path_LD,[if test -z "$LD"; then  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f "$ac_dir/$ac_prog"; then      ac_cv_path_LD="$ac_dir/$ac_prog"      # Check to see if the program is GNU ld.  I'd rather use --version,      # but apparently some GNU ld's only accept -v.      # Break only if it was the GNU/non-GNU ld that we prefer.      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then	test "$with_gnu_ld" != no && break      else        test "$with_gnu_ld" != yes && break      fi    fi  done  IFS="$ac_save_ifs"else  ac_cv_path_LD="$LD" # Let the user override the test with a path.fi])LD="$ac_cv_path_LD"if test -n "$LD"; then  AC_MSG_RESULT($LD)else  AC_MSG_RESULT(no)fitest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])AC_SUBST(LD)AM_PROG_LD_GNU])AC_DEFUN(AM_PROG_LD_GNU,[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,[# I'd rather use --version here, but apparently some GNU ld's only accept -v.if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then  ac_cv_prog_gnu_ld=yeselse  ac_cv_prog_gnu_ld=nofi])])# AM_PROG_NM - find the path to a BSD-compatible name listerAC_DEFUN(AM_PROG_NM,[AC_MSG_CHECKING([for BSD-compatible nm])AC_CACHE_VAL(ac_cv_path_NM,[case "$NM" in/*)  ac_cv_path_NM="$NM" # Let the user override the test with a path.  ;;*)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do    test -z "$ac_dir" && dir=.    if test -f $ac_dir/nm; then      # Check to see if the nm accepts a BSD-compat flag.      # Adding the `sed 1!d' prevents false positives on HP-UX, which says:      #   nm: unknown option "B" ignored      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then        ac_cv_path_NM="$ac_dir/nm -B"      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then        ac_cv_path_NM="$ac_dir/nm -p"      else        ac_cv_path_NM="$ac_dir/nm"      fi      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm  ;;esac])NM="$ac_cv_path_NM"AC_MSG_RESULT([$NM])AC_SUBST(NM)])dnl GNOME_SUPPORT_CHECKSdnl    Check for various support functions needed by the standarddnl    Gnome libraries.  Sets LIBOBJS, might define some macros.dnl    This should only be used when building the Gnome libs; dnl    Gnome clients should not need this macro.AC_DEFUN([GNOME_SUPPORT_CHECKS],[  # we need an `awk' to build `gnomesupport.h'  AC_REQUIRE([AC_PROG_AWK])  # this should go away soon  need_gnome_support=yes

⌨️ 快捷键说明

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