summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-04-30 10:38:27 (GMT)
committerJason Evans <je@fb.com>2012-05-01 00:13:45 (GMT)
commit7cdea3973cab8640d1f44c7638ed5e30ed18be24 (patch)
tree151a5f1d72213a6c9a40adf5f3f2a5cf1aa229ea /configure.ac
parenta14bce85e885f83c96116cc5438ae52d740f3727 (diff)
downloadjemalloc-7cdea3973cab8640d1f44c7638ed5e30ed18be24.zip
jemalloc-7cdea3973cab8640d1f44c7638ed5e30ed18be24.tar.gz
jemalloc-7cdea3973cab8640d1f44c7638ed5e30ed18be24.tar.bz2
Few configure.ac adjustments
- Use the extensions autoconf finds for object and executable files. - Remove the sorev variable, and replace SOREV definition with sorev's. - Default to je_ prefix on win32.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 6 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac
index 98211c8..6e74238 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,14 +195,13 @@ AC_DEFINE_UNQUOTED([CPU_SPINWAIT], [$CPU_SPINWAIT])
LD_PRELOAD_VAR="LD_PRELOAD"
so="so"
-o="o"
+o="$ac_objext"
a="a"
-exe=
+exe="$ac_exeext"
libprefix="lib"
DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
RPATH='-Wl,-rpath,$(1)'
-SOREV='$(SO).$(REV)'
-sorev="${so}.${rev}"
+SOREV="${so}.${rev}"
PIC_CFLAGS='-fPIC -DPIC'
dnl Heap profiling uses the log(3) function.
@@ -226,8 +225,7 @@ case "${host}" in
so="dylib"
force_tls="0"
DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
- SOREV='$(REV).$(SO)'
- sorev="${rev}.${so}"
+ SOREV="${rev}.${so}"
;;
*-*-freebsd*)
CFLAGS="$CFLAGS"
@@ -281,12 +279,9 @@ case "${host}" in
RPATH=""
so="dll"
DSO_LDFLAGS="-shared"
- o="obj"
a="lib"
libprefix=""
- exe=".exe"
- SOREV='$(SO)'
- sorev="${so}"
+ SOREV="${so}"
PIC_CFLAGS=""
;;
*)
@@ -304,7 +299,6 @@ AC_SUBST([exe])
AC_SUBST([libprefix])
AC_SUBST([DSO_LDFLAGS])
AC_SUBST([SOREV])
-AC_SUBST([sorev])
AC_SUBST([PIC_CFLAGS])
JE_COMPILABLE([__attribute__ syntax],
@@ -419,7 +413,7 @@ dnl Do not prefix public APIs by default.
AC_ARG_WITH([jemalloc_prefix],
[AS_HELP_STRING([--with-jemalloc-prefix=<prefix>], [Prefix to prepend to all public APIs])],
[JEMALLOC_PREFIX="$with_jemalloc_prefix"],
- [if test "x$abi" != "xmacho" ; then
+ [if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
JEMALLOC_PREFIX=""
else
JEMALLOC_PREFIX="je_"