Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Module to query parrot-config
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lambeck  
View profile  
 More options Mar 6 2005, 1:37 pm
Newsgroups: perl.perl6.internals
From: parrotbug-follo...@parrotcode.org (Lambeck)
Date: Sun, 06 Mar 2005 10:37:04 -0800
Local: Sun, Mar 6 2005 1:37 pm
Subject: [perl #34356] Module to query parrot-config
# New Ticket Created by  Lambeck
# Please include the string:  [perl #34356]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34356 >

It would be nice to have a module that returns the installed parrot config.
Other applications (hopefully a lot) that configure depending on parrot might
need this. I mean something like  App::Info::HTTPD::Apache
(http://search.cpan.org/~dwheeler/App-Info-0.44/).
I am not into App::Info so I can not decide what is neccessary to make it
return parrot specific values ...

Adrian Lambeck


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Coleda  
View profile  
 More options Mar 6 2005, 2:06 pm
Newsgroups: perl.perl6.internals
From: w...@coleda.com (William Coleda)
Date: Sun, 06 Mar 2005 14:06:02 -0500
Local: Sun, Mar 6 2005 2:06 pm
Subject: Re: [perl #34356] Module to query parrot-config
Already exists.

perldoc parrot/library/config.imc

Regards.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Coleda  
View profile  
 More options Mar 6 2005, 2:13 pm
Newsgroups: perl.perl6.internals
From: w...@coleda.com (William Coleda)
Date: Sun, 06 Mar 2005 14:13:13 -0500
Local: Sun, Mar 6 2005 2:13 pm
Subject: Re: [perl #34356] Module to query parrot-config
Whoops, had already cd'd...

it's actually in 'runtime/parrot/library/config.imc'

Is this what you're looking for?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Lambeck  
View profile  
 More options Mar 6 2005, 2:31 pm
Newsgroups: perl.perl6.internals
From: adrian.lamb...@basicsedv.de (Adrian Lambeck)
Date: Sun, 6 Mar 2005 20:31:19 +0100
Local: Sun, Mar 6 2005 2:31 pm
Subject: Re: [perl #34356] Module to query parrot-config
This might be it - how do I access the data ?

Am Sonntag, 6. März 2005 20:13 schrieb Will Coleda via RT:

--
-----------
Adrian Lambeck
Basics EDV
Feldnerstr. 11
21075 Hamburg
Germany

Tel. 040/788 901 76
E-Mail: adrian.lamb...@basicsedv.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Coleda  
View profile  
 More options Mar 6 2005, 7:03 pm
Newsgroups: perl.perl6.internals
From: w...@coleda.com (William Coleda)
Date: Sun, 06 Mar 2005 19:03:03 -0500
Local: Sun, Mar 6 2005 7:03 pm
Subject: Re: [perl #34356] Module to query parrot-config
Here's the sample from the perldoc:

.sub _some
         # store the config data into $P0
         $P0 = _config()
         # Retrieve and print a key
         $P1 = $P0["cc"]
         print "Your C compiler is "
         print $P1
         print "\n"
.end
.include "library/config.imc"

Which, when run on my OS X box, gives:

oolong:~/research/parrot coke$ ./parrot foo.imc
Your C compiler is cc

How's that?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Lambeck  
View profile  
 More options Mar 7 2005, 2:26 am
Newsgroups: perl.perl6.internals
From: adrian.lamb...@basicsedv.de (Adrian Lambeck)
Date: Mon, 7 Mar 2005 08:26:18 +0100
Local: Mon, Mar 7 2005 2:26 am
Subject: Re: [perl #34356] Module to query parrot-config
I will try it out to see if it works for me. Now I know how to get the data
but how can I include this into a Makfile. If this were Perl-code I could use
MakeMaker but this way I need to do it somehow different.
By the way -  in which file did you find this example.

Adrian

Am Montag, 7. März 2005 01:03 schrieb Will Coleda via RT:

--
-----------
Adrian Lambeck
Basics EDV
Feldnerstr. 11
21075 Hamburg
Germany

Tel. 040/788 901 76
E-Mail: adrian.lamb...@basicsedv.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Mar 7 2005, 8:03 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Mon, 7 Mar 2005 14:03:12 +0100
Local: Mon, Mar 7 2005 8:03 am
Subject: Re: [perl #34356] Module to query parrot-config

Adrian Lambeck <adrian.lamb...@basicsedv.de> wrote:

[ please don't top post ]

> I will try it out to see if it works for me. Now I know how to get the
> data but how can I include this into a Makfile. If this were Perl-code
> I could use MakeMaker but this way I need to do it somehow different.

There's a TODO item in the bug tracker, which describes an extension to
parrot-config.imc.

$ ./parrot parrot-config.imc libs
-lnsl -ldl -lm -lposix -lcrypt -lutil -lpthread -lrt -lgmp

It should eventually understand shortcuts like --compile or --link or
some such.

For now you can include something like:

foo$(EXE) : foo.c $(PARROT)     # or better the lib
        `$(PARROT) parrot-config.imc link`  \
        `$(PARROT) parrot-config.imc libs`  \
        ...

in the Makefile.

> By the way -  in which file did you find this example.

You are citing it:

>> > Am Sonntag, 6. März 2005 20:13 schrieb Will Coleda via RT:
>> >>it's actually in 'runtime/parrot/library/config.imc'

$ perldoc -F runtime/parrot/library/config.imc

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »