📄 configure
字号:
cat > conftest.$ac_ext <<EOF#line 1251 "configure"#include "confdefs.h"$ac_declarationint main() {exit (42);; return 0; }EOFif { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneif test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.hfi echo $ac_n "checking for object suffix""... $ac_c" 1>&6echo "configure:1275: checking for object suffix" >&5if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -f conftest*echo 'int i = 1;' > conftest.$ac_extif { (eval echo configure:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; esac doneelse { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }firm -f conftest*fiecho "$ac_t""$ac_cv_objext" 1>&6OBJEXT=$ac_cv_objextac_objext=$ac_cv_objext echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6echo "configure:1299: checking for Cygwin environment" >&5if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1304 "configure"#include "confdefs.h"int main() {#ifndef __CYGWIN__#define __CYGWIN__ __CYGWIN32__#endifreturn __CYGWIN__;; return 0; }EOFif { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_cygwin=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_cygwin" 1>&6CYGWIN=test "$ac_cv_cygwin" = yes && CYGWIN=yesecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6echo "configure:1332: checking for mingw32 environment" >&5if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1337 "configure"#include "confdefs.h"int main() {return __MINGW32__;; return 0; }EOFif { (eval echo configure:1344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_mingw32=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_mingw32" 1>&6MINGW32=test "$ac_cv_mingw32" = yes && MINGW32=yesecho $ac_n "checking for executable suffix""... $ac_c" 1>&6echo "configure:1363: checking for executable suffix" >&5if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$CYGWIN" = yes || test "$MINGW32" = yes; then ac_cv_exeext=.exeelse rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; esac done else { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } fi rm -f conftest* test x"${ac_cv_exeext}" = x && ac_cv_exeext=nofifiEXEEXT=""test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}echo "$ac_t""${ac_cv_exeext}" 1>&6ac_exeext=$EXEEXT ecos_CFLAGS="" ecos_CXXFLAGS="" ecos_LDADD="" ecos_INCLUDES="" ecos_LIBS="" echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6echo "configure:1411: checking "for Visual C++"" >&5 MSVC="no"; if test "${CC}" = "cl" ; then MSVC="yes" CXX="cl" MSVC_SRCDIR=${srcdir} if test "${MSVC}" = "yes" ; then MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /` fi ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\"" ecos_LDADD="-link" ecos_LIBS="advapi32.lib" fi if test "${MSVC}" = "yes"; then MSVC_TRUE= MSVC_FALSE='#'else MSVC_TRUE='#' MSVC_FALSE=fi if test "${MSVC}" = "yes" ; then echo "$ac_t""unfortunately yes" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6echo "configure:1451: checking "the default compiler flags"" >&5 ecosflags_enable_debug="no" # Check whether --enable-debug or --disable-debug was given.if test "${enable_debug+set}" = set; then enableval="$enable_debug" case "${enableval}" in yes) ecosflags_enable_debug="yes" ;; *) ecosflags_enable_debug="no" ;; esacfi ecosflags_enable_ansi="no" if test "${MSVC}" = "yes" ; then # Check whether --enable-ansi or --disable-ansi was given.if test "${enable_ansi+set}" = set; then enableval="$enable_ansi" case "${enableval}" in yes) ecosflags_enable_ansi="yes" ;; *) ecosflags_enable_ansi="no" ;; esacfi fi if test "${GCC}" = "yes" ; then ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs" ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual" elif test "${MSVC}" = "yes" ; then ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3" ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX" else { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; } fi if test "${ecosflags_enable_debug}" = "yes" ; then if test "${GCC}" = "yes" ; then ecos_CFLAGS="${ecos_CFLAGS} -g -O0" ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0" elif test "${MSVC}" = "yes" ; then ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi" ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi" fi else if test "${GCC}" = "yes" ; then ecos_CFLAGS="${ecos_CFLAGS} -O0" ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0" elif test "${MSVC}" = "yes" ; then ecos_CFLAGS="${ecos_CFLAGS} -MD -O2" ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2" fi fi CFLAGS="${ac_save_CFLAGS}" CXXFLAGS="${ac_save_CXXFLAGS}" echo "$ac_t""done" 1>&6 ecos_tk_libs="" ecos_tk_libdir="" echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6echo "configure:1520: checking for Tcl installation" >&5 # Check whether --with-tcl or --without-tcl was given.if test "${with_tcl+set}" = set; then withval="$with_tcl" :fi # Check whether --with-tcl-version or --without-tcl-version was given.if test "${with_tcl_version+set}" = set; then withval="$with_tcl_version" :fi if test "${MSVC}" = "yes" ; then # Check whether --with-tcl-header or --without-tcl-header was given.if test "${with_tcl_header+set}" = set; then withval="$with_tcl_header" :fi # Check whether --with-tcl-lib or --without-tcl-lib was given.if test "${with_tcl_lib+set}" = set; then withval="$with_tcl_lib" :fi ecos_tcl_incdir="" ecos_tcl_libdir="" if test "${with_tcl_version+set}" != set ; then { echo "configure: error: You must specify a Tcl version using --with-tcl-version=<vsn>" 1>&2; exit 1; } fi if test "${with_tcl_header+set}" = set ; then ecos_tcl_incdir=${with_tcl_header} elif test "${with_tcl+set}" = set ; then ecos_tcl_incdir="${with_tcl}/include" else { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; } fi if test "${with_tcl_lib+set}" = set; then ecos_tcl_libdir=${with_tcl_lib} elif test "${with_tcl+set}" = set; then ecos_tcl_libdir="${with_tcl}/lib" else { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; } fi if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; } fi if test "${MSVC}" = "yes" ; then ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /` fi if test "${MSVC}" = "yes" ; then ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /` fi ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\"" ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib" ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\"" ecos_tk_libs="" else possibles="" if test "${with_tcl+set}" = set ; then possibles="${with_tcl}/lib" if test "${with_tcl_version+set}" = set ; then possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}" fi fi possibles="${possibles} ${prefix}/lib" if test "${with_tcl_version+set}" = set ; then possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}" fi possibles="${possibles} /usr/lib" if test "${with_tcl_version+set}" = set ; then possibles="${possibles} /usr/lib/tcl${with_tcl_version}" fi tclconfig="" for i in ${possibles}; do if test -r "$i/"tclConfig.sh""; then tclconfig=$i break fi done if test \! -r "${tclconfig}/tclConfig.sh" ; then { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; } else . ${tclconfig}/tclConfig.sh if test -z "${TCL_INC_DIR}" ; then ecos_tcl_incdir="${TCL_PREFIX}/include" else ecos_tcl_incdir="${TCL_INC_DIR}" fi if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; } else if test "${ecos_tcl_incdir}" != "/usr/include" ; then ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}" fi fi if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then libtcl="" for i in ${possibles}; do if test -r "$i/"libtcl${with_tcl_version}.a""; then libtcl=$i break fi done if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}" fi fi if test -z "${TCL_LIB_SPEC}" ; then libtcl="" for i in ${possibles}; do if test -r "$i/"libtcl.a""; then libtcl=$i break fi done if test -r "${libtcl}/libtcl.a" ; then TCL_LIB_SPEC="-L${libtcl} -ltcl" fi fi if test -z "${TCL_LIB_SPEC}" ; then { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; } fi ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -