Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am compiling PHP 5.3.6 and the compile configure command I am using as a reference uses the --with-layout=GNU option. I have done some research but I can't seem to find a detail answer. Can someone please explain this option to me in detail and why one would use it? Thanks!

share|improve this question
up vote 7 down vote accepted

In the latest version of PHP's at the time of this answer, --with-layout is defined as:

PHP_ARG_WITH(layout, layout of installed files,
[  --with-layout=TYPE      Set how installed files will be laid out.  Type can
                          be either PHP or GNU [PHP]], PHP, no)

case $PHP_LAYOUT in

So if you choose GNU, it sets oldstyleextdir=no, otherwise yes. That helped me to find this mail to php-dev in Dec 2005, which says in part:

With that said, old style is:


while new style [GNU] is:


Essentially, this option decides the location of the extensions directory (EXTENSION_DIR). Unfortunately, as the author of that mail notes, there isn't a lot of explanation about why the option was implemented – even in the commit log entry – though I speculate it was to keep PHP in line with other "GNU/Linux" standards.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.