llvm.org GIT mirror llvm / c28ccd8
Change the assertions defaults: 1. Assertions now default to on for all builds 2. If you want them disabled you must (a) --disable-assertions to configure or DISABLE_ASSERTIONS=1 to make. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27548 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
3 changed file(s) with 43 addition(s) and 47 deletion(s). Raw diff Collapse all Expand all
185185
186186 # When ENABLE_ASSERTIONS is enabled, builds of all of the LLVM code will include
187187 # assertion checks, otherwise they are not included.
188 #ENABLE_ASSERTIONS = 1
189 @ENABLE_ASSERTIONS@
188 #DISABLE_ASSERTIONS = 1
189 @DISABLE_ASSERTIONS@
190190
191191 # When DEBUG_RUNTIME is enabled, the runtime libraries will retain debug
192192 # symbols.
192192 if test -d "CVS" -o -d "${srcdir}/CVS"; then
193193 cvsbuild="yes"
194194 optimize="no"
195 asserts="yes"
196195 AC_SUBST(CVSBUILD,[[CVSBUILD=1]])
197196 else
198197 cvsbuild="no"
199198 optimize="yes"
200 asserts="no"
201199 fi
202200
203201 dnl===-----------------------------------------------------------------------===
217215
218216 dnl --enable-assertions : check whether they want to turn on assertions or not:
219217 AC_ARG_ENABLE(assertions,AS_HELP_STRING(
220 [--enable-assertions,Compile with assertion checks enabled (default is NO)]),, enableval=$asserts)
221 if test ${enableval} = "no" ; then
222 AC_SUBST(ENABLE_ASSERTIONS,[[]])
218 [--enable-assertions,Compile with assertion checks enabled (default is YES)]),, enableval="yes")
219 if test ${enableval} = "yes" ; then
220 AC_SUBST(DISABLE_ASSERTIONS,[[]])
223221 else
224 AC_SUBST(ENABLE_ASSERTIONS,[[ENABLE_ASSERTIONS=1]])
222 AC_SUBST(DISABLE_ASSERTIONS,[[DISABLE_ASSERTIONS=1]])
225223 fi
226224
227225 dnl --enable-debug-runtime : should runtime libraries have debug symbols?
475475 # include
476476 #endif"
477477
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED ENABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479479 ac_subst_files=''
480480
481481 # Initialize some variables set by options.
29702970 if test -d "CVS" -o -d "${srcdir}/CVS"; then
29712971 cvsbuild="yes"
29722972 optimize="no"
2973 asserts="yes"
29742973 CVSBUILD=CVSBUILD=1
29752974
29762975 else
29772976 cvsbuild="no"
29782977 optimize="yes"
2979 asserts="no"
29802978 fi
29812979
29822980
30002998 enableval="$enable_assertions"
30012999
30023000 else
3003 enableval=$asserts
3001 enableval="yes"
30043002 fi;
3005 if test ${enableval} = "no" ; then
3006 ENABLE_ASSERTIONS=
3007
3008 else
3009 ENABLE_ASSERTIONS=ENABLE_ASSERTIONS=1
3003 if test ${enableval} = "yes" ; then
3004 DISABLE_ASSERTIONS=
3005
3006 else
3007 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
30103008
30113009 fi
30123010
84668464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
84678465 lt_status=$lt_dlunknown
84688466 cat > conftest.$ac_ext <
8469 #line 8470 "configure"
8467 #line 8468 "configure"
84708468 #include "confdefs.h"
84718469
84728470 #if HAVE_DLFCN_H
1045710455 ;;
1045810456 *-*-irix6*)
1045910457 # Find out which ABI we are using.
10460 echo '#line 10461 "configure"' > conftest.$ac_ext
10458 echo '#line 10459 "configure"' > conftest.$ac_ext
1046110459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1046210460 (eval $ac_compile) 2>&5
1046310461 ac_status=$?
1094210940
1094310941
1094410942 # Provide some information about the compiler.
10945 echo "$as_me:10946:" \
10943 echo "$as_me:10944:" \
1094610944 "checking for Fortran 77 compiler version" >&5
1094710945 ac_compiler=`set X $ac_compile; echo $2`
1094810946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1199911997 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1200011998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1200111999 -e 's:$: $lt_compiler_flag:'`
12002 (eval echo "\"\$as_me:12003: $lt_compile\"" >&5)
12000 (eval echo "\"\$as_me:12001: $lt_compile\"" >&5)
1200312001 (eval "$lt_compile" 2>conftest.err)
1200412002 ac_status=$?
1200512003 cat conftest.err >&5
12006 echo "$as_me:12007: \$? = $ac_status" >&5
12004 echo "$as_me:12005: \$? = $ac_status" >&5
1200712005 if (exit $ac_status) && test -s "$ac_outfile"; then
1200812006 # The compiler can only warn and ignore the option if not recognized
1200912007 # So say no if there are warnings
1224212240 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1224312241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1224412242 -e 's:$: $lt_compiler_flag:'`
12245 (eval echo "\"\$as_me:12246: $lt_compile\"" >&5)
12243 (eval echo "\"\$as_me:12244: $lt_compile\"" >&5)
1224612244 (eval "$lt_compile" 2>conftest.err)
1224712245 ac_status=$?
1224812246 cat conftest.err >&5
12249 echo "$as_me:12250: \$? = $ac_status" >&5
12247 echo "$as_me:12248: \$? = $ac_status" >&5
1225012248 if (exit $ac_status) && test -s "$ac_outfile"; then
1225112249 # The compiler can only warn and ignore the option if not recognized
1225212250 # So say no if there are warnings
1230212300 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1230312301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1230412302 -e 's:$: $lt_compiler_flag:'`
12305 (eval echo "\"\$as_me:12306: $lt_compile\"" >&5)
12303 (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
1230612304 (eval "$lt_compile" 2>out/conftest.err)
1230712305 ac_status=$?
1230812306 cat out/conftest.err >&5
12309 echo "$as_me:12310: \$? = $ac_status" >&5
12307 echo "$as_me:12308: \$? = $ac_status" >&5
1231012308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1231112309 then
1231212310 # The compiler can only warn and ignore the option if not recognized
1448714485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1448814486 lt_status=$lt_dlunknown
1448914487 cat > conftest.$ac_ext <
14490 #line 14491 "configure"
14488 #line 14489 "configure"
1449114489 #include "confdefs.h"
1449214490
1449314491 #if HAVE_DLFCN_H
1458514583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1458614584 lt_status=$lt_dlunknown
1458714585 cat > conftest.$ac_ext <
14588 #line 14589 "configure"
14586 #line 14587 "configure"
1458914587 #include "confdefs.h"
1459014588
1459114589 #if HAVE_DLFCN_H
1677816776 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1677916777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1678016778 -e 's:$: $lt_compiler_flag:'`
16781 (eval echo "\"\$as_me:16782: $lt_compile\"" >&5)
16779 (eval echo "\"\$as_me:16780: $lt_compile\"" >&5)
1678216780 (eval "$lt_compile" 2>conftest.err)
1678316781 ac_status=$?
1678416782 cat conftest.err >&5
16785 echo "$as_me:16786: \$? = $ac_status" >&5
16783 echo "$as_me:16784: \$? = $ac_status" >&5
1678616784 if (exit $ac_status) && test -s "$ac_outfile"; then
1678716785 # The compiler can only warn and ignore the option if not recognized
1678816786 # So say no if there are warnings
1683816836 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1683916837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1684016838 -e 's:$: $lt_compiler_flag:'`
16841 (eval echo "\"\$as_me:16842: $lt_compile\"" >&5)
16839 (eval echo "\"\$as_me:16840: $lt_compile\"" >&5)
1684216840 (eval "$lt_compile" 2>out/conftest.err)
1684316841 ac_status=$?
1684416842 cat out/conftest.err >&5
16845 echo "$as_me:16846: \$? = $ac_status" >&5
16843 echo "$as_me:16844: \$? = $ac_status" >&5
1684616844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1684716845 then
1684816846 # The compiler can only warn and ignore the option if not recognized
1819918197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1820018198 lt_status=$lt_dlunknown
1820118199 cat > conftest.$ac_ext <
18202 #line 18203 "configure"
18200 #line 18201 "configure"
1820318201 #include "confdefs.h"
1820418202
1820518203 #if HAVE_DLFCN_H
1829718295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1829818296 lt_status=$lt_dlunknown
1829918297 cat > conftest.$ac_ext <
18300 #line 18301 "configure"
18298 #line 18299 "configure"
1830118299 #include "confdefs.h"
1830218300
1830318301 #if HAVE_DLFCN_H
1913419132 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1913519133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1913619134 -e 's:$: $lt_compiler_flag:'`
19137 (eval echo "\"\$as_me:19138: $lt_compile\"" >&5)
19135 (eval echo "\"\$as_me:19136: $lt_compile\"" >&5)
1913819136 (eval "$lt_compile" 2>conftest.err)
1913919137 ac_status=$?
1914019138 cat conftest.err >&5
19141 echo "$as_me:19142: \$? = $ac_status" >&5
19139 echo "$as_me:19140: \$? = $ac_status" >&5
1914219140 if (exit $ac_status) && test -s "$ac_outfile"; then
1914319141 # The compiler can only warn and ignore the option if not recognized
1914419142 # So say no if there are warnings
1919419192 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1919519193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1919619194 -e 's:$: $lt_compiler_flag:'`
19197 (eval echo "\"\$as_me:19198: $lt_compile\"" >&5)
19195 (eval echo "\"\$as_me:19196: $lt_compile\"" >&5)
1919819196 (eval "$lt_compile" 2>out/conftest.err)
1919919197 ac_status=$?
1920019198 cat out/conftest.err >&5
19201 echo "$as_me:19202: \$? = $ac_status" >&5
19199 echo "$as_me:19200: \$? = $ac_status" >&5
1920219200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1920319201 then
1920419202 # The compiler can only warn and ignore the option if not recognized
2123321231 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2123421232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2123521233 -e 's:$: $lt_compiler_flag:'`
21236 (eval echo "\"\$as_me:21237: $lt_compile\"" >&5)
21234 (eval echo "\"\$as_me:21235: $lt_compile\"" >&5)
2123721235 (eval "$lt_compile" 2>conftest.err)
2123821236 ac_status=$?
2123921237 cat conftest.err >&5
21240 echo "$as_me:21241: \$? = $ac_status" >&5
21238 echo "$as_me:21239: \$? = $ac_status" >&5
2124121239 if (exit $ac_status) && test -s "$ac_outfile"; then
2124221240 # The compiler can only warn and ignore the option if not recognized
2124321241 # So say no if there are warnings
2147621474 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2147721475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2147821476 -e 's:$: $lt_compiler_flag:'`
21479 (eval echo "\"\$as_me:21480: $lt_compile\"" >&5)
21477 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
2148021478 (eval "$lt_compile" 2>conftest.err)
2148121479 ac_status=$?
2148221480 cat conftest.err >&5
21483 echo "$as_me:21484: \$? = $ac_status" >&5
21481 echo "$as_me:21482: \$? = $ac_status" >&5
2148421482 if (exit $ac_status) && test -s "$ac_outfile"; then
2148521483 # The compiler can only warn and ignore the option if not recognized
2148621484 # So say no if there are warnings
2153621534 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2153721535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2153821536 -e 's:$: $lt_compiler_flag:'`
21539 (eval echo "\"\$as_me:21540: $lt_compile\"" >&5)
21537 (eval echo "\"\$as_me:21538: $lt_compile\"" >&5)
2154021538 (eval "$lt_compile" 2>out/conftest.err)
2154121539 ac_status=$?
2154221540 cat out/conftest.err >&5
21543 echo "$as_me:21544: \$? = $ac_status" >&5
21541 echo "$as_me:21542: \$? = $ac_status" >&5
2154421542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2154521543 then
2154621544 # The compiler can only warn and ignore the option if not recognized
2372123719 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2372223720 lt_status=$lt_dlunknown
2372323721 cat > conftest.$ac_ext <
23724 #line 23725 "configure"
23722 #line 23723 "configure"
2372523723 #include "confdefs.h"
2372623724
2372723725 #if HAVE_DLFCN_H
2381923817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2382023818 lt_status=$lt_dlunknown
2382123819 cat > conftest.$ac_ext <
23822 #line 23823 "configure"
23820 #line 23821 "configure"
2382323821 #include "confdefs.h"
2382423822
2382523823 #if HAVE_DLFCN_H
3154631544 s,@OBJEXT@,$OBJEXT,;t t
3154731545 s,@CVSBUILD@,$CVSBUILD,;t t
3154831546 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31549 s,@ENABLE_ASSERTIONS@,$ENABLE_ASSERTIONS,;t t
31547 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
3155031548 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
3155131549 s,@JIT@,$JIT,;t t
3155231550 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t