summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-16 11:48:59 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:33 +0100
commit25f1ea12693a5ae24c879e7d01d695e3dde5c623 (patch)
tree6ca2bc49a1e8778207ab68e1645b8f91f9f87b70 /source4
parent413e992ae4a5641acbad3c0ad2b88ddd00f56714 (diff)
downloadsamba-25f1ea12693a5ae24c879e7d01d695e3dde5c623.tar.gz
samba-25f1ea12693a5ae24c879e7d01d695e3dde5c623.tar.bz2
samba-25f1ea12693a5ae24c879e7d01d695e3dde5c623.zip
r25999: libreplace: add AC_LIBREPLACE_STLD and AC_LIBREPLACE_STLD_FLAGS
metze (This used to be commit c7b0b4c21e1fc4093c9109e046f23c19489e7400)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/libreplace_ld.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4
index 8bac16094e..46ddfb4ed6 100644
--- a/source4/lib/replace/libreplace_ld.m4
+++ b/source4/lib/replace/libreplace_ld.m4
@@ -3,6 +3,21 @@
# http://www.fortran-2000.com/ArnaudRecipes/sharedlib.html
#
+AC_DEFUN([AC_LIBREPLACE_STLD],
+[
+ AC_PATH_PROG(PROG_AR, ar)
+
+ STLD=${PROG_AR}
+
+ AC_SUBST(STLD)
+])
+
+AC_DEFUN([AC_LIBREPLACE_STLD_FLAGS],
+[
+ STLD_FLAGS="-rcs"
+ AC_SUBST(STLD_FLAGS)
+])
+
AC_DEFUN([AC_LD_EXPORT_DYNAMIC],
[
saved_LDFLAGS="$LDFLAGS"