]> saetta.ns0.it Git - zakauthe/plugins/smbldap/commitdiff
Added libssh dependency.
authorAndrea Zagli <azagli@libero.it>
Sun, 8 Aug 2010 13:35:11 +0000 (15:35 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 8 Aug 2010 13:35:11 +0000 (15:35 +0200)
.gitignore [new file with mode: 0644]
configure.ac
src/Makefile.am

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a41bfdd
--- /dev/null
@@ -0,0 +1,31 @@
+COPYING
+INSTALL
+Makefile
+aclocal.m4
+autom4te.cache/
+config.guess
+config.log
+config.status
+config.sub
+configure
+depcomp
+version.xml
+gtk-doc.make
+install-sh
+libaute.pc
+libtool
+ltmain.sh
+missing
+.deps
+.libs
+*.lo
+*.o
+*.la
+*~
+*.in
+config.h
+stamp-h1
+tests/test
+tools/aute-db-mkpwd
+*.tar.gz
+*.exe
\ No newline at end of file
index 3cd1783df924f72c73419533c10e35f232dc8a0e..f2d09355a03dc8b5747536084f0777d526426ec3 100644 (file)
@@ -28,9 +28,23 @@ AC_SUBST(LIBAUTESMBLDAP_LIBS)
 with_ldap=no
 AC_CHECK_LIB([ldap], [ldap_initialize], with_ldap=yes)
 
-if test "$with_ldap" = "yes"
+if test "x$with_ldap" = "xyes"
 then
        AC_SUBST(LIBLDAP_LIBS, [" -lldap"])
+else
+       echo "Libldap is mandatory.";
+       exit 1;
+fi
+
+with_ssh=no
+AC_CHECK_LIB([ssh], [ssh_new], with_ssh=yes)
+
+if test "x$with_ssh" = "xyes"
+then
+       AC_SUBST(LIBSSH_LIBS, [" -lssh"])
+else
+       echo "Libssh is mandatory.";
+       exit 1;
 fi
 
 PKG_CHECK_MODULES(LIBCONFI, [libconfi >= 0.0.2], [AC_DEFINE(HAVE_LIBCONFI, [1], [libconfi is present]), have_libconfi=yes], have_libconfi=no)
index f69e3e7c5c918b916552ac37058371983362e9b4..2082de66110b14335d880d8441b36ef7e3f99dd9 100644 (file)
@@ -3,12 +3,14 @@ formdir = $(datadir)/libaute-smbldap/form
 
 AM_CPPFLAGS = $(LIBAUTESMBLDAP_CFLAGS) \
               $(LIBLDAP_CFLAGS) \
+              $(LIBSSH_CFLAGS) \
               $(LIBCONFI_CFLAGS) \
               -DGUIDIR=\""$(guidir)"\" \
               -DFORMDIR=\""$(formdir)"\"
 
 LIBS = $(LIBAUTESMBLDAP_LIBS) \
        $(LIBLDAP_LIBS) \
+       $(LIBSSH_LIBS) \
        $(LIBCONFI_LIBS)
 
 libaute_pluginsdir = $(libdir)/libaute/plugins