[llvm-commits] CVS: llvm/autoconf/configure.ac
Reid Spencer
reid at x10sys.com
Sat Dec 16 14:08:07 PST 2006
Changes in directory llvm/autoconf:
configure.ac updated: 1.255 -> 1.256
---
Log message:
Allow an --enable-pic option to turn on -fPIC compiler option when building.
The default is disabled until we know this doesn't break anyone.
---
Diffs of the changes: (+14 -0)
configure.ac | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.255 llvm/autoconf/configure.ac:1.256
--- llvm/autoconf/configure.ac:1.255 Sun Dec 10 17:12:42 2006
+++ llvm/autoconf/configure.ac Sat Dec 16 16:07:52 2006
@@ -322,6 +322,20 @@
esac
AC_DEFINE_UNQUOTED([ENABLE_THREADS],$ENABLE_THREADS,[Define if threads enabled])
+dnl Allow building with position independent code
+AC_ARG_ENABLE(pic,
+ AS_HELP_STRING([--enable-pic],
+ [Build LLVM with Position Independent Code (default is NO)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_PIC,[1]) ;;
+ no) AC_SUBST(ENABLE_PIC,[0]) ;;
+ default) AC_SUBST(ENABLE_PIC,[0]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-pic. Use "yes" or "no"]) ;;
+esac
+AC_DEFINE_UNQUOTED([ENABLE_PIC],$ENABLE_PIC,
+ [Define if position independent code is enabled])
+
dnl Allow specific targets to be specified for building (or not)
TARGETS_TO_BUILD=""
AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
More information about the llvm-commits
mailing list