AC_CONFIG_SRCDIR([src/aute_smbldap.c])
AC_CONFIG_HEADER([config.h])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE(-Wall)
+
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+
AM_MAINTAINER_MODE
AC_CANONICAL_SYSTEM
# Checks for libraries.
PKG_CHECK_MODULES(LIBAUTESMBLDAP, [gtk+-2.0 >= 2.16.0
- libaute >= 0.1.0])
+ libaute >= 0.1.0])
AC_SUBST(LIBAUTESMBLDAP_CFLAGS)
AC_SUBST(LIBAUTESMBLDAP_LIBS)
<property name="visible">True</property>
<property name="title" translatable="yes">Autenticazione</property>
<property name="modal">True</property>
+ <property name="window_position">center</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
#ifdef G_OS_WIN32
#undef GUIDIR
+#undef FORMDIR
gchar *GUIDIR;
+ gchar *FORMDIR;
- GUIDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-smbldap", "gui", NULL);
+ gchar *moddir;
+ gchar *p;
+
+ moddir = g_win32_get_package_installation_directory_of_module (NULL);
+
+ p = g_strrstr (moddir, g_strdup_printf ("%c", G_DIR_SEPARATOR));
+ if (p != NULL
+ && (g_ascii_strcasecmp (p + 1, "src") == 0
+ || g_ascii_strcasecmp (p + 1, ".libs") == 0))
+ {
+ GUIDIR = g_build_filename ("/mingw", "share", "libaute-smbldap", "gui", NULL);
+ FORMDIR = g_build_filename ("/mingw", "share", "libaute-smbldap", "form", NULL);
+ }
+ else
+ {
+ GUIDIR = g_build_filename (moddir, "share", "libaute-smbldap", "gui", NULL);
+ FORMDIR = g_build_filename (moddir, "share", "libaute-smbldap", "form", NULL);
+ }
#endif
guifile = g_build_filename (GUIDIR, "autesmbldap.gui", NULL);