# HG changeset patch # User Eric Warmenhoven # Date 965106653 0 # Node ID 7209b474bdc389ceb45e2b59b3677735cf8eef23 # Parent c6f1e88ec3cb234bc6fc40a9cd97b2634c0bff29 [gaim-migrate @ 575] perl changes committer: Tailor Script diff -r c6f1e88ec3cb -r 7209b474bdc3 configure.in --- a/configure.in Tue Aug 01 04:45:44 2000 +0000 +++ b/configure.in Tue Aug 01 05:10:53 2000 +0000 @@ -84,7 +84,7 @@ AC_MSG_RESULT([not found, building without perl.]) enable_perl = no else - PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts |$sedpath 's/-lgdbm //'` + PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-ldb //'` PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lndbm //'` if test "$system" = "Linux"; then diff -r c6f1e88ec3cb -r 7209b474bdc3 src/perl.c --- a/src/perl.c Tue Aug 01 04:45:44 2000 +0000 +++ b/src/perl.c Tue Aug 01 05:10:53 2000 +0000 @@ -29,7 +29,7 @@ #undef PACKAGE /* #ifdef USE_PERL */ -#if 0 /* still has problems */ +#if 0 #include #ifndef _SEM_SEMUN_UNDEFINED @@ -174,6 +174,19 @@ void perl_end() { + struct perlscript *scp; + + while (perl_list) { + scp = perl_list->data; + perl_list = g_list_remove(perl_list, scp); + if (scp->shutdowncallback[0]) + execute_perl(scp->shutdowncallback, ""); + g_free(scp->name); + g_free(scp->version); + g_free(scp->shutdowncallback); + g_free(scp); + } + if (my_perl != NULL) { perl_destruct(my_perl); perl_free(my_perl); @@ -242,6 +255,22 @@ XS (XS_AIM_get_info) { + int junk; + dXSARGS; + items = 0; + + switch(atoi(SvPV(ST(0), junk))) { + case 0: + XST_mPV(0, VERSION); + break; + case 1: + XST_mPV(0, current_user->username); + break; + default: + XST_mPV(0, "Error2"); + } + + XSRETURN(1); } #endif /* USE_PERL */