r18094: try to fix the samba4 build
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Sep 2006 14:29:34 +0000 (14:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:15 +0000 (14:17 -0500)
metze

source/configure.ac
source/lib/replace/config.mk
source/lib/replace/samba.m4 [new file with mode: 0644]

index e3244d2656976e55fdd5ba113b530fc11d8234fe..45a9c85b18a15c4cd7abb70febd685cc06ed8e25 100644 (file)
@@ -11,7 +11,7 @@ AC_CONFIG_HEADER(include/config_tmp.h)
 
 # Configuration rules.
 m4_include(build/m4/env.m4)
-m4_include(lib/replace/libreplace.m4)
+m4_include(lib/replace/samba.m4)
 m4_include(lib/replace/win32/config.m4)
 m4_include(lib/replace/repdir/config.m4)
 m4_include(lib/smbreadline/readline.m4)
index 49a1e7fe1b1cac38ae56f2b5e22e9fe647f0e426..a05db5abad2e70437d5742eb04c745f2a407e970 100644 (file)
@@ -14,6 +14,6 @@ OBJ_FILES = replace.o \
                snprintf.o \
                dlfcn.o \
                getpass.o
-PUBLIC_DEPENDENCIES = REPLACE_READDIR DL
+PUBLIC_DEPENDENCIES = REPLACE_READDIR REPLACE_EXT
 # End SUBSYSTEM LIBREPLACE
 ##############################
diff --git a/source/lib/replace/samba.m4 b/source/lib/replace/samba.m4
new file mode 100644 (file)
index 0000000..6183b7e
--- /dev/null
@@ -0,0 +1,27 @@
+SAVE_LIBS="$LIBS"
+SAVE_CFLAGS="$CFLAGS"
+SAVE_CPPFLAGS="$CPPFLAGS"
+SAVE_LDFLAGS="$LDFLAGS"
+
+LIBS=""
+CFLAGS=""
+CPPFLAGS=""
+LDFLAGS=""
+
+m4_include(libreplace.m4)
+
+REPLACE_EXT_LIBS="$LIBS"
+REPLACE_EXT_CFLAGS="$CFLAGS"
+REPLACE_EXT_CPPFLAGS="$CPPFLAGS"
+REPLACE_EXT_LDFLAGS="$LDFLAGS"
+
+LIBS="$SAVE_LIBS"
+CFLAGS="$SAVE_CFLAGS"
+CPPFLAGS="$SAVE_CPPFLAGS"
+LDFLAGS="$SAVE_LDFLAGS"
+
+SMB_EXT_LIB(REPLACE_EXT,
+           [${REPLACE_EXT_LIBS}],
+           [${REPLACE_EXT_CFLAGS}],
+           [${REPLACE_EXT_CPPFLAGS}],
+           [${REPLACE_EXT_LDFLAGS}])