Inserted extra definition of LT_OBJDIR for pre-2.2 libtool
authorPhilip Chimento <philip.chimento@gmail.com>
Fri, 27 Nov 2009 22:57:35 +0000 (22:57 +0000)
committerPhilip Chimento <philip.chimento@gmail.com>
Fri, 27 Nov 2009 22:57:35 +0000 (22:57 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@187 ddfedd41-794f-dd11-ae45-00112f111e67

libchimara/chimara-if.c

index 26e5b3a7626cc8f99520f5e0ae63ef28c9025fab..939d734a9c990875ce7ee2f9511440b71db0c134 100644 (file)
@@ -535,12 +535,15 @@ chimara_if_run_game(ChimaraIF *self, gchar *gamefile, GError **error)
 
        gchar *pluginpath;
 #ifdef DEBUG
+#ifndef LT_OBJDIR
+#define LT_OBJDIR ".libs" /* Pre-2.2 libtool, so take a wild guess */
+#endif /* LT_OBJDIR */
        /* If there is a plugin in the source tree, use that */
        pluginpath = g_build_filename(PLUGINSOURCEDIR, plugin_names[interpreter], LT_OBJDIR, pluginfile, NULL);
        if( !g_file_test(pluginpath, G_FILE_TEST_EXISTS) )
        {
                g_free(pluginpath);
-#endif
+#endif /* DEBUG */
                pluginpath = g_build_filename(PLUGINDIR, pluginfile, NULL);
                if( !g_file_test(pluginpath, G_FILE_TEST_EXISTS) )
                {