[llvm-commits] CVS: llvm/autoconf/configure.am

Reid Spencer reid at x10sys.com
Wed Oct 13 04:53:22 PDT 2004



Changes in directory llvm/autoconf:

configure.am updated: 1.3 -> 1.4
---
Log message:

Set up BUILD_MODE based on the configuration so the default build mode
is established from configuration. Also, don't make the ENABLE_ options
AM_CONDITIONALs.


---
Diffs of the changes:  (+11 -4)

Index: llvm/autoconf/configure.am
diff -u llvm/autoconf/configure.am:1.3 llvm/autoconf/configure.am:1.4
--- llvm/autoconf/configure.am:1.3	Sun Oct 10 17:17:02 2004
+++ llvm/autoconf/configure.am	Wed Oct 13 06:53:12 2004
@@ -72,7 +72,6 @@
   esac],
   [ENABLE_OPTIMIZED=0])
 AC_SUBST(ENABLE_OPTIMIZED)
-AM_CONDITIONAL(ENABLE_OPTIMIZED,test $ENABLE_OPTIMIZED = 1)
 
 dnl Specify whether to build profiled or not
 AC_ARG_ENABLE(profiled,
@@ -86,7 +85,16 @@
   esac],
   [ENABLE_PROFILED=0])
 AC_SUBST(ENABLE_PROFILED,$ENABLE_PROFILED)
-AM_CONDITIONAL(ENABLE_PROFILED,test $ENABLE_PROFILED = 1)
+
+if test $ENABLE_PROFILED = 1 ; then
+  AC_SUBST(BUILDMODE,Profile)
+else
+  if test $ENABLE_OPTIMIZED = 1 ; then
+    AC_SUBST(BUILDMODE,Release)
+  else
+    AC_SUBST(BUILDMODE,Debug)
+  fi
+fi
 
 dnl JIT Option
 AC_ARG_ENABLE(jit,
@@ -169,7 +177,7 @@
 
 dnl Check for compilation tools
 AC_PROG_CXX
-AC_PROG_CC(gcc)
+AC_PROG_CC
 AC_PROG_CPP
 
 dnl Checks for other build tools
@@ -489,7 +497,6 @@
 
 dnl Configure makefiles
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([Makefile.rules])
 AC_CONFIG_FILES([lib/Makefile])
 AC_CONFIG_FILES([lib/Analysis/IPA/Makefile])
 AC_CONFIG_FILES([lib/Analysis/Makefile])






More information about the llvm-commits mailing list