]> saetta.ns0.it Git - zakauthe/plugins/smbldap/commitdiff
Under gnu/linux doesn't take into account GUIDIR.
authorAndrea Zagli <azagli@libero.it>
Wed, 27 Apr 2016 14:28:30 +0000 (16:28 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 27 Apr 2016 14:28:30 +0000 (16:28 +0200)
Adjustments on autotools for namespace changing.

configure.ac
src/Makefile.am
src/aute_smbldap.c
tests/Makefile.am
tests/test.c

index 66729559eaf1b5193c3bc669585915503ad9fead..a66fcbbacaf23103de14caff8979b854ae718700 100644 (file)
@@ -21,11 +21,11 @@ AC_PROG_CC
 AC_PROG_LIBTOOL
 
 # Checks for libraries.
-PKG_CHECK_MODULES(LIBAUTESMBLDAP, [gtk+-3.0 >= 3.0.0
+PKG_CHECK_MODULES(LIBZAKAUTHESMBLDAP, [gtk+-3.0 >= 3.0.0
                                    libzakauthe >= 0.5.0])
 
-AC_SUBST(LIBAUTESMBLDAP_CFLAGS)
-AC_SUBST(LIBAUTESMBLDAP_LIBS)
+AC_SUBST(LIBZAKAUTHESMBLDAP_CFLAGS)
+AC_SUBST(LIBZAKAUTHESMBLDAP_LIBS)
 
 with_ldap=no
 AC_CHECK_LIB([ldap], [ldap_initialize], with_ldap=yes)
@@ -49,11 +49,11 @@ else
        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)
+PKG_CHECK_MODULES(LIBZAKCONFI, [libzakconfi >= 0.10.0], [AC_DEFINE(HAVE_LIBZAKCONFI, [1], [libzakconfi is present]), have_libzakconfi=yes], have_libzakconfi=no)
 
-AM_CONDITIONAL(HAVE_LIBCONFI, test x"$have_libconfi" = "xyes")
-AC_SUBST(LIBCONFI_CFLAGS)
-AC_SUBST(LIBCONFI_LIBS)
+AM_CONDITIONAL(HAVE_LIBZAKCONFI, test x"$have_libzakconfi" = "xyes")
+AC_SUBST(LIBZAKCONFI_CFLAGS)
+AC_SUBST(LIBZAKCONFI_LIBS)
 
 # Checks for header files.
 
index ebd35d62b8b3ad45e729e050738361d65901fc15..951bd7b32fbe8dc8d973e5b5bb5585f8b1f4187f 100644 (file)
@@ -1,15 +1,15 @@
 guidir = $(datadir)/$(PACKAGE_NAME)/gui
 
-AM_CPPFLAGS = $(LIBAUTESMBLDAP_CFLAGS) \
+AM_CPPFLAGS = $(LIBZAKAUTHESMBLDAP_CFLAGS) \
               $(LIBLDAP_CFLAGS) \
               $(LIBSSH_CFLAGS) \
-              $(LIBCONFI_CFLAGS) \
+              $(LIBZAKCONFI_CFLAGS) \
               -DGUIDIR=\""$(guidir)"\"
 
-LIBS = $(LIBAUTESMBLDAP_LIBS) \
+LIBS = $(LIBZAKAUTHESMBLDAP_LIBS) \
        $(LIBLDAP_LIBS) \
        $(LIBSSH_LIBS) \
-       $(LIBCONFI_LIBS)
+       $(LIBZAKCONFI_LIBS)
 
 libzakauthe_pluginsdir = $(libdir)/libzakauthe/plugins
 libzakauthe_plugins_LTLIBRARIES = libzakauthesmbldap.la
index d8cfb9f2b5377bbc1c9ab022388bd4b1b21c6f60..c052c65d8054ad4ec88b1c57288e54f9e915bfb1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -30,8 +30,8 @@
 #include <ldap.h>
 #include <libssh/libssh.h>
 
-#ifdef HAVE_LIBCONFI
-       #include <libconfi.h>
+#ifdef HAVE_LIBZAKCONFI
+       #include <libzakconfi/libzakconfi.h>
 #endif
 
 #include "aute_smbldap.h"
@@ -933,6 +933,10 @@ gchar
                        guidir = g_build_filename (moddir, "share", PACKAGE, "gui", NULL);
                }
 
+#else
+
+       guidir = g_strdup (GUIDIR);
+
 #endif
 
        guifile = g_build_filename (guidir, "zak_authe_smbldap.ui", NULL);
@@ -940,8 +944,9 @@ gchar
                                                g_strsplit ("diag_main", "|", -1),
                                                &error))
                {
-                       g_warning ("Impossibile trovare il file di definizione dell'interfaccia utente: %s.",
-                                error != NULL && error->message != NULL ? error->message : "no details");
+                       g_warning ("Unable to find gui file definition in «%s»: %s.",
+                                          guifile,
+                                          error != NULL && error->message != NULL ? error->message : "no details");
                        return NULL;
                }
 
index 26a9569012e4edc8a7e189fed3b85a0cb4f974c2..c942d71ed5defd05a82d1b54bafb9f3ad582bf5a 100644 (file)
@@ -1,10 +1,10 @@
 AM_CPPFLAGS = $(WARN_CFLAGS) \
               $(DISABLE_DEPRECATED_CFLAGS) \
-              $(LIBAUTESMBLDAP_CFLAGS) \
+              $(LIBZAKAUTHESMBLDAP_CFLAGS) \
               -I../src
 
 LIBS = $(GTK_LIBS) \
-       $(LIBAUTESMBLDAP_LIBS)
+       $(LIBZAKAUTHESMBLDAP_LIBS)
 
 LDADD = ../src/libzakauthesmbldap.la
 
index 3ee66c58f4076ce7d773f1e63104c5c398067b87..a2fcfd8ea9694de3fccc725e9225f3ffd258c904 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2013-2016 Andrea Zagli <azagli@libero.it>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -30,6 +30,8 @@ main (int argc, char **argv)
 
        aute = zak_authe_new ();
 
+       params = NULL;
+
        params = g_slist_append (params, argv[1]);
        params = g_slist_append (params, argv[2]);
        params = g_slist_append (params, argv[3]);