acinclude.m4
来自「基于4个mips核的noc设计」· M4 代码 · 共 1,996 行 · 第 1/5 页
M4
1,996 行
ac_cv_c_tkconfig=`(cd $i/unix; pwd)` break fi done fi dnl Check to see if it's installed. We have to look in the $CC path dnl to find it, cause our $prefix may not match the compilers. if test x"${ac_cv_c_tkconfig}" = x ; then dnl Get the path to the compiler ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib if test -f $ccpath/tkConfig.sh; then ac_cv_c_tkconfig=$ccpath fi fi ]) dnl end of cache_val if test x"${ac_cv_c_tkconfig}" = x ; then TKCONFIG="" AC_MSG_WARN(Can't find Tk configuration definitions) else no_tk="" TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh AC_MSG_RESULT(${TKCONFIG}) fifiAC_SUBST(TKCONFIG)])dnl Defined as a separate macro so we don't have to cache the valuesdnl from PATH_TKCONFIG (because this can also be cached).AC_DEFUN(CYG_AC_LOAD_TKCONFIG, [ if test -f "$TKCONFIG" ; then . $TKCONFIG fi AC_SUBST(TK_VERSION)dnl not actually used, don't export to save symbolsdnl AC_SUBST(TK_MAJOR_VERSION)dnl AC_SUBST(TK_MINOR_VERSION) AC_SUBST(TK_DEFS)dnl not used, don't export to save symbols AC_SUBST(TK_LIB_FILE) AC_SUBST(TK_LIB_FULL_PATH) AC_SUBST(TK_LIBS)dnl not used, don't export to save symbolsdnl AC_SUBST(TK_PREFIX)dnl not used, don't export to save symbolsdnl AC_SUBST(TK_EXEC_PREFIX) AC_SUBST(TK_BUILD_INCLUDES) AC_SUBST(TK_XINCLUDES) AC_SUBST(TK_XLIBSW) AC_SUBST(TK_BUILD_LIB_SPEC) AC_SUBST(TK_LIB_SPEC)])dnl ====================================================================dnl Ok, lets find the itcl source trees so we can use the headersdnl the alternative search directory is involked by --with-itclincludeAC_DEFUN(CYG_AC_PATH_ITCL, [ CYG_AC_PATH_ITCLH CYG_AC_PATH_ITCLLIB CYG_AC_PATH_ITCLSH CYG_AC_PATH_ITCLMKIDX])AC_DEFUN(CYG_AC_PATH_ITCLH, [dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."no_itcl=trueAC_MSG_CHECKING(for Itcl headers in the source tree)AC_ARG_WITH(itclinclude, [ --with-itclinclude directory where itcl headers are], with_itclinclude=${withval})AC_CACHE_VAL(ac_cv_c_itclh,[dnl first check to see if --with-itclinclude was specifiedif test x"${with_itclinclude}" != x ; then if test -f ${with_itclinclude}/itcl.h ; then ac_cv_c_itclh=`(cd ${with_itclinclude}; pwd)` elif test -f ${with_itclinclude}/src/itcl.h ; then ac_cv_c_itclh=`(cd ${with_itclinclude}/src; pwd)` else AC_MSG_ERROR([${with_itclinclude} directory doesn't contain headers]) fifidnl next check if it came with Itcl configuration fileif test x"${ac_cv_c_itclconfig}" != x ; then for i in $dirlist; do if test -f $ac_cv_c_itclconfig/$i/src/itcl.h ; then ac_cv_c_itclh=`(cd $ac_cv_c_itclconfig/$i/src; pwd)` break fi donefidnl next check in private source directorydnl since ls returns lowest version numbers first, reverse its outputif test x"${ac_cv_c_itclh}" = x ; then dnl find the top level Itcl source directory for i in $dirlist; do if test -n "`ls -dr $srcdir/$i/itcl* 2>/dev/null`" ; then itclpath=$srcdir/$i break fi done dnl find the exact Itcl source dir. We do it this way, cause there dnl might be multiple version of Itcl, and we want the most recent one. for i in `ls -dr $itclpath/itcl* 2>/dev/null ` ; do if test -f $i/src/itcl.h ; then ac_cv_c_itclh=`(cd $i/src; pwd)` break fi donefidnl see if one is installedif test x"${ac_cv_c_itclh}" = x ; then AC_MSG_RESULT(none) AC_CHECK_HEADER(itcl.h, ac_cv_c_itclh=installed, ac_cv_c_itclh="")else AC_MSG_RESULT(${ac_cv_c_itclh})fi]) ITCLHDIR=""if test x"${ac_cv_c_itclh}" = x ; then AC_MSG_ERROR([Can't find any Itcl headers])fiif test x"${ac_cv_c_itclh}" != x ; then no_itcl="" if test x"${ac_cv_c_itclh}" != x"installed" ; then AC_MSG_RESULT(${ac_cv_c_itclh}) ITCLHDIR="-I${ac_cv_c_itclh}" fifiAC_SUBST(ITCLHDIR)])dnl Ok, lets find the itcl librarydnl First, look for one uninstalled. dnl the alternative search directory is invoked by --with-itcllibAC_DEFUN(CYG_AC_PATH_ITCLLIB, [dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."if test x"${no_itcl}" = x ; then dnl we reset no_itcl incase something fails here no_itcl=true AC_ARG_WITH(itcllib, [ --with-itcllib directory where the itcl library is], with_itcllib=${withval}) AC_MSG_CHECKING([for Itcl library]) AC_CACHE_VAL(ac_cv_c_itcllib,[ dnl First check to see if --with-itcllib was specified. if test x"${with_itcllib}" != x ; then if test -f "${with_itcllib}/libitcl$TCL_SHARED_LIB_SUFFIX" ; then ac_cv_c_itcllib=`(cd ${with_itcllib}; pwd)`/libitcl$TCL_SHARED_LIB_SUFFIX else if test -f "${with_itcllib}/libitcl$TCL_UNSHARED_LIB_SUFFIX"; then ac_cv_c_itcllib=`(cd ${with_itcllib}; pwd)`/libitcl$TCL_UNSHARED_LIB_SUFFIX fi fi fi dnl then check for a Itcl library. Since these are uninstalled, dnl use the simple lib name root. if test x"${ac_cv_c_itcllib}" = x ; then dnl find the top level Itcl build directory for i in $dirlist; do if test -n "`ls -dr $i/itcl* 2>/dev/null`" ; then itclpath=$i/itcl break fi done dnl Itcl 7.5 and greater puts library in subdir. Look there first. if test -f "$itclpath/src/libitcl.$TCL_SHLIB_SUFFIX" ; then ac_cv_c_itcllib=`(cd $itclpath/src; pwd)` elif test -f "$itclpath/src/libitcl.a"; then ac_cv_c_itcllib=`(cd $itclpath/src; pwd)` fi fi dnl check in a few other private locations if test x"${ac_cv_c_itcllib}" = x ; then for i in ${dirlist}; do if test -n "`ls -dr ${srcdir}/$i/itcl* 2>/dev/null`" ; then itclpath=${srcdir}/$i break fi done for i in `ls -dr ${itclpath}/itcl* 2>/dev/null` ; do dnl Itcl 7.5 and greater puts library in subdir. Look there first. if test -f "$i/src/libitcl$TCL_SHLIB_SUFFIX" ; then ac_cv_c_itcllib=`(cd $i/src; pwd)` break elif test -f "$i/src/libitcl.a"; then ac_cv_c_itcllib=`(cd $i/src; pwd)` break fi done fi dnl see if one is conveniently installed with the compiler if test x"${ac_cv_c_itcllib}" = x ; then dnl Get the path to the compiler ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib dnl Itcl 7.5 and greater puts library in subdir. Look there first. if test -f "${ccpath}/libitcl$TCL_SHLIB_SUFFIX" ; then ac_cv_c_itcllib=`(cd ${ccpath}; pwd)` elif test -f "${ccpath}/libitcl.a"; then ac_cv_c_itcllib=`(cd ${ccpath}; pwd)` fi fi ]) if test x"${ac_cv_c_itcllib}" = x ; then ITCLLIB="" AC_MSG_WARN(Can't find Itcl library) else ITCLLIB="-L${ac_cv_c_itcllib}" AC_MSG_RESULT(${ac_cv_c_itcllib}) no_itcl="" fifiAC_PROVIDE([$0])AC_SUBST(ITCLLIB)])dnl ====================================================================dnl Ok, lets find the itcl source trees so we can use the itcl_sh scriptdnl the alternative search directory is involked by --with-itclincludeAC_DEFUN(CYG_AC_PATH_ITCLSH, [dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."no_itcl=trueAC_MSG_CHECKING(for the itcl_sh script)AC_ARG_WITH(itclinclude, [ --with-itclinclude directory where itcl headers are], with_itclinclude=${withval})AC_CACHE_VAL(ac_cv_c_itclsh,[dnl first check to see if --with-itclinclude was specifiedif test x"${with_itclinclude}" != x ; then if test -f ${with_itclinclude}/itcl_sh ; then ac_cv_c_itclsh=`(cd ${with_itclinclude}; pwd)` elif test -f ${with_itclinclude}/src/itcl_sh ; then ac_cv_c_itclsh=`(cd ${with_itclinclude}/src; pwd)` else AC_MSG_ERROR([${with_itclinclude} directory doesn't contain itcl_sh]) fifidnl next check in private source directorydnl since ls returns lowest version numbers first, reverse its outputif test x"${ac_cv_c_itclsh}" = x ; then dnl find the top level Itcl source directory for i in $dirlist; do if test -n "`ls -dr $srcdir/$i/itcl* 2>/dev/null`" ; then itclpath=$srcdir/$i break fi done dnl find the exact Itcl source dir. We do it this way, cause there dnl might be multiple version of Itcl, and we want the most recent one. for i in `ls -dr $itclpath/itcl* 2>/dev/null ` ; do if test -f $i/src/itcl_sh ; then ac_cv_c_itclsh=`(cd $i/src; pwd)`/itcl_sh break fi donefidnl see if one is installedif test x"${ac_cv_c_itclsh}" = x ; then AC_MSG_RESULT(none) AC_PATH_PROG(ac_cv_c_itclsh, itcl_sh)else AC_MSG_RESULT(${ac_cv_c_itclsh})fi])if test x"${ac_cv_c_itclsh}" = x ; then AC_MSG_ERROR([Can't find the itcl_sh script])fiif test x"${ac_cv_c_itclsh}" != x ; then no_itcl="" AC_MSG_RESULT(${ac_cv_c_itclsh}) ITCLSH="${ac_cv_c_itclsh}"fiAC_SUBST(ITCLSH)])dnl ====================================================================dnl Ok, lets find the itcl source trees so we can use the itcl_sh scriptdnl the alternative search directory is involked by --with-itclincludeAC_DEFUN(CYG_AC_PATH_ITCLMKIDX, [dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."no_itcl=trueAC_MSG_CHECKING(for itcl_mkindex.tcl script)AC_ARG_WITH(itclinclude, [ --with-itclinclude directory where itcl headers are], with_itclinclude=${withval})AC_CACHE_VAL(ac_cv_c_itclmkidx,[dnl first check to see if --with-itclinclude was specifiedif test x"${with_itclinclude}" != x ; then if test -f ${with_itclinclude}/itcl_sh ; then ac_cv_c_itclmkidx=`(cd ${with_itclinclude}; pwd)` elif test -f ${with_itclinclude}/src/itcl_sh ; then ac_cv_c_itclmkidx=`(cd ${with_itclinclude}/src; pwd)` else AC_MSG_ERROR([${with_itclinclude} directory doesn't contain itcl_sh]) fifidnl next check in private source directorydnl since ls returns lowest version numbers first, reverse its outputif test x"${ac_cv_c_itclmkidx}" = x ; then dnl find the top level Itcl source directory for i in $dirlist; do if test -n "`ls -dr $srcdir/$i/itcl* 2>/dev/null`" ; then itclpath=$srcdir/$i break fi done dnl find the exact Itcl source dir. We do it this way, cause there dnl might be multiple version of Itcl, and we want the most recent one. for i in `ls -dr $itclpath/itcl* 2>/dev/null ` ; do if test -f $i/library/itcl_mkindex.tcl ; then ac_cv_c_itclmkidx=`(cd $i/library; pwd)`/itcl_mkindex.tcl break fi donefiif test x"${ac_cv_c_itclmkidx}" = x ; then dnl Get the path to the compiler ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/share dnl Itcl 7.5 and greater puts library in subdir. Look there first. for i in `ls -dr $ccpath/itcl* 2>/dev/null ` ; do if test -f $i/itcl_mkindex.tcl ; then ac_cv_c_itclmkidx=`(cd $i; pwd)`/itcl_mkindex.tcl break fi donefi])if test x"${ac_cv_c_itclmkidx}" = x ; then AC_MSG_ERROR([Can't find the itcl_mkindex.tcl script])fiif test x"${ac_cv_c_itclmkidx}" != x ; then no_itcl="" AC_MSG_RESULT(${ac_cv_c_itclmkidx}) ITCLMKIDX="${ac_cv_c_itclmkidx}"else AC_MSG_RESULT(none)fiAC_SUBST(ITCLMKIDX)])dnl ====================================================================dnl Ok, lets find the tix source trees so we can use the headersdnl the alternative search directory is involked by --with-tixincludeAC_DEFUN(CYG_AC_PATH_TIX, [ CYG_AC_PATH_TIXH CYG_AC_PATH_TIXLIB])AC_DEFUN(CYG_AC_PATH_TIXH, [dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."no_tix=trueAC_MSG_CHECKING(for Tix headers in the source tree)AC_ARG_WITH(tixinclude, [ --with-tixinclude directory where tix headers are], with_tixinclude=${withval})AC_CACHE_VAL(ac_cv_c_tixh,[dnl first check to see if --with-tixinclude was specifiedif test x"${with_tixinclude}" != x ; then if test -f ${with_tixinclude}/tix.h ; then ac_cv_c_tixh=`(cd ${with_tixinclude}; pwd)` elif test -f ${with_tixinclude}/generic/tix.h ; then ac_cv_c_tixh=`(cd ${with_tixinclude}/generic; pwd)` else AC_MSG_ERROR([${with_tixinclude} directory doesn't contain headers]) fifidnl next check if it came with Tix configuration fileif test x"${ac_cv_c_tixconfig}" != x ; then for i in $dirlist; do if test -f $ac_cv_c_tixconfig/$i/generic/tix.h ; then ac_cv_c_tixh=`(cd $ac_cv_c_tixconfig/$i/generic; pwd)` break fi donefidnl next check in private source directorydnl since ls returns lowest version numbers first, reverse its outputif test x"${ac_cv_c_tixh}" = x ; then dnl find the top level Tix source directory for i in $dirlist; do if test -n "`ls -dr $srcdir/$i/tix* 2>/dev/null`" ; then tixpath=$srcdir/$i break fi done dnl find the exact Tix source dir. We do it this way, cause there dnl might be multiple version of Tix, and we want the most recent one.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?