For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > October 2004 > How do I check if PHP has been compiled with -m64?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How do I check if PHP has been compiled with -m64?
Jost Boekemeier

2004-10-16, 8:55 am

Hi,

I am maintaining an external "self-contained
extension", the php/java bridge
(php-java-bridge.sf.net).

Since this extension is compiled outside of the main
PHP compilation process I need a way to access the
complete CFLAGS with which the PHP binary was
compiled. Does PHP store the original CFLAGS
somewhere?

Alternatively I need a way to check if the PHP binary
was compiled with the -m64 flag. Does anyone already
have an autoconf macro for this?

Currently I ask the user to compile the extension as a
32 bit extension first, if that fails because of a
"wrong ELF class: ELFCLASS32" he must compile the
extension again, this time with the -m64 flag. This
is a little bit inconvenient.


Jost






________________________________________
___________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com