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

📄 configure

📁 yacc编译器
💻
📖 第 1 页 / 共 5 页
字号:
doneif test -n "$cf_new_cflags" ; then		CFLAGS="$CFLAGS $cf_new_cflags"fiif test -n "$cf_new_cppflags" ; then		CPPFLAGS="$cf_new_cppflags $CPPFLAGS"fiif test -n "$cf_new_extra_cppflags" ; then		EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"fi		;;	esac	;;esacif test "$with_dmalloc" = yes ; then	ac_safe=`echo "dmalloc.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for dmalloc.h""... $ac_c" 1>&6echo "configure:1907: checking for dmalloc.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1912 "configure"#include "confdefs.h"#include <dmalloc.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6echo "configure:1934: checking for dmalloc_debug in -ldmalloc" >&5ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-ldmalloc  $LIBS"cat > conftest.$ac_ext <<EOF#line 1942 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char dmalloc_debug();int main() {dmalloc_debug(); return 0; }EOFif { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-ldmalloc $LIBS"else  echo "$ac_t""no" 1>&6fielse  echo "$ac_t""no" 1>&6fifiecho $ac_n "checking if you want to use dbmalloc for testing""... $ac_c" 1>&6echo "configure:1989: checking if you want to use dbmalloc for testing" >&5# Check whether --with-dbmalloc or --without-dbmalloc was given.if test "${with_dbmalloc+set}" = set; then  withval="$with_dbmalloc"  cat >> confdefs.h <<\EOF#define USE_DBMALLOC 1EOF	 	: ${with_cflags:=-g}	: ${with_no_leaks:=yes}	 with_dbmalloc=yeselse  with_dbmalloc=fiecho "$ac_t""${with_dbmalloc:-no}" 1>&6case .$with_cflags in #(vi.*-g*)	case .$CFLAGS in #(vi	.*-g*) #(vi		;;	*)		cf_fix_cppflags=nocf_new_cflags=cf_new_cppflags=cf_new_extra_cppflags=for cf_add_cflags in -gdocase $cf_fix_cppflags inno)	case $cf_add_cflags in #(vi	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi		case $cf_add_cflags in		-D*)			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`			test "${cf_add_cflags}" != "${cf_tst_cflags}" \			&& test -z "${cf_tst_cflags}" \			&& cf_fix_cppflags=yes			if test $cf_fix_cppflags = yes ; then				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"				continue			elif test "${cf_tst_cflags}" = "\"'" ; then				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"				continue			fi			;;		esac		case "$CPPFLAGS" in		*$cf_add_cflags) #(vi			;;		*) #(vi			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"			;;		esac		;;	*)		cf_new_cflags="$cf_new_cflags $cf_add_cflags"		;;	esac	;;yes)	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`	test "${cf_add_cflags}" != "${cf_tst_cflags}" \	&& test -z "${cf_tst_cflags}" \	&& cf_fix_cppflags=no	;;esacdoneif test -n "$cf_new_cflags" ; then		CFLAGS="$CFLAGS $cf_new_cflags"fiif test -n "$cf_new_cppflags" ; then		CPPFLAGS="$cf_new_cppflags $CPPFLAGS"fiif test -n "$cf_new_extra_cppflags" ; then		EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"fi		;;	esac	;;esacif test "$with_dbmalloc" = yes ; then	ac_safe=`echo "dbmalloc.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for dbmalloc.h""... $ac_c" 1>&6echo "configure:2096: checking for dbmalloc.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2101 "configure"#include "confdefs.h"#include <dbmalloc.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6echo "configure:2123: checking for debug_malloc in -ldbmalloc" >&5ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-ldbmalloc  $LIBS"cat > conftest.$ac_ext <<EOF#line 2131 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char debug_malloc();int main() {debug_malloc(); return 0; }EOFif { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-ldbmalloc $LIBS"else  echo "$ac_t""no" 1>&6fielse  echo "$ac_t""no" 1>&6fifiecho $ac_n "checking if you want to use valgrind for testing""... $ac_c" 1>&6echo "configure:2178: checking if you want to use valgrind for testing" >&5# Check whether --with-valgrind or --without-valgrind was given.if test "${with_valgrind+set}" = set; then  withval="$with_valgrind"  cat >> confdefs.h <<\EOF#define USE_VALGRIND 1EOF	 	: ${with_cflags:=-g}	: ${with_no_leaks:=yes}	 with_valgrind=yeselse  with_valgrind=fiecho "$ac_t""${with_valgrind:-no}" 1>&6case .$with_cflags in #(vi.*-g*)	case .$CFLAGS in #(vi	.*-g*) #(vi		;;	*)		cf_fix_cppflags=nocf_new_cflags=cf_new_cppflags=cf_new_extra_cppflags=for cf_add_cflags in -gdocase $cf_fix_cppflags inno)	case $cf_add_cflags in #(vi	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi		case $cf_add_cflags in		-D*)			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`			test "${cf_add_cflags}" != "${cf_tst_cflags}" \			&& test -z "${cf_tst_cflags}" \			&& cf_fix_cppflags=yes			if test $cf_fix_cppflags = yes ; then				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"				continue			elif test "${cf_tst_cflags}" = "\"'" ; then				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"				continue			fi			;;		esac		case "$CPPFLAGS" in		*$cf_add_cflags) #(vi			;;		*) #(vi			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"			;;		esac		;;	*)		cf_new_cflags="$cf_new_cflags $cf_add_cflags"		;;	esac	;;yes)	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`	test "${cf_add_cflags}" != "${cf_tst_cflags}" \	&& test -z "${cf_tst_cflags}" \	&& cf_fix_cppflags=no	;;esacdoneif test -n "$cf_new_cflags" ; then		CFLAGS="$CFLAGS $cf_new_cflags"fiif test -n "$cf_new_cppflags" ; then		CPPFLAGS="$cf_new_cppflags $CPPFLAGS"fiif test -n "$cf_new_extra_cppflags" ; then		EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"fi		;;	esac	;;esacecho $ac_n "checking if you want to perform memory-leak testing""... $ac_c" 1>&6echo "configure:2289: checking if you want to perform memory-leak testing" >&5# Check whether --enable-leaks or --disable-leaks was given.if test "${enable_leaks+set}" = set; then  enableval="$enable_leaks"  with_no_leaks=yeselse  : ${with_no_leaks:=no}fiecho "$ac_t""$with_no_leaks" 1>&6if test "$with_no_leaks" = yes ; then	cat >> confdefs.h <<\EOF#define NO_LEAKS 1EOFfi###	output makefiletrap '' 1 2 15cat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs.  It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# creating it if it does not exist already.  You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.(set) 2>&1 |  case `(ac_space=' '; set | grep ac_space) 2>&1` in  *ac_space=\ *)    # `set' does not quote correctly, so add quotes (double-quote substitution    # turns \\\\ into \\, and sed turns \\ into \).    sed -n \      -e "s/'/'\\\\''/g" \      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"    ;;  *)    # `set' quotes correctly as required by POSIX, so do not add quotes.    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9

⌨️ 快捷键说明

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