summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/replace.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-05 23:32:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:18 -0500
commitea086c1cc894f3bf54688d9435174fe33ec6ffd2 (patch)
tree337fed1ed263a8b8a16f1b196ee20ea645b8f764 /source4/lib/ldb/replace.m4
parent1bd0211698df34ab3ec41cfd962d144be88e724b (diff)
downloadsamba-ea086c1cc894f3bf54688d9435174fe33ec6ffd2.tar.gz
samba-ea086c1cc894f3bf54688d9435174fe33ec6ffd2.tar.xz
samba-ea086c1cc894f3bf54688d9435174fe33ec6ffd2.zip
r18109: move ldb to use the same build methods
(This used to be commit 28dcbb512fecd825428c5d5f343ec16e4a6906f9)
Diffstat (limited to 'source4/lib/ldb/replace.m4')
-rw-r--r--source4/lib/ldb/replace.m460
1 files changed, 0 insertions, 60 deletions
diff --git a/source4/lib/ldb/replace.m4 b/source4/lib/ldb/replace.m4
deleted file mode 100644
index e06cb7e85a..0000000000
--- a/source4/lib/ldb/replace.m4
+++ /dev/null
@@ -1,60 +0,0 @@
-dnl Try to find a replacement library
-dnl Will define HAVE_REPLACE_H if replace.h can be found
-AC_DEFUN([SMB_LIBREPLACE], [
-AC_ARG_WITH(libreplace,
-[ --with-libreplace Specify location to libreplace],
-[
- # Check whether libreplace can actually be found in this location
- if ! test -f "$withval/replace.h"
- then
- AC_MSG_ERROR([Unable to find replace.h in $withval])
- fi
- replacedir=$withval
-],
-[
- # Check if we can find libreplace in a common location
- for dir in . replace ../replace
- do
- AC_MSG_CHECKING([for libreplace in $dir])
- if test -f "$dir/replace.h"
- then
- replacedir="$dir"
- AC_MSG_RESULT(yes)
- break
- fi
- AC_MSG_RESULT(no)
- done
-])
-
-AC_SUBST(REPLACE_LIB)
-AC_SUBST(REPLACE_DIR)
-
-if test "$replacedir" != ""
-then
- REPLACE_DIR="$replacedir"
- REPLACE_LIB="$replacedir/libreplace.a"
- CFLAGS="$CFLAGS -I$replacedir"
- AC_DEFINE(HAVE_REPLACE_H, 1,
- [Whether replace.h is present and should be used])
-fi
-])
-
-dnl Try to find the specified functions in the system, or
-dnl in Samba's replacement library. In the future, this may also
-dnl try to find these functions in libroken or GNUlib if libreplace can't be
-dnl found.
-AC_DEFUN(SMB_REPLACE_FUNCS, [
- AC_REQUIRE([SMB_LIBREPLACE])dnl
-
- if test -z "$replacedir" || test -f "$replacedir/libreplace.a"
- then
- LIBS="$LIBS $REPLACE_LIB"
- for f in $1
- do
- AC_CHECK_FUNC($f, [], [
- AC_MSG_ERROR([Unable to find $f in the system. Consider
- specifying the path to the replacement library])
- ])
- done
- fi
-])